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

Unified Diff: third_party/WebKit/Source/core/paint/ThemePainter.h

Issue 1690493002: Switch to LayoutThemeMobile when emulating mobile device in DevTools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Invalidate tapHighlightColor only Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/paint/ThemePainter.h
diff --git a/third_party/WebKit/Source/core/paint/ThemePainter.h b/third_party/WebKit/Source/core/paint/ThemePainter.h
index 456392d0856d8ae5d321cea65f763700bcf324a5..45f6b2480797aae51f7af71c5b5632e44a378b14 100644
--- a/third_party/WebKit/Source/core/paint/ThemePainter.h
+++ b/third_party/WebKit/Source/core/paint/ThemePainter.h
@@ -30,12 +30,15 @@ namespace blink {
class IntRect;
class LayoutObject;
+class Theme;
struct PaintInfo;
class ThemePainter {
DISALLOW_NEW();
public:
+ explicit ThemePainter(Theme*);
+
// This method is called to paint the widget as a background of the LayoutObject. A widget's foreground, e.g., the
// text of a button, is always rendered by the engine itself. The boolean return value indicates
// whether the CSS border/background should also be painted.
@@ -47,13 +50,10 @@ public:
void paintSliderTicks(const LayoutObject&, const PaintInfo&, const IntRect&);
protected:
-#if !USE(NEW_THEME)
virtual bool paintCheckbox(const LayoutObject&, const PaintInfo&, const IntRect&) { return true; }
virtual bool paintRadio(const LayoutObject&, const PaintInfo&, const IntRect&) { return true; }
virtual bool paintButton(const LayoutObject&, const PaintInfo&, const IntRect&) { return true; }
virtual bool paintInnerSpinButton(const LayoutObject&, const PaintInfo&, const IntRect&) { return true; }
-#endif
-
virtual bool paintTextField(const LayoutObject&, const PaintInfo&, const IntRect&) { return true; }
virtual bool paintTextArea(const LayoutObject&, const PaintInfo&, const IntRect&) { return true; }
virtual bool paintMenuList(const LayoutObject&, const PaintInfo&, const IntRect&) { return true; }
@@ -70,6 +70,9 @@ protected:
bool paintUsingFallbackTheme(const LayoutObject&, const PaintInfo&, const IntRect&);
bool paintCheckboxUsingFallbackTheme(const LayoutObject&, const PaintInfo&, const IntRect&);
bool paintRadioUsingFallbackTheme(const LayoutObject&, const PaintInfo&, const IntRect&);
+
+private:
+ Theme* m_platformTheme; // The platform-specific theme.
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutThemeWin.cpp ('k') | third_party/WebKit/Source/core/paint/ThemePainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698