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

Unified Diff: third_party/WebKit/Source/web/DevToolsEmulator.cpp

Issue 2848513002: Introduce the abstract class WebViewBase, to decouple WebViewImpl. (Closed)
Patch Set: Fix typo. Created 3 years, 8 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
« no previous file with comments | « third_party/WebKit/Source/web/DevToolsEmulator.h ('k') | third_party/WebKit/Source/web/EditorClientImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/DevToolsEmulator.cpp
diff --git a/third_party/WebKit/Source/web/DevToolsEmulator.cpp b/third_party/WebKit/Source/web/DevToolsEmulator.cpp
index 4b82e5a90ba40a4b65c75fb851faa16138948f8f..e9e2995059df16de098d438e17a22ae0e010b8fc 100644
--- a/third_party/WebKit/Source/web/DevToolsEmulator.cpp
+++ b/third_party/WebKit/Source/web/DevToolsEmulator.cpp
@@ -4,6 +4,7 @@
#include "web/DevToolsEmulator.h"
+#include "core/exported/WebViewBase.h"
#include "core/frame/FrameView.h"
#include "core/frame/Settings.h"
#include "core/frame/VisualViewport.h"
@@ -15,13 +16,13 @@
#include "platform/geometry/FloatSize.h"
#include "platform/geometry/IntRect.h"
#include "platform/geometry/IntSize.h"
+#include "platform/graphics/GraphicsLayer.h"
#include "platform/loader/fetch/MemoryCache.h"
#include "platform/wtf/PtrUtil.h"
#include "public/platform/WebLayerTreeView.h"
#include "web/WebInputEventConversion.h"
#include "web/WebLocalFrameImpl.h"
#include "web/WebSettingsImpl.h"
-#include "web/WebViewImpl.h"
namespace {
@@ -58,7 +59,7 @@ static float calculateDeviceScaleAdjustment(int width,
namespace blink {
-DevToolsEmulator::DevToolsEmulator(WebViewImpl* web_view_impl)
+DevToolsEmulator::DevToolsEmulator(WebViewBase* web_view_impl)
: web_view_impl_(web_view_impl),
device_metrics_enabled_(false),
emulate_mobile_enabled_(false),
@@ -102,8 +103,8 @@ DevToolsEmulator::DevToolsEmulator(WebViewImpl* web_view_impl)
DevToolsEmulator::~DevToolsEmulator() {}
-DevToolsEmulator* DevToolsEmulator::Create(WebViewImpl* web_view_impl) {
- return new DevToolsEmulator(web_view_impl);
+DevToolsEmulator* DevToolsEmulator::Create(WebViewBase* web_view_base) {
+ return new DevToolsEmulator(web_view_base);
}
DEFINE_TRACE(DevToolsEmulator) {}
« no previous file with comments | « third_party/WebKit/Source/web/DevToolsEmulator.h ('k') | third_party/WebKit/Source/web/EditorClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698