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

Side by Side Diff: content/browser/renderer_host/render_widget_host_delegate.cc

Issue 2122023002: Cross-process frames should be notified of device scale factor changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simpler access to device_scale_factor. Created 4 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "build/build_config.h" 5 #include "build/build_config.h"
6 #include "content/browser/renderer_host/render_widget_host_delegate.h" 6 #include "content/browser/renderer_host/render_widget_host_delegate.h"
7 #include "ui/gfx/geometry/rect.h" 7 #include "ui/gfx/geometry/rect.h"
8 8
9 namespace content { 9 namespace content {
10 10
11 double RenderWidgetHostDelegate::DefaultDeviceScaleFactor() {
12 return 1.0;
13 }
14
11 bool RenderWidgetHostDelegate::PreHandleKeyboardEvent( 15 bool RenderWidgetHostDelegate::PreHandleKeyboardEvent(
12 const NativeWebKeyboardEvent& event, 16 const NativeWebKeyboardEvent& event,
13 bool* is_keyboard_shortcut) { 17 bool* is_keyboard_shortcut) {
14 return false; 18 return false;
15 } 19 }
16 20
17 bool RenderWidgetHostDelegate::HandleWheelEvent( 21 bool RenderWidgetHostDelegate::HandleWheelEvent(
18 const blink::WebMouseWheelEvent& event) { 22 const blink::WebMouseWheelEvent& event) {
19 return false; 23 return false;
20 } 24 }
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 blink::WebDisplayMode RenderWidgetHostDelegate::GetDisplayMode( 64 blink::WebDisplayMode RenderWidgetHostDelegate::GetDisplayMode(
61 RenderWidgetHostImpl* render_widget_host) const { 65 RenderWidgetHostImpl* render_widget_host) const {
62 return blink::WebDisplayModeBrowser; 66 return blink::WebDisplayModeBrowser;
63 } 67 }
64 68
65 TextInputManager* RenderWidgetHostDelegate::GetTextInputManager() { 69 TextInputManager* RenderWidgetHostDelegate::GetTextInputManager() {
66 return nullptr; 70 return nullptr;
67 } 71 }
68 72
69 } // namespace content 73 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698