| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // The contents auto-resized and the container should match it. | 67 // The contents auto-resized and the container should match it. |
| 68 virtual void ResizeDueToAutoResize(RenderWidgetHostImpl* render_widget_host, | 68 virtual void ResizeDueToAutoResize(RenderWidgetHostImpl* render_widget_host, |
| 69 const gfx::Size& new_size) {} | 69 const gfx::Size& new_size) {} |
| 70 | 70 |
| 71 // The screen info has changed. | 71 // The screen info has changed. |
| 72 virtual void ScreenInfoChanged() {} | 72 virtual void ScreenInfoChanged() {} |
| 73 | 73 |
| 74 // Sets the device scale factor for frames associated with this WebContents. | 74 // Sets the device scale factor for frames associated with this WebContents. |
| 75 virtual void UpdateDeviceScaleFactor(double device_scale_factor) {} | 75 virtual void UpdateDeviceScaleFactor(double device_scale_factor) {} |
| 76 | 76 |
| 77 // Sets the device scale factor for cross-process subframes associated with |
| 78 // this WebContents. |
| 79 virtual void SetPageScaleFactorForSubframes(double page_scale_factor) {} |
| 80 |
| 77 // Retrieve screen information. | 81 // Retrieve screen information. |
| 78 virtual void GetScreenInfo(ScreenInfo* web_screen_info); | 82 virtual void GetScreenInfo(ScreenInfo* web_screen_info); |
| 79 | 83 |
| 80 // Callback to give the browser a chance to handle the specified keyboard | 84 // Callback to give the browser a chance to handle the specified keyboard |
| 81 // event before sending it to the renderer. | 85 // event before sending it to the renderer. |
| 82 // Returns true if the |event| was handled. Otherwise, if the |event| would | 86 // Returns true if the |event| was handled. Otherwise, if the |event| would |
| 83 // be handled in HandleKeyboardEvent() method as a normal keyboard shortcut, | 87 // be handled in HandleKeyboardEvent() method as a normal keyboard shortcut, |
| 84 // |*is_keyboard_shortcut| should be set to true. | 88 // |*is_keyboard_shortcut| should be set to true. |
| 85 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, | 89 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
| 86 bool* is_keyboard_shortcut); | 90 bool* is_keyboard_shortcut); |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 // not a WebContents, returns nullptr. | 253 // not a WebContents, returns nullptr. |
| 250 virtual WebContents* GetAsWebContents(); | 254 virtual WebContents* GetAsWebContents(); |
| 251 | 255 |
| 252 protected: | 256 protected: |
| 253 virtual ~RenderWidgetHostDelegate() {} | 257 virtual ~RenderWidgetHostDelegate() {} |
| 254 }; | 258 }; |
| 255 | 259 |
| 256 } // namespace content | 260 } // namespace content |
| 257 | 261 |
| 258 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 262 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
| OLD | NEW |