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

Unified Diff: Source/core/platform/ScrollbarThemeWin.cpp

Issue 23187005: [DevTools] Use device metrics emulation implemented in content. (Closed) Base URL: svn://svn.chromium.org/blink/trunk/
Patch Set: Created 7 years, 3 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: Source/core/platform/ScrollbarThemeWin.cpp
===================================================================
--- Source/core/platform/ScrollbarThemeWin.cpp (revision 157211)
+++ Source/core/platform/ScrollbarThemeWin.cpp (working copy)
@@ -33,6 +33,7 @@
#include "core/platform/LayoutTestSupport.h"
#include "core/platform/PlatformMouseEvent.h"
#include "core/platform/Scrollbar.h"
+#include "core/platform/ScrollbarThemeOverlay.h"
#include "core/platform/graphics/GraphicsContext.h"
#include "core/platform/win/SystemInfo.h"
#include "public/platform/Platform.h"
@@ -42,6 +43,11 @@
ScrollbarTheme* ScrollbarTheme::nativeTheme()
{
+ if (RuntimeEnabledFeatures::overlayScrollbarsEnabled()) {
+ DEFINE_STATIC_LOCAL(ScrollbarThemeOverlay, theme, (7, 0, ScrollbarThemeOverlay::AllowHitTest));
+ return &theme;
+ }
+
static ScrollbarThemeWin theme;
return &theme;
}

Powered by Google App Engine
This is Rietveld 408576698