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

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: 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 217537)
+++ content/browser/renderer_host/render_widget_host_view_aura.cc (working copy)
@@ -807,6 +807,7 @@
if (!host_->should_auto_resize() &&
!resize_lock_.get() &&
desired_size != current_frame_size_ &&
+ !device_emulation_enabled_ &&
host_->is_accelerated_compositing_active()) {
aura::RootWindow* root_window = window_->GetRootWindow();
ui::Compositor* compositor = root_window ?
@@ -1984,6 +1985,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