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; |
19 class RenderWidgetHostImpl; | 20 class RenderWidgetHostImpl; |
20 struct NativeWebKeyboardEvent; | 21 struct NativeWebKeyboardEvent; |
21 | 22 |
22 // | 23 // |
23 // RenderWidgetHostDelegate | 24 // RenderWidgetHostDelegate |
24 // | 25 // |
25 // An interface implemented by an object interested in knowing about the state | 26 // An interface implemented by an object interested in knowing about the state |
26 // of the RenderWidgetHost. | 27 // of the RenderWidgetHost. |
27 class CONTENT_EXPORT RenderWidgetHostDelegate { | 28 class CONTENT_EXPORT RenderWidgetHostDelegate { |
28 public: | 29 public: |
(...skipping 26 matching lines...) Expand all Loading... |
55 // Callback to inform the browser that the renderer did not process the | 56 // Callback to inform the browser that the renderer did not process the |
56 // specified gesture event. Returns true if the |event| was handled. | 57 // specified gesture event. Returns true if the |event| was handled. |
57 virtual bool HandleGestureEvent(const blink::WebGestureEvent& event); | 58 virtual bool HandleGestureEvent(const blink::WebGestureEvent& event); |
58 | 59 |
59 // Notifies that screen rects were sent to renderer process. | 60 // Notifies that screen rects were sent to renderer process. |
60 virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) {} | 61 virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) {} |
61 | 62 |
62 // Notifies that RenderWidgetHost will toggle touch emulation. | 63 // Notifies that RenderWidgetHost will toggle touch emulation. |
63 virtual void OnTouchEmulationEnabled(bool enabled) {} | 64 virtual void OnTouchEmulationEnabled(bool enabled) {} |
64 | 65 |
| 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 |
65 #if defined(OS_WIN) | 74 #if defined(OS_WIN) |
66 // Returns the widget's parent's NativeViewAccessible. | |
67 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); | 75 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); |
68 #endif | 76 #endif |
69 | 77 |
70 protected: | 78 protected: |
71 virtual ~RenderWidgetHostDelegate() {} | 79 virtual ~RenderWidgetHostDelegate() {} |
72 }; | 80 }; |
73 | 81 |
74 } // namespace content | 82 } // namespace content |
75 | 83 |
76 #endif // CONTENT_BROWSER_RENDER_WIDGET_HOST_DELEGATE_H_ | 84 #endif // CONTENT_BROWSER_RENDER_WIDGET_HOST_DELEGATE_H_ |
OLD | NEW |