| 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" | |
| 11 | 10 |
| 12 namespace blink { | 11 namespace blink { |
| 13 class WebMouseWheelEvent; | 12 class WebMouseWheelEvent; |
| 14 class WebGestureEvent; | 13 class WebGestureEvent; |
| 15 } | 14 } |
| 16 | 15 |
| 17 namespace content { | 16 namespace content { |
| 18 | 17 |
| 18 class BrowserAccessibilityManager; |
| 19 class RenderWidgetHostImpl; | 19 class RenderWidgetHostImpl; |
| 20 struct NativeWebKeyboardEvent; | 20 struct NativeWebKeyboardEvent; |
| 21 | 21 |
| 22 // | 22 // |
| 23 // RenderWidgetHostDelegate | 23 // RenderWidgetHostDelegate |
| 24 // | 24 // |
| 25 // 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 |
| 26 // of the RenderWidgetHost. | 26 // of the RenderWidgetHost. |
| 27 class CONTENT_EXPORT RenderWidgetHostDelegate { | 27 class CONTENT_EXPORT RenderWidgetHostDelegate { |
| 28 public: | 28 public: |
| (...skipping 23 matching lines...) Expand all Loading... |
| 52 // Returns true if the |event| was handled. | 52 // Returns true if the |event| was handled. |
| 53 virtual bool PreHandleGestureEvent(const blink::WebGestureEvent& event); | 53 virtual bool PreHandleGestureEvent(const blink::WebGestureEvent& event); |
| 54 | 54 |
| 55 // 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 |
| 56 // specified gesture event. Returns true if the |event| was handled. | 56 // specified gesture event. Returns true if the |event| was handled. |
| 57 virtual bool HandleGestureEvent(const blink::WebGestureEvent& event); | 57 virtual bool HandleGestureEvent(const blink::WebGestureEvent& event); |
| 58 | 58 |
| 59 // Notifies that screen rects were sent to renderer process. | 59 // Notifies that screen rects were sent to renderer process. |
| 60 virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) {} | 60 virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) {} |
| 61 | 61 |
| 62 #if defined(OS_WIN) | 62 // Get the root BrowserAccessibilityManager for this frame tree. |
| 63 // Returns the widget's parent's NativeViewAccessible. | 63 virtual BrowserAccessibilityManager* GetRootBrowserAccessibilityManager(); |
| 64 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); | |
| 65 #endif | |
| 66 | 64 |
| 67 protected: | 65 protected: |
| 68 virtual ~RenderWidgetHostDelegate() {} | 66 virtual ~RenderWidgetHostDelegate() {} |
| 69 }; | 67 }; |
| 70 | 68 |
| 71 } // namespace content | 69 } // namespace content |
| 72 | 70 |
| 73 #endif // CONTENT_BROWSER_RENDER_WIDGET_HOST_DELEGATE_H_ | 71 #endif // CONTENT_BROWSER_RENDER_WIDGET_HOST_DELEGATE_H_ |
| OLD | NEW |