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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

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.cc
===================================================================
--- content/browser/renderer_host/render_widget_host_view_aura.cc (revision 221161)
+++ content/browser/renderer_host/render_widget_host_view_aura.cc (working copy)
@@ -808,6 +808,7 @@
if (!host_->should_auto_resize() &&
!resize_lock_.get() &&
desired_size != current_frame_size_ &&
+ !device_emulation_enabled_ &&
aelias_OOO_until_Jul13 2013/09/13 23:51:44 Is it really that you want to accept an image of *
dgozman 2013/09/14 07:42:42 I think, this would be a right choice.
aelias_OOO_until_Jul13 2013/09/14 07:50:53 Not necessarily. First, note that CC is rather fl
aelias_OOO_until_Jul13 2013/09/14 08:06:51 On second thought, the real difficulty if you go t
dgozman 2013/09/19 10:17:11 Done.
host_->is_accelerated_compositing_active()) {
aura::RootWindow* root_window = window_->GetRootWindow();
ui::Compositor* compositor = root_window ?
@@ -2002,6 +2003,10 @@
touch_editing_client_->GestureEventAck(gesture_event_type);
}
+void RenderWidgetHostViewAura::EmulateDevice(bool enabled) {
+ device_emulation_enabled_ = enabled;
+}
+
void RenderWidgetHostViewAura::ProcessAckedTouchEvent(
const TouchEventWithLatencyInfo& touch, InputEventAckState ack_result) {
ScopedVector<ui::TouchEvent> events;

Powered by Google App Engine
This is Rietveld 408576698