| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 // trigger a re-composite to the view. If a resize is pending, it will | 195 // trigger a re-composite to the view. If a resize is pending, it will |
| 196 // block briefly waiting for an ack from the renderer. | 196 // block briefly waiting for an ack from the renderer. |
| 197 void ScheduleComposite(); | 197 void ScheduleComposite(); |
| 198 | 198 |
| 199 // Starts a hang monitor timeout. If there's already a hang monitor timeout | 199 // Starts a hang monitor timeout. If there's already a hang monitor timeout |
| 200 // the new one will only fire if it has a shorter delay than the time | 200 // the new one will only fire if it has a shorter delay than the time |
| 201 // left on the existing timeouts. | 201 // left on the existing timeouts. |
| 202 void StartHangMonitorTimeout(base::TimeDelta delay); | 202 void StartHangMonitorTimeout(base::TimeDelta delay); |
| 203 | 203 |
| 204 // Stops all existing hang monitor timeouts and assumes the renderer is | 204 // Stops all existing hang monitor timeouts and assumes the renderer is |
| 205 // responsive. | 205 // responsive. It is virtual so RenderViewHost can make a decision whether |
| 206 void StopHangMonitorTimeout(); | 206 // the timer should be stopped, to avoid stopping it during cross site |
| 207 // navigation. |
| 208 virtual void StopHangMonitorTimeout(); |
| 207 | 209 |
| 208 // Forwards the given message to the renderer. These are called by the view | 210 // Forwards the given message to the renderer. These are called by the view |
| 209 // when it has received a message. | 211 // when it has received a message. |
| 210 void ForwardGestureEvent(const WebKit::WebGestureEvent& gesture_event); | 212 void ForwardGestureEvent(const WebKit::WebGestureEvent& gesture_event); |
| 211 virtual void ForwardTouchEvent(const WebKit::WebTouchEvent& touch_event); | 213 virtual void ForwardTouchEvent(const WebKit::WebTouchEvent& touch_event); |
| 212 | 214 |
| 213 #if defined(TOOLKIT_USES_GTK) | 215 #if defined(TOOLKIT_USES_GTK) |
| 214 // Give key press listeners a chance to handle this key press. This allow | 216 // Give key press listeners a chance to handle this key press. This allow |
| 215 // widgets that don't have focus to still handle key presses. | 217 // widgets that don't have focus to still handle key presses. |
| 216 bool KeyPressListenersHandleEvent(GdkEventKey* event); | 218 bool KeyPressListenersHandleEvent(GdkEventKey* event); |
| (...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 690 bool has_touch_handler_; | 692 bool has_touch_handler_; |
| 691 | 693 |
| 692 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 694 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
| 693 | 695 |
| 694 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 696 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 695 }; | 697 }; |
| 696 | 698 |
| 697 } // namespace content | 699 } // namespace content |
| 698 | 700 |
| 699 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 701 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |