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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutThemeMobile.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/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 86%
copy from third_party/WebKit/Source/core/layout/LayoutThemeAndroid.h
copy to third_party/WebKit/Source/core/layout/LayoutThemeMobile.h
index 804d0736e0a7a4447f3360c2edc93b5eff08c637..77970392351ae2dc856caf3d18e6e65d309b184b 100644
--- a/third_party/WebKit/Source/core/layout/LayoutThemeAndroid.h
+++ b/third_party/WebKit/Source/core/layout/LayoutThemeMobile.h
@@ -23,14 +23,14 @@
* 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;
@@ -43,21 +43,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
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutThemeMac.mm ('k') | third_party/WebKit/Source/core/layout/LayoutThemeMobile.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698