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