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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.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/browser/renderer_host/render_widget_host_view_aura.h
===================================================================
--- content/browser/renderer_host/render_widget_host_view_aura.h (revision 221161)
+++ content/browser/renderer_host/render_widget_host_view_aura.h (working copy)
@@ -224,6 +224,7 @@
virtual gfx::Rect GetBoundsInRootWindow() OVERRIDE;
virtual void GestureEventAck(int gesture_event_type,
InputEventAckState ack_result) OVERRIDE;
+ virtual void EmulateDevice(bool enabled) OVERRIDE;
virtual void ProcessAckedTouchEvent(
const TouchEventWithLatencyInfo& touch,
InputEventAckState ack_result) OVERRIDE;
@@ -636,6 +637,10 @@
// renderer of producing a frame of the right size.
scoped_ptr<ResizeLock> resize_lock_;
+ // When device emulation is enabled, renderer may supply image of different
+ // size.
+ bool device_emulation_enabled_;
aelias_OOO_until_Jul13 2013/09/13 23:51:44 This name sounds too generic considering it only a
dgozman 2013/09/19 10:17:11 Created |expected_rendered_size_| instead.
+
// Keeps track of the current frame size.
gfx::Size current_frame_size_;

Powered by Google App Engine
This is Rietveld 408576698