OLD | NEW |
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 // The contents auto-resized and the container should match it. | 59 // The contents auto-resized and the container should match it. |
60 virtual void ResizeDueToAutoResize(RenderWidgetHostImpl* render_widget_host, | 60 virtual void ResizeDueToAutoResize(RenderWidgetHostImpl* render_widget_host, |
61 const gfx::Size& new_size) {} | 61 const gfx::Size& new_size) {} |
62 | 62 |
63 // The screen info has changed. | 63 // The screen info has changed. |
64 virtual void ScreenInfoChanged() {} | 64 virtual void ScreenInfoChanged() {} |
65 | 65 |
66 // Sets the device scale factor for frames associated with this WebContents. | 66 // Sets the device scale factor for frames associated with this WebContents. |
67 virtual void UpdateDeviceScaleFactor(double device_scale_factor) {} | 67 virtual void UpdateDeviceScaleFactor(double device_scale_factor) {} |
68 | 68 |
| 69 // Sets the device scale factor for cross-process subframes associated with |
| 70 // this WebContents. |
| 71 virtual void SetPageScaleFactorForSubframes(double page_scale_factor) {} |
| 72 |
69 // Retrieve screen information. | 73 // Retrieve screen information. |
70 virtual void GetScreenInfo(ScreenInfo* web_screen_info); | 74 virtual void GetScreenInfo(ScreenInfo* web_screen_info); |
71 | 75 |
72 // Callback to give the browser a chance to handle the specified keyboard | 76 // Callback to give the browser a chance to handle the specified keyboard |
73 // event before sending it to the renderer. | 77 // event before sending it to the renderer. |
74 // Returns true if the |event| was handled. Otherwise, if the |event| would | 78 // Returns true if the |event| was handled. Otherwise, if the |event| would |
75 // be handled in HandleKeyboardEvent() method as a normal keyboard shortcut, | 79 // be handled in HandleKeyboardEvent() method as a normal keyboard shortcut, |
76 // |*is_keyboard_shortcut| should be set to true. | 80 // |*is_keyboard_shortcut| should be set to true. |
77 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, | 81 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
78 bool* is_keyboard_shortcut); | 82 bool* is_keyboard_shortcut); |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 // this RenderWidgetHost. | 208 // this RenderWidgetHost. |
205 virtual bool IsHidden(); | 209 virtual bool IsHidden(); |
206 | 210 |
207 protected: | 211 protected: |
208 virtual ~RenderWidgetHostDelegate() {} | 212 virtual ~RenderWidgetHostDelegate() {} |
209 }; | 213 }; |
210 | 214 |
211 } // namespace content | 215 } // namespace content |
212 | 216 |
213 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 217 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
OLD | NEW |