| 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_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 | 225 |
| 226 // Stops all existing hang monitor timeouts and assumes the renderer is | 226 // Stops all existing hang monitor timeouts and assumes the renderer is |
| 227 // responsive. | 227 // responsive. |
| 228 void StopHangMonitorTimeout(); | 228 void StopHangMonitorTimeout(); |
| 229 | 229 |
| 230 // Forwards the given message to the renderer. These are called by the view | 230 // Forwards the given message to the renderer. These are called by the view |
| 231 // when it has received a message. | 231 // when it has received a message. |
| 232 void ForwardGestureEvent(const WebKit::WebGestureEvent& gesture_event); | 232 void ForwardGestureEvent(const WebKit::WebGestureEvent& gesture_event); |
| 233 virtual void ForwardTouchEvent(const WebKit::WebTouchEvent& touch_event); | 233 virtual void ForwardTouchEvent(const WebKit::WebTouchEvent& touch_event); |
| 234 | 234 |
| 235 // Forwards the given event immediately to the renderer. |
| 236 void ForwardGestureEventImmediately( |
| 237 const WebKit::WebGestureEvent& gesture_event); |
| 238 |
| 235 #if defined(TOOLKIT_GTK) | 239 #if defined(TOOLKIT_GTK) |
| 236 // Give key press listeners a chance to handle this key press. This allow | 240 // Give key press listeners a chance to handle this key press. This allow |
| 237 // widgets that don't have focus to still handle key presses. | 241 // widgets that don't have focus to still handle key presses. |
| 238 bool KeyPressListenersHandleEvent(GdkEventKey* event); | 242 bool KeyPressListenersHandleEvent(GdkEventKey* event); |
| 239 #endif // defined(TOOLKIT_GTK) | 243 #endif // defined(TOOLKIT_GTK) |
| 240 | 244 |
| 241 void CancelUpdateTextDirection(); | 245 void CancelUpdateTextDirection(); |
| 242 | 246 |
| 243 // Called when a mouse click/gesture tap activates the renderer. | 247 // Called when a mouse click/gesture tap activates the renderer. |
| 244 virtual void OnPointerEventActivate(); | 248 virtual void OnPointerEventActivate(); |
| (...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 783 scoped_ptr<SmoothScrollGesture> active_smooth_scroll_gesture_; | 787 scoped_ptr<SmoothScrollGesture> active_smooth_scroll_gesture_; |
| 784 | 788 |
| 785 scoped_ptr<GestureEventFilter> gesture_event_filter_; | 789 scoped_ptr<GestureEventFilter> gesture_event_filter_; |
| 786 | 790 |
| 787 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 791 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 788 }; | 792 }; |
| 789 | 793 |
| 790 } // namespace content | 794 } // namespace content |
| 791 | 795 |
| 792 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 796 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |