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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 // The contents auto-resized and the container should match it. | 58 // The contents auto-resized and the container should match it. |
59 virtual void ResizeDueToAutoResize(RenderWidgetHostImpl* render_widget_host, | 59 virtual void ResizeDueToAutoResize(RenderWidgetHostImpl* render_widget_host, |
60 const gfx::Size& new_size) {} | 60 const gfx::Size& new_size) {} |
61 | 61 |
62 // The screen info has changed. | 62 // The screen info has changed. |
63 virtual void ScreenInfoChanged() {} | 63 virtual void ScreenInfoChanged() {} |
64 | 64 |
65 // Sets the device scale factor for frames associated with this WebContents. | 65 // Sets the device scale factor for frames associated with this WebContents. |
66 virtual void UpdateDeviceScaleFactor(double device_scale_factor) {} | 66 virtual void UpdateDeviceScaleFactor(double device_scale_factor) {} |
67 | 67 |
| 68 // Sets the device scale factor for frames associated with this WebContents. |
| 69 virtual void UpdatePageScaleFactor(double page_scale_factor) {} |
| 70 |
68 // Retrieve screen information. | 71 // Retrieve screen information. |
69 virtual void GetScreenInfo(ScreenInfo* web_screen_info); | 72 virtual void GetScreenInfo(ScreenInfo* web_screen_info); |
70 | 73 |
71 // Callback to give the browser a chance to handle the specified keyboard | 74 // Callback to give the browser a chance to handle the specified keyboard |
72 // event before sending it to the renderer. | 75 // event before sending it to the renderer. |
73 // Returns true if the |event| was handled. Otherwise, if the |event| would | 76 // Returns true if the |event| was handled. Otherwise, if the |event| would |
74 // be handled in HandleKeyboardEvent() method as a normal keyboard shortcut, | 77 // be handled in HandleKeyboardEvent() method as a normal keyboard shortcut, |
75 // |*is_keyboard_shortcut| should be set to true. | 78 // |*is_keyboard_shortcut| should be set to true. |
76 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, | 79 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
77 bool* is_keyboard_shortcut); | 80 bool* is_keyboard_shortcut); |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 // this RenderWidgetHost. | 220 // this RenderWidgetHost. |
218 virtual bool IsHidden(); | 221 virtual bool IsHidden(); |
219 | 222 |
220 protected: | 223 protected: |
221 virtual ~RenderWidgetHostDelegate() {} | 224 virtual ~RenderWidgetHostDelegate() {} |
222 }; | 225 }; |
223 | 226 |
224 } // namespace content | 227 } // namespace content |
225 | 228 |
226 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 229 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
OLD | NEW |