Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(264)

Side by Side Diff: Source/core/rendering/RenderThemeChromiumDefault.cpp

Issue 16415007: Cleanup usage of CSSPropertyID and CSSValueID inside Blink. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Apple Inc. 2 * Copyright (C) 2007 Apple Inc.
3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com>
4 * Copyright (C) 2008 Collabora Ltd. 4 * Copyright (C) 2008 Collabora Ltd.
5 * Copyright (C) 2008, 2009 Google Inc. 5 * Copyright (C) 2008, 2009 Google Inc.
6 * Copyright (C) 2009 Kenneth Rohde Christiansen 6 * Copyright (C) 2009 Kenneth Rohde Christiansen
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 RenderThemeChromiumDefault::RenderThemeChromiumDefault() 81 RenderThemeChromiumDefault::RenderThemeChromiumDefault()
82 { 82 {
83 m_caretBlinkInterval = RenderTheme::caretBlinkInterval(); 83 m_caretBlinkInterval = RenderTheme::caretBlinkInterval();
84 } 84 }
85 85
86 RenderThemeChromiumDefault::~RenderThemeChromiumDefault() 86 RenderThemeChromiumDefault::~RenderThemeChromiumDefault()
87 { 87 {
88 } 88 }
89 89
90 Color RenderThemeChromiumDefault::systemColor(int cssValueId) const 90 Color RenderThemeChromiumDefault::systemColor(CSSValueID cssValueId) const
91 { 91 {
92 static const Color defaultButtonGrayColor(0xffdddddd); 92 static const Color defaultButtonGrayColor(0xffdddddd);
93 static const Color defaultMenuColor(0xfff7f7f7); 93 static const Color defaultMenuColor(0xfff7f7f7);
94 94
95 if (cssValueId == CSSValueButtonface) 95 if (cssValueId == CSSValueButtonface)
96 return defaultButtonGrayColor; 96 return defaultButtonGrayColor;
97 if (cssValueId == CSSValueMenu) 97 if (cssValueId == CSSValueMenu)
98 return defaultMenuColor; 98 return defaultMenuColor;
99 return RenderTheme::systemColor(cssValueId); 99 return RenderTheme::systemColor(cssValueId);
100 } 100 }
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 WebKit::Platform::current()->themeEngine()->paint(canvas, WebKit::WebThemeEn gine::PartProgressBar, getWebThemeState(this, o), WebKit::WebRect(rect), &extraP arams); 414 WebKit::Platform::current()->themeEngine()->paint(canvas, WebKit::WebThemeEn gine::PartProgressBar, getWebThemeState(this, o), WebKit::WebRect(rect), &extraP arams);
415 return false; 415 return false;
416 } 416 }
417 417
418 bool RenderThemeChromiumDefault::shouldOpenPickerWithF4Key() const 418 bool RenderThemeChromiumDefault::shouldOpenPickerWithF4Key() const
419 { 419 {
420 return true; 420 return true;
421 } 421 }
422 422
423 } // namespace WebCore 423 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderThemeChromiumDefault.h ('k') | Source/core/rendering/RenderThemeChromiumFontProvider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698