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

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

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: Fix test. 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 virtual void RenderWidgetWasResized(RenderWidgetHostImpl* render_widget_host, 54 virtual void RenderWidgetWasResized(RenderWidgetHostImpl* render_widget_host,
55 bool width_changed) {} 55 bool width_changed) {}
56 56
57 // The contents auto-resized and the container should match it. 57 // The contents auto-resized and the container should match it.
58 virtual void ResizeDueToAutoResize(RenderWidgetHostImpl* render_widget_host, 58 virtual void ResizeDueToAutoResize(RenderWidgetHostImpl* render_widget_host,
59 const gfx::Size& new_size) {} 59 const gfx::Size& new_size) {}
60 60
61 // The screen info has changed. 61 // The screen info has changed.
62 virtual void ScreenInfoChanged() {} 62 virtual void ScreenInfoChanged() {}
63 63
64 // Sets the device scale factor for frames associated with this WebContents.
65 virtual void UpdateDeviceScaleFactor(double device_scale_factor) {}
66
67 // Value to be used in view creation when no window has been specified.
68 virtual double DefaultDeviceScaleFactor();
69
64 // Callback to give the browser a chance to handle the specified keyboard 70 // Callback to give the browser a chance to handle the specified keyboard
65 // event before sending it to the renderer. 71 // event before sending it to the renderer.
66 // Returns true if the |event| was handled. Otherwise, if the |event| would 72 // Returns true if the |event| was handled. Otherwise, if the |event| would
67 // be handled in HandleKeyboardEvent() method as a normal keyboard shortcut, 73 // be handled in HandleKeyboardEvent() method as a normal keyboard shortcut,
68 // |*is_keyboard_shortcut| should be set to true. 74 // |*is_keyboard_shortcut| should be set to true.
69 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, 75 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
70 bool* is_keyboard_shortcut); 76 bool* is_keyboard_shortcut);
71 77
72 // Callback to inform the browser that the renderer did not process the 78 // Callback to inform the browser that the renderer did not process the
73 // specified events. This gives an opportunity to the browser to process the 79 // specified events. This gives an opportunity to the browser to process the
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 // Returns the TextInputManager tracking text input state. 195 // Returns the TextInputManager tracking text input state.
190 virtual TextInputManager* GetTextInputManager(); 196 virtual TextInputManager* GetTextInputManager();
191 197
192 protected: 198 protected:
193 virtual ~RenderWidgetHostDelegate() {} 199 virtual ~RenderWidgetHostDelegate() {}
194 }; 200 };
195 201
196 } // namespace content 202 } // namespace content
197 203
198 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ 204 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698