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 "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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 // Callback to inform the browser that the renderer did not process the | 58 // Callback to inform the browser that the renderer did not process the |
59 // specified events. This gives an opportunity to the browser to process the | 59 // specified events. This gives an opportunity to the browser to process the |
60 // event (used for keyboard shortcuts). | 60 // event (used for keyboard shortcuts). |
61 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {} | 61 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {} |
62 | 62 |
63 // Callback to inform the browser that the renderer did not process the | 63 // Callback to inform the browser that the renderer did not process the |
64 // specified mouse wheel event. Returns true if the browser has handled | 64 // specified mouse wheel event. Returns true if the browser has handled |
65 // the event itself. | 65 // the event itself. |
66 virtual bool HandleWheelEvent(const blink::WebMouseWheelEvent& event); | 66 virtual bool HandleWheelEvent(const blink::WebMouseWheelEvent& event); |
67 | 67 |
68 // Notification the user has performed a direct interaction (mouse down, raw | 68 // Notification the user has performed a direct interaction (mouse down, mouse |
69 // key down, or gesture tap) while focus was on the page. This is used to | 69 // wheel, raw key down, or gesture tap) while focus was on the page. Informs |
70 // inform the delegate that a user is interacting with a site. | 70 // the delegate that a user is interacting with a site. Only the first mouse |
| 71 // wheel event during a scroll will trigger this method. |
71 virtual void OnUserInteraction(const blink::WebInputEvent::Type type) {} | 72 virtual void OnUserInteraction(const blink::WebInputEvent::Type type) {} |
72 | 73 |
73 // Callback to give the browser a chance to handle the specified gesture | 74 // Callback to give the browser a chance to handle the specified gesture |
74 // event before sending it to the renderer. | 75 // event before sending it to the renderer. |
75 // Returns true if the |event| was handled. | 76 // Returns true if the |event| was handled. |
76 virtual bool PreHandleGestureEvent(const blink::WebGestureEvent& event); | 77 virtual bool PreHandleGestureEvent(const blink::WebGestureEvent& event); |
77 | 78 |
78 // Notifies that screen rects were sent to renderer process. | 79 // Notifies that screen rects were sent to renderer process. |
79 virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) {} | 80 virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) {} |
80 | 81 |
(...skipping 28 matching lines...) Expand all Loading... |
109 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); | 110 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); |
110 #endif | 111 #endif |
111 | 112 |
112 protected: | 113 protected: |
113 virtual ~RenderWidgetHostDelegate() {} | 114 virtual ~RenderWidgetHostDelegate() {} |
114 }; | 115 }; |
115 | 116 |
116 } // namespace content | 117 } // namespace content |
117 | 118 |
118 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 119 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
OLD | NEW |