| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 // Starts the rendering timeout, which will clear displayed graphics if | 331 // Starts the rendering timeout, which will clear displayed graphics if |
| 332 // a new compositor frame is not received before it expires. | 332 // a new compositor frame is not received before it expires. |
| 333 void StartNewContentRenderingTimeout(); | 333 void StartNewContentRenderingTimeout(); |
| 334 | 334 |
| 335 // Notification that a new compositor frame has been generated following | 335 // Notification that a new compositor frame has been generated following |
| 336 // a page load. This stops |new_content_rendering_timeout_|, or prevents | 336 // a page load. This stops |new_content_rendering_timeout_|, or prevents |
| 337 // the timer from running if the load commit message hasn't been received | 337 // the timer from running if the load commit message hasn't been received |
| 338 // yet. | 338 // yet. |
| 339 void OnFirstPaintAfterLoad(); | 339 void OnFirstPaintAfterLoad(); |
| 340 | 340 |
| 341 // Forwards the keyboard event with optional commands to the renderer. If |
| 342 // |key_event| is not forwarded for any reason, then |commands| are ignored. |
| 343 void ForwardKeyboardEventWithCommands( |
| 344 const NativeWebKeyboardEvent& key_event, |
| 345 const std::vector<EditCommand>* commands); |
| 346 |
| 341 // Forwards the given message to the renderer. These are called by the view | 347 // Forwards the given message to the renderer. These are called by the view |
| 342 // when it has received a message. | 348 // when it has received a message. |
| 343 void ForwardGestureEventWithLatencyInfo( | 349 void ForwardGestureEventWithLatencyInfo( |
| 344 const blink::WebGestureEvent& gesture_event, | 350 const blink::WebGestureEvent& gesture_event, |
| 345 const ui::LatencyInfo& ui_latency) override; | 351 const ui::LatencyInfo& ui_latency) override; |
| 346 virtual void ForwardTouchEventWithLatencyInfo( | 352 virtual void ForwardTouchEventWithLatencyInfo( |
| 347 const blink::WebTouchEvent& touch_event, | 353 const blink::WebTouchEvent& touch_event, |
| 348 const ui::LatencyInfo& ui_latency); // Virtual for testing. | 354 const ui::LatencyInfo& ui_latency); // Virtual for testing. |
| 349 void ForwardMouseEventWithLatencyInfo( | 355 void ForwardMouseEventWithLatencyInfo( |
| 350 const blink::WebMouseEvent& mouse_event, | 356 const blink::WebMouseEvent& mouse_event, |
| (...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 907 #endif | 913 #endif |
| 908 | 914 |
| 909 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 915 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
| 910 | 916 |
| 911 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 917 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 912 }; | 918 }; |
| 913 | 919 |
| 914 } // namespace content | 920 } // namespace content |
| 915 | 921 |
| 916 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 922 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |