summaryrefslogtreecommitdiffstats
path: root/chrome/common/render_messages.h
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-11 21:08:41 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-11 21:08:41 +0000
commit1c83eb444727c703709f7deea88e51f8da2e504e (patch)
tree4c7153390bc1fafd217eff84d113f5ff1ae102f2 /chrome/common/render_messages.h
parent303bdcbbda3d59a6fb2c475a98a1ce4793ab1817 (diff)
downloadchromium_src-1c83eb444727c703709f7deea88e51f8da2e504e.zip
chromium_src-1c83eb444727c703709f7deea88e51f8da2e504e.tar.gz
chromium_src-1c83eb444727c703709f7deea88e51f8da2e504e.tar.bz2
Linux focus ring color: Go through WebKit::WebColor api rather than through the webview.
Also use SkColor isntead of a triplet of colors in RenderPreferences. BUG=21521 Review URL: http://codereview.chromium.org/195059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26013 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/render_messages.h')
-rw-r--r--chrome/common/render_messages.h20
1 files changed, 4 insertions, 16 deletions
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h
index 22b9b45..752c208 100644
--- a/chrome/common/render_messages.h
+++ b/chrome/common/render_messages.h
@@ -1577,9 +1577,7 @@ struct ParamTraits<RendererPreferences> {
WriteParam(m, p.should_antialias_text);
WriteParam(m, static_cast<int>(p.hinting));
WriteParam(m, static_cast<int>(p.subpixel_rendering));
- WriteParam(m, p.focus_ring_color_r);
- WriteParam(m, p.focus_ring_color_g);
- WriteParam(m, p.focus_ring_color_b);
+ WriteParam(m, p.focus_ring_color);
WriteParam(m, p.browser_handles_top_level_requests);
}
static bool Read(const Message* m, void** iter, param_type* p) {
@@ -1600,20 +1598,10 @@ struct ParamTraits<RendererPreferences> {
static_cast<RendererPreferencesSubpixelRenderingEnum>(
subpixel_rendering);
- int focus_ring_color_r;
- if (!ReadParam(m, iter, &focus_ring_color_r))
+ int focus_ring_color;
+ if (!ReadParam(m, iter, &focus_ring_color))
return false;
- p->focus_ring_color_r = focus_ring_color_r;
-
- int focus_ring_color_g;
- if (!ReadParam(m, iter, &focus_ring_color_g))
- return false;
- p->focus_ring_color_g = focus_ring_color_g;
-
- int focus_ring_color_b;
- if (!ReadParam(m, iter, &focus_ring_color_b))
- return false;
- p->focus_ring_color_b = focus_ring_color_b;
+ p->focus_ring_color = focus_ring_color;
if (!ReadParam(m, iter, &p->browser_handles_top_level_requests))
return false;