| 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" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 // Callback to inform the browser that the renderer did not process the | 54 // Callback to inform the browser that the renderer did not process the |
| 55 // specified mouse wheel event. Returns true if the browser has handled | 55 // specified mouse wheel event. Returns true if the browser has handled |
| 56 // the event itself. | 56 // the event itself. |
| 57 virtual bool HandleWheelEvent(const blink::WebMouseWheelEvent& event); | 57 virtual bool HandleWheelEvent(const blink::WebMouseWheelEvent& event); |
| 58 | 58 |
| 59 // Callback to give the browser a chance to handle the specified gesture | 59 // Callback to give the browser a chance to handle the specified gesture |
| 60 // event before sending it to the renderer. | 60 // event before sending it to the renderer. |
| 61 // Returns true if the |event| was handled. | 61 // Returns true if the |event| was handled. |
| 62 virtual bool PreHandleGestureEvent(const blink::WebGestureEvent& event); | 62 virtual bool PreHandleGestureEvent(const blink::WebGestureEvent& event); |
| 63 | 63 |
| 64 // Callback to inform the browser that the renderer did not process the | |
| 65 // specified gesture event. Returns true if the |event| was handled. | |
| 66 virtual bool HandleGestureEvent(const blink::WebGestureEvent& event); | |
| 67 | |
| 68 // Notifies that screen rects were sent to renderer process. | 64 // Notifies that screen rects were sent to renderer process. |
| 69 virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) {} | 65 virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) {} |
| 70 | 66 |
| 71 // Get the root BrowserAccessibilityManager for this frame tree. | 67 // Get the root BrowserAccessibilityManager for this frame tree. |
| 72 virtual BrowserAccessibilityManager* GetRootBrowserAccessibilityManager(); | 68 virtual BrowserAccessibilityManager* GetRootBrowserAccessibilityManager(); |
| 73 | 69 |
| 74 // Get the root BrowserAccessibilityManager for this frame tree, | 70 // Get the root BrowserAccessibilityManager for this frame tree, |
| 75 // or create it if it doesn't exist. | 71 // or create it if it doesn't exist. |
| 76 virtual BrowserAccessibilityManager* | 72 virtual BrowserAccessibilityManager* |
| 77 GetOrCreateRootBrowserAccessibilityManager(); | 73 GetOrCreateRootBrowserAccessibilityManager(); |
| 78 | 74 |
| 79 #if defined(OS_WIN) | 75 #if defined(OS_WIN) |
| 80 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); | 76 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); |
| 81 #endif | 77 #endif |
| 82 | 78 |
| 83 protected: | 79 protected: |
| 84 virtual ~RenderWidgetHostDelegate() {} | 80 virtual ~RenderWidgetHostDelegate() {} |
| 85 }; | 81 }; |
| 86 | 82 |
| 87 } // namespace content | 83 } // namespace content |
| 88 | 84 |
| 89 #endif // CONTENT_BROWSER_RENDER_WIDGET_HOST_DELEGATE_H_ | 85 #endif // CONTENT_BROWSER_RENDER_WIDGET_HOST_DELEGATE_H_ |
| OLD | NEW |