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

Unified Diff: public/web/WebViewClient.h

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
« Source/web/WebViewImpl.cpp ('K') | « public/web/WebDevToolsAgent.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebViewClient.h
===================================================================
--- public/web/WebViewClient.h (revision 157211)
+++ public/web/WebViewClient.h (working copy)
@@ -152,6 +152,11 @@
// Called by WebHelperPlugin to provide the WebFrameClient interface for the WebFrame.
virtual void initializeHelperPluginWebFrame(WebHelperPlugin*) { }
+ // Called to emulate device. Window should occupy the whole device screen,
pfeldman 2013/09/19 12:46:05 // Called to emulate device dimensions and scale f
dgozman 2013/09/19 13:59:38 Done.
+ // while the view should be located at |viewRect|.
+ virtual void emulateDevice(
+ bool enabled, const WebSize& deviceSize, const WebRect& viewRect,
apavlov 2013/09/19 12:47:57 perhaps, deviceSize -> screenSize?
dgozman 2013/09/19 13:59:38 Done.
+ float deviceScaleFactor, bool fitToView) { }
// Navigational --------------------------------------------------------
« Source/web/WebViewImpl.cpp ('K') | « public/web/WebDevToolsAgent.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698