| 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_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 // Callback to inform the browser that the renderer did not process the | 71 // Callback to inform the browser that the renderer did not process the |
| 72 // specified events. This gives an opportunity to the browser to process the | 72 // specified events. This gives an opportunity to the browser to process the |
| 73 // event (used for keyboard shortcuts). | 73 // event (used for keyboard shortcuts). |
| 74 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {} | 74 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {} |
| 75 | 75 |
| 76 // Callback to inform the browser that the renderer did not process the | 76 // Callback to inform the browser that the renderer did not process the |
| 77 // specified mouse wheel event. Returns true if the browser has handled | 77 // specified mouse wheel event. Returns true if the browser has handled |
| 78 // the event itself. | 78 // the event itself. |
| 79 virtual bool HandleWheelEvent(const blink::WebMouseWheelEvent& event); | 79 virtual bool HandleWheelEvent(const blink::WebMouseWheelEvent& event); |
| 80 | 80 |
| 81 // Notification the user has performed a direct interaction (mouse down, mouse | 81 // Notification the user has performed a direct interaction (mouse down, |
| 82 // wheel, raw key down, gesture tap, or browser-initiated navigation) while | 82 // scroll, raw key down, gesture tap, or browser-initiated navigation) while |
| 83 // focus was on the page. Informs the delegate that a user is interacting with | 83 // focus was on the page. Informs the delegate that a user is interacting with |
| 84 // a site. Only the first mouse wheel event during a scroll will trigger this | 84 // a site. |
| 85 // method. | |
| 86 virtual void OnUserInteraction(RenderWidgetHostImpl* render_widget_host, | 85 virtual void OnUserInteraction(RenderWidgetHostImpl* render_widget_host, |
| 87 const blink::WebInputEvent::Type type) {} | 86 const blink::WebInputEvent::Type type) {} |
| 88 | 87 |
| 89 // Callback to give the browser a chance to handle the specified gesture | 88 // Callback to give the browser a chance to handle the specified gesture |
| 90 // event before sending it to the renderer. | 89 // event before sending it to the renderer. |
| 91 // Returns true if the |event| was handled. | 90 // Returns true if the |event| was handled. |
| 92 virtual bool PreHandleGestureEvent(const blink::WebGestureEvent& event); | 91 virtual bool PreHandleGestureEvent(const blink::WebGestureEvent& event); |
| 93 | 92 |
| 94 // Notifies that screen rects were sent to renderer process. | 93 // Notifies that screen rects were sent to renderer process. |
| 95 virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) {} | 94 virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) {} |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 // WebContents. | 182 // WebContents. |
| 184 virtual void OnRenderFrameProxyVisibilityChanged(bool visible) {} | 183 virtual void OnRenderFrameProxyVisibilityChanged(bool visible) {} |
| 185 | 184 |
| 186 protected: | 185 protected: |
| 187 virtual ~RenderWidgetHostDelegate() {} | 186 virtual ~RenderWidgetHostDelegate() {} |
| 188 }; | 187 }; |
| 189 | 188 |
| 190 } // namespace content | 189 } // namespace content |
| 191 | 190 |
| 192 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 191 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
| OLD | NEW |