Chromium Code Reviews| Index: third_party/WebKit/Source/core/layout/LayoutThemeMobile.h |
| diff --git a/third_party/WebKit/Source/core/layout/LayoutThemeAndroid.h b/third_party/WebKit/Source/core/layout/LayoutThemeMobile.h |
| similarity index 85% |
| copy from third_party/WebKit/Source/core/layout/LayoutThemeAndroid.h |
| copy to third_party/WebKit/Source/core/layout/LayoutThemeMobile.h |
| index 804d0736e0a7a4447f3360c2edc93b5eff08c637..0952b2cc9a7ebed33fa2c57b9a5480e1c2b65aed 100644 |
| --- a/third_party/WebKit/Source/core/layout/LayoutThemeAndroid.h |
| +++ b/third_party/WebKit/Source/core/layout/LayoutThemeMobile.h |
| @@ -23,19 +23,21 @@ |
| * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| */ |
| -#ifndef LayoutThemeAndroid_h |
| -#define LayoutThemeAndroid_h |
| +#ifndef LayoutThemeMobile_h |
| +#define LayoutThemeMobile_h |
| #include "core/layout/LayoutThemeDefault.h" |
| namespace blink { |
| -class LayoutThemeAndroid final : public LayoutThemeDefault { |
| +class LayoutThemeMobile : public LayoutThemeDefault { |
| public: |
| static PassRefPtr<LayoutTheme> create(); |
| String extraDefaultStyleSheet() override; |
| +#if !USE(NEW_THEME) |
|
pdr.
2016/02/12 06:36:14
This is basically a "#if !OSX" check... won't this
dgozman
2016/02/19 19:15:16
Good point. I've reworked the patch to avoid this
|
| void adjustInnerSpinButtonStyle(ComputedStyle&) const override; |
| +#endif |
| bool delegatesMenuListRendering() const override { return true; } |
| @@ -43,21 +45,22 @@ public: |
| Color platformTapHighlightColor() const override |
| { |
| - return LayoutThemeAndroid::defaultTapHighlightColor; |
| + return LayoutThemeMobile::defaultTapHighlightColor; |
| } |
| Color platformActiveSelectionBackgroundColor() const override |
| { |
| - return LayoutThemeAndroid::defaultActiveSelectionBackgroundColor; |
| + return LayoutThemeMobile::defaultActiveSelectionBackgroundColor; |
| } |
| -private: |
| - ~LayoutThemeAndroid() override; |
| +protected: |
| + ~LayoutThemeMobile() override; |
| +private: |
| static const RGBA32 defaultTapHighlightColor = 0x6633b5e5; |
| static const RGBA32 defaultActiveSelectionBackgroundColor = 0x6633b5e5; |
| }; |
| } // namespace blink |
| -#endif // LayoutThemeAndroid_h |
| +#endif // LayoutThemeMobile_h |