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

Unified Diff: content/renderer/render_view_impl.h

Issue 23364004: Implementation of device metrics emulation in render view. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Style 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: content/renderer/render_view_impl.h
===================================================================
--- content/renderer/render_view_impl.h (revision 221161)
+++ content/renderer/render_view_impl.h (working copy)
@@ -459,6 +459,10 @@
const WebKit::WebString& path,
WebKit::WebFileChooserCompletion* chooser_completion);
virtual void initializeHelperPluginWebFrame(WebKit::WebHelperPlugin*);
+ virtual void emulateDevice(
+ bool enabled, const WebKit::WebSize& device_size,
+ const WebKit::WebRect& view_rect, float device_scale_factor,
+ bool fit_to_view);
virtual void didStartLoading();
virtual void didStopLoading();
virtual void didChangeLoadProgress(WebKit::WebFrame* frame,
@@ -770,6 +774,7 @@
const ui::Range& replacement_range,
bool keep_selection) OVERRIDE;
virtual void SetDeviceScaleFactor(float device_scale_factor) OVERRIDE;
+ virtual void SetDeviceEmulationScale(float scale) OVERRIDE;
virtual ui::TextInputType GetTextInputType() OVERRIDE;
virtual void GetSelectionBounds(gfx::Rect* start, gfx::Rect* end) OVERRIDE;
#if defined(OS_MACOSX) || defined(OS_WIN) || defined(USE_AURA)

Powered by Google App Engine
This is Rietveld 408576698