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