| 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_RENDER_WIDGET_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_RENDER_WIDGET_HOST_DELEGATE_H_ |
| 6 #define CONTENT_BROWSER_RENDER_WIDGET_HOST_DELEGATE_H_ | 6 #define CONTENT_BROWSER_RENDER_WIDGET_HOST_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 class WebMouseWheelEvent; | 13 class WebMouseWheelEvent; |
| 14 class WebGestureEvent; | 14 class WebGestureEvent; |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace content { | 17 namespace content { |
| 18 | 18 |
| 19 class BrowserAccessibilityManager; | |
| 20 class RenderWidgetHostImpl; | 19 class RenderWidgetHostImpl; |
| 21 struct NativeWebKeyboardEvent; | 20 struct NativeWebKeyboardEvent; |
| 22 | 21 |
| 23 // | 22 // |
| 24 // RenderWidgetHostDelegate | 23 // RenderWidgetHostDelegate |
| 25 // | 24 // |
| 26 // An interface implemented by an object interested in knowing about the state | 25 // An interface implemented by an object interested in knowing about the state |
| 27 // of the RenderWidgetHost. | 26 // of the RenderWidgetHost. |
| 28 class CONTENT_EXPORT RenderWidgetHostDelegate { | 27 class CONTENT_EXPORT RenderWidgetHostDelegate { |
| 29 public: | 28 public: |
| (...skipping 26 matching lines...) Expand all Loading... |
| 56 // Callback to inform the browser that the renderer did not process the | 55 // Callback to inform the browser that the renderer did not process the |
| 57 // specified gesture event. Returns true if the |event| was handled. | 56 // specified gesture event. Returns true if the |event| was handled. |
| 58 virtual bool HandleGestureEvent(const blink::WebGestureEvent& event); | 57 virtual bool HandleGestureEvent(const blink::WebGestureEvent& event); |
| 59 | 58 |
| 60 // Notifies that screen rects were sent to renderer process. | 59 // Notifies that screen rects were sent to renderer process. |
| 61 virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) {} | 60 virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) {} |
| 62 | 61 |
| 63 // Notifies that RenderWidgetHost will toggle touch emulation. | 62 // Notifies that RenderWidgetHost will toggle touch emulation. |
| 64 virtual void OnTouchEmulationEnabled(bool enabled) {} | 63 virtual void OnTouchEmulationEnabled(bool enabled) {} |
| 65 | 64 |
| 66 // Get the root BrowserAccessibilityManager for this frame tree. | |
| 67 virtual BrowserAccessibilityManager* GetRootBrowserAccessibilityManager(); | |
| 68 | |
| 69 // Get the root BrowserAccessibilityManager for this frame tree, | |
| 70 // or create it if it doesn't exist. | |
| 71 virtual BrowserAccessibilityManager* | |
| 72 GetOrCreateRootBrowserAccessibilityManager(); | |
| 73 | |
| 74 #if defined(OS_WIN) | 65 #if defined(OS_WIN) |
| 66 // Returns the widget's parent's NativeViewAccessible. |
| 75 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); | 67 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); |
| 76 #endif | 68 #endif |
| 77 | 69 |
| 78 protected: | 70 protected: |
| 79 virtual ~RenderWidgetHostDelegate() {} | 71 virtual ~RenderWidgetHostDelegate() {} |
| 80 }; | 72 }; |
| 81 | 73 |
| 82 } // namespace content | 74 } // namespace content |
| 83 | 75 |
| 84 #endif // CONTENT_BROWSER_RENDER_WIDGET_HOST_DELEGATE_H_ | 76 #endif // CONTENT_BROWSER_RENDER_WIDGET_HOST_DELEGATE_H_ |
| OLD | NEW |