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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutThemeDefault.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, 9 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
OLDNEW
1 /* 1 /*
2 * This file is part of the WebKit project. 2 * This file is part of the WebKit project.
3 * 3 *
4 * Copyright (C) 2006 Apple Computer, Inc. 4 * Copyright (C) 2006 Apple Computer, Inc.
5 * Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com 5 * Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com
6 * Copyright (C) 2007 Holger Hans Peter Freyther 6 * Copyright (C) 2007 Holger Hans Peter Freyther
7 * Copyright (C) 2007 Alp Toker <alp@atoker.com> 7 * Copyright (C) 2007 Alp Toker <alp@atoker.com>
8 * Copyright (C) 2008, 2009 Google, Inc. 8 * Copyright (C) 2008, 2009 Google, Inc.
9 * All rights reserved. 9 * All rights reserved.
10 * Copyright (C) 2009 Kenneth Rohde Christiansen 10 * Copyright (C) 2009 Kenneth Rohde Christiansen
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 IntSize sliderTickSize() const override; 60 IntSize sliderTickSize() const override;
61 int sliderTickOffsetFromTrackCenter() const override; 61 int sliderTickOffsetFromTrackCenter() const override;
62 void adjustSliderThumbSize(ComputedStyle&) const override; 62 void adjustSliderThumbSize(ComputedStyle&) const override;
63 63
64 static void setCaretBlinkInterval(double); 64 static void setCaretBlinkInterval(double);
65 65
66 void setCheckboxSize(ComputedStyle&) const override; 66 void setCheckboxSize(ComputedStyle&) const override;
67 void setRadioSize(ComputedStyle&) const override; 67 void setRadioSize(ComputedStyle&) const override;
68 void adjustInnerSpinButtonStyle(ComputedStyle&) const override; 68 void adjustInnerSpinButtonStyle(ComputedStyle&) const override;
69 void adjustButtonStyle(ComputedStyle&) const override;
69 70
70 bool popsMenuBySpaceKey() const final { return true; } 71 bool popsMenuBySpaceKey() const final { return true; }
71 bool popsMenuByReturnKey() const final { return true; } 72 bool popsMenuByReturnKey() const final { return true; }
72 bool popsMenuByAltDownUpOrF4Key() const override { return true; } 73 bool popsMenuByAltDownUpOrF4Key() const override { return true; }
73 74
74 bool shouldOpenPickerWithF4Key() const override; 75 bool shouldOpenPickerWithF4Key() const override;
75 76
76 Color platformTapHighlightColor() const override 77 Color platformTapHighlightColor() const override
77 { 78 {
78 return Color(defaultTapHighlightColor); 79 return Color(defaultTapHighlightColor);
79 } 80 }
80 81
81 // A method asking if the theme's controls actually care about redrawing 82 // A method asking if the theme's controls actually care about redrawing
82 // when hovered. 83 // when hovered.
83 bool supportsHover(const ComputedStyle&) const final; 84 bool supportsHover(const ComputedStyle&) const final;
84 85
85 Color platformFocusRingColor() const override; 86 Color platformFocusRingColor() const override;
86 87
87 double caretBlinkInterval() const final; 88 double caretBlinkInterval() const final;
88 89
89 // System fonts. 90 // System fonts.
90 virtual void systemFont(CSSValueID systemFontID, FontStyle&, FontWeight&, fl oat& fontSize, AtomicString& fontFamily) const; 91 virtual void systemFont(CSSValueID systemFontID, FontStyle&, FontWeight&, fl oat& fontSize, AtomicString& fontFamily) const;
91 92
92 int minimumMenuListSize(const ComputedStyle&) const override; 93 int minimumMenuListSize(const ComputedStyle&) const override;
93 94
94 void adjustButtonStyle(ComputedStyle&) const override;
95 void adjustSearchFieldStyle(ComputedStyle&) const override; 95 void adjustSearchFieldStyle(ComputedStyle&) const override;
96 void adjustSearchFieldCancelButtonStyle(ComputedStyle&) const override; 96 void adjustSearchFieldCancelButtonStyle(ComputedStyle&) const override;
97 void adjustSearchFieldDecorationStyle(ComputedStyle&) const override; 97 void adjustSearchFieldDecorationStyle(ComputedStyle&) const override;
98 void adjustSearchFieldResultsDecorationStyle(ComputedStyle&) const override; 98 void adjustSearchFieldResultsDecorationStyle(ComputedStyle&) const override;
99 99
100 // MenuList refers to an unstyled menulist (meaning a menulist without 100 // MenuList refers to an unstyled menulist (meaning a menulist without
101 // background-color or border set) and MenuListButton refers to a styled 101 // background-color or border set) and MenuListButton refers to a styled
102 // menulist (a menulist with background-color or border set). They have 102 // menulist (a menulist with background-color or border set). They have
103 // this distinction to support showing aqua style themes whenever they 103 // this distinction to support showing aqua style themes whenever they
104 // possibly can, which is something we don't want to replicate. 104 // possibly can, which is something we don't want to replicate.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 static unsigned m_activeSelectionForegroundColor; 147 static unsigned m_activeSelectionForegroundColor;
148 static unsigned m_inactiveSelectionBackgroundColor; 148 static unsigned m_inactiveSelectionBackgroundColor;
149 static unsigned m_inactiveSelectionForegroundColor; 149 static unsigned m_inactiveSelectionForegroundColor;
150 150
151 ThemePainterDefault m_painter; 151 ThemePainterDefault m_painter;
152 }; 152 };
153 153
154 } // namespace blink 154 } // namespace blink
155 155
156 #endif // LayoutThemeDefault_h 156 #endif // LayoutThemeDefault_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698