Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Follow up from http://codereview.chromium.org /17452...
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
thoma...@chromium.org  
View profile  
 More options Jan 20 2009, 5:30 pm
From: thoma...@chromium.org
Date: Tue, 20 Jan 2009 22:30:47 +0000
Local: Tues, Jan 20 2009 5:30 pm
Subject: Follow up from http://codereview.chromium.org/17452...
Reviewers: Eric Seidel (Google), darin, pink, awalker,

Description:
Follow up from http://codereview.chromium.org/17452

Remove the ifdef and instead provide a chromium api for setting the
focus color.
This lets any unittest do overrides w/o forcing other layers to know
about
layout tests.  It also provides the bottom layer so once we can plumb a
ipc
message for focus colors and send them from the browser over to the
renderer
processes.

Please review this at http://codereview.chromium.org/18424

SVN Base: svn://svn.chromium.org/chrome/trunk/src/

Affected files:
   A      
third_party/WebKit/WebCore/platform/graphics/chromium/ColorChromium.h
   M      
third_party/WebKit/WebCore/platform/graphics/chromium/ColorChromium.cpp


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
thoma...@chromium.org  
View profile  
 More options Jan 20 2009, 5:31 pm
From: thoma...@chromium.org
Date: Tue, 20 Jan 2009 22:31:02 +0000
Local: Tues, Jan 20 2009 5:31 pm
Subject: Follow up from http://codereview.chromium.org/17452...
Reviewers: Eric Seidel (Google), darin, pink, awalker,

Description:
Follow up from http://codereview.chromium.org/17452

Remove the ifdef and instead provide a chromium api for setting the
focus color.
This lets any unittest do overrides w/o forcing other layers to know
about
layout tests.  It also provides the bottom layer so once we can plumb a
ipc
message for focus colors and send them from the browser over to the
renderer
processes.

This depends on http://codereview.chromium.org/18424.  It then sets the
color
within the mac test shell during layout tests for the diffs will match.

Please review this at http://codereview.chromium.org/18425

SVN Base: svn://svn.chromium.org/chrome/trunk/src/

Affected files:
   M     webkit/tools/test_shell/mac/TestShell.xcodeproj/project.pbxproj
   M     webkit/tools/test_shell/test_shell_mac.mm
   M     webkit/webkit.xcodeproj/project.pbxproj


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
thoma...@chromium.org  
View profile  
 More options Jan 20 2009, 5:32 pm
From: thoma...@chromium.org
Date: Tue, 20 Jan 2009 22:32:06 +0000
Local: Tues, Jan 20 2009 5:32 pm
Subject: Re: Follow up from http://codereview.chromium.org/17452...
I'll upstream this if this change is good, but I figured the discussion
was better in our tree first.

http://codereview.chromium.org/18424


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
macd...@gmail.com  
View profile  
 More options Jan 20 2009, 5:42 pm
From: macd...@gmail.com
Date: Tue, 20 Jan 2009 22:42:55 +0000
Local: Tues, Jan 20 2009 5:42 pm
Subject: Re: Follow up from http://codereview.chromium.org/17452...
I wonder if this shouldn't go on RenderTheme.

We are the only port who likely changes the focus-ring color as part of
testing, but we're not the only port which needs to respond to focusring
color changes as part of OS-theming changes.

The webkit layer should detect the theme changes, and probably call a
"setFocusRingColor" function down in WebCore, like you've written.  The
question is if that function should be part of Color:: or RenderTheme::
Probably color.  Then the accessors are Color::focusRingColor() and
Color::setFocusRingColor(const Color&) with some nice default.

http://codereview.chromium.org/18424


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
macd...@gmail.com  
View profile  
 More options Jan 20 2009, 5:50 pm
From: macd...@gmail.com
Date: Tue, 20 Jan 2009 22:50:26 +0000
Local: Tues, Jan 20 2009 5:50 pm
Subject: Re: Follow up from http://codereview.chromium.org/17452...
Talked to Hyatt as well:

