diff options
author | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2015-06-18 14:10:49 +0200 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> | 2015-06-18 13:53:24 +0000 |
commit | 813fbf95af77a531c57a8c497345ad2c61d475b3 (patch) | |
tree | 821b2c8de8365f21b6c9ba17a236fb3006a1d506 /chromium/third_party/WebKit/Source/core/layout/LayoutThemeAndroid.h | |
parent | af6588f8d723931a298c995fa97259bb7f7deb55 (diff) | |
download | qtwebengine-chromium-813fbf95af77a531c57a8c497345ad2c61d475b3.tar.gz |
BASELINE: Update chromium to 44.0.2403.47
Change-Id: Ie056fedba95cf5e5c76b30c4b2c80fca4764aa2f
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/layout/LayoutThemeAndroid.h')
-rw-r--r-- | chromium/third_party/WebKit/Source/core/layout/LayoutThemeAndroid.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/chromium/third_party/WebKit/Source/core/layout/LayoutThemeAndroid.h b/chromium/third_party/WebKit/Source/core/layout/LayoutThemeAndroid.h new file mode 100644 index 00000000000..f54e9c2e297 --- /dev/null +++ b/chromium/third_party/WebKit/Source/core/layout/LayoutThemeAndroid.h @@ -0,0 +1,66 @@ +/* + * Copyright (C) 2011 Google Inc. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef LayoutThemeAndroid_h +#define LayoutThemeAndroid_h + +#include "core/layout/LayoutThemeDefault.h" + +namespace blink { + +class LayoutThemeAndroid final : public LayoutThemeDefault { +public: + static PassRefPtr<LayoutTheme> create(); + virtual String extraDefaultStyleSheet() override; + + virtual void adjustInnerSpinButtonStyle(ComputedStyle&, Element*) const override; + + virtual bool delegatesMenuListRendering() const override { return true; } + + virtual String extraMediaControlsStyleSheet() override; + + virtual Color platformTapHighlightColor() const override + { + return LayoutThemeAndroid::defaultTapHighlightColor; + } + + virtual Color platformActiveSelectionBackgroundColor() const override + { + return LayoutThemeAndroid::defaultActiveSelectionBackgroundColor; + } + +protected: + virtual int menuListArrowPadding() const override; + +private: + virtual ~LayoutThemeAndroid(); + + static const RGBA32 defaultTapHighlightColor = 0x6633b5e5; + static const RGBA32 defaultActiveSelectionBackgroundColor = 0x6633b5e5; +}; + +} // namespace blink + +#endif // LayoutThemeAndroid_h |