[2:45pm] <hyatt> eseidel: focus ring colors should be stored in
RenderTheme
[2:45pm] <hyatt> eseidel: Color is the wrong place
[2:46pm] <hyatt> eseidel: selection colors and css system colors are on
RenderTheme
[2:46pm] <eseidel> hyatt: I'm OK with that.
[2:46pm] <hyatt> eseidel: thats where focus ring colors should be too
[2:46pm] <eseidel> hyatt: currently they're not, of course
[2:46pm] <hyatt> yeah
[2:46pm] <hyatt> that stuff predates rendertheme
[2:46pm] <hyatt> that Color stuff
[2:46pm] <eseidel> hyatt: I think they should probably be explicitly set
on RenderTheme though
[2:46pm] <eseidel> hyatt: instead of WebCore pulling from WebKit
[2:46pm] <eseidel> hyatt: which is what it does now
[2:46pm] <hyatt> they don't have to be explicitly set
[2:46pm] <hyatt> rendertheme should just cache it when asked for it
[2:46pm] <eseidel> hyatt: to handle theme changes, etc.
[2:47pm] <hyatt> rendertheme already handles color changes
[2:47pm] <hyatt> etc.
[2:47pm] <hyatt> focus rings just need to fold into all that existing
stuff in rendertheme
[2:47pm] <eseidel> hyatt: I guess.  although we also need the ability in
our RenderTheme to override the focusRing color
[2:47pm] <eseidel> which I guess we could do via a RenderTheme caching
model too
[2:47pm] <hyatt> eseidel: thats the whole point of rendertheme
[2:47pm] <hyatt> :)
[2:47pm] <hyatt> eseidel: check out selection... the base class caches
by querying the derived class
[2:47pm] <eseidel> hyatt: your'e suggesting that we supply a different
RenderTheme subclass during testing?
[2:47pm] <hyatt> and then the base class just clears its cache when
colors change
[2:48pm] <hyatt> eseidel: i'm suggesting your rendertheme class say if
(isTesting()) return oneCOlor; else return otherColor;
[2:48pm] <eseidel> that could work too
[2:48pm] <eseidel> although that requires hard-coding in the testing
values
[2:48pm] <eseidel> but yeah
[2:48pm] <eseidel> hyatt: k.  will update the code review.

http://codereview.chromium.org/18424/diff/12/207
File
third_party/WebKit/WebCore/platform/graphics/chromium/ColorChromium.cpp
(right):

http://codereview.chromium.org/18424/diff/12/207#newcode32
Line 32: static Color *overrideFocusRingColor = NULL;
* next to type.  0 instead of NULL in WebKit style.

http://codereview.chromium.org/18424/diff/12/208
File
third_party/WebKit/WebCore/platform/graphics/chromium/ColorChromium.h
(right):

http://codereview.chromium.org/18424/diff/12/208#newcode35
Line 35: void setFocusRingColor(const Color &overrideColor);
WebKit style would place the & next to the type, and there would be no
name to this argument, as the name provides no additional clarification.

http://codereview.chromium.org/18424/diff/12/208#newcode36
Line 36: void setFocusRingColorToDefault(void);
no (void) in WebKit style, and I don't think any "reset" function is
needed in WebCore.  I think that instead the embedder can just call
"set". WebCore could expose a Color::defaultFocusRingColor; accessor if
desired.

http://codereview.chromium.org/18424


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
thoma...@chromium.org  
View profile  
 More options Jan 21 2009, 8:03 am
From: thoma...@chromium.org
Date: Wed, 21 Jan 2009 13:03:14 +0000
Local: Wed, Jan 21 2009 8:03 am
Subject: Re: Follow up from http://codereview.chromium.org/17452...
On 2009/01/20 22:42:55, Eric Seidel wrote:

> I wonder if this shouldn't go on RenderTheme.

> We are the only port who likely changes the focus-ring color as part
of testing,
> but we're not the only port which needs to respond to focusring color
changes as
> part of OS-theming changes.

FYI - Mac and Win ports change it for testing -

http://trac.webkit.org/browser/trunk/WebCore/platform/graphics/mac/Co...

http://trac.webkit.org/browser/trunk/WebCore/platform/graphics/win/Co...

http://codereview.chromium.org/18424


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
thoma...@chromium.org  
View profile  
 More options Jan 21 2009, 8:08 am
From: thoma...@chromium.org
Date: Wed, 21 Jan 2009 13:08:49 +0000
Local: Wed, Jan 21 2009 8:08 am
Subject: Re: Follow up from http://codereview.chromium.org/17452...
On 2009/01/20 22:50:25, Eric Seidel wrote:

Seem's sorta wrong (from a design pov) to have the themes having
knowledge of layout tests, like we should either have a different
"testing theme" or let the tests reach though the layer to change things
explicitly.  But I'll defer to those that know the code better.  :)

To clean up the TODO w/in ColorChromium, should I go ahead w/ comments
on the changes, and record this info in the new files (letting
test_shell_mac current reach down to this layer)?  And as the mac
version comes along, we'll move things into the RenderTheme when we
build the higher layer plumbing?  (we don't currently have the right
places to hook in for the color notifications, etc.)

http://codereview.chromium.org/18424


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Hyatt  
View profile  
 More options Jan 21 2009, 1:23 pm
From: David Hyatt <hy...@apple.com>
Date: Wed, 21 Jan 2009 12:23:23 -0600
Local: Wed, Jan 21 2009 1:23 pm
Subject: Re: Follow up from http://codereview.chromium.org/17452...
You could still do a setter on RenderTheme if you want to do the  
override that way.

dave

On Jan 21, 2009, at 7:08 AM, thoma...@chromium.org wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »