| 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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 void StartNewContentRenderingTimeout(uint32_t next_source_id); | 340 void StartNewContentRenderingTimeout(uint32_t next_source_id); |
| 341 | 341 |
| 342 // Notification that a new compositor frame has been generated following | 342 // Notification that a new compositor frame has been generated following |
| 343 // a page load. This stops |new_content_rendering_timeout_|, or prevents | 343 // a page load. This stops |new_content_rendering_timeout_|, or prevents |
| 344 // the timer from running if the load commit message hasn't been received | 344 // the timer from running if the load commit message hasn't been received |
| 345 // yet. | 345 // yet. |
| 346 void OnFirstPaintAfterLoad(); | 346 void OnFirstPaintAfterLoad(); |
| 347 | 347 |
| 348 // Forwards the keyboard event with optional commands to the renderer. If | 348 // Forwards the keyboard event with optional commands to the renderer. If |
| 349 // |key_event| is not forwarded for any reason, then |commands| are ignored. | 349 // |key_event| is not forwarded for any reason, then |commands| are ignored. |
| 350 // |update_event| (if non-null) is set to indicate whether the underlying |
| 351 // event in |key_event| should be updated. |update_event| is only used on |
| 352 // aura. |
| 350 void ForwardKeyboardEventWithCommands( | 353 void ForwardKeyboardEventWithCommands( |
| 351 const NativeWebKeyboardEvent& key_event, | 354 const NativeWebKeyboardEvent& key_event, |
| 352 const std::vector<EditCommand>* commands); | 355 const std::vector<EditCommand>* commands, |
| 356 bool* update_event = nullptr); |
| 353 | 357 |
| 354 // Forwards the given message to the renderer. These are called by the view | 358 // Forwards the given message to the renderer. These are called by the view |
| 355 // when it has received a message. | 359 // when it has received a message. |
| 356 void ForwardGestureEventWithLatencyInfo( | 360 void ForwardGestureEventWithLatencyInfo( |
| 357 const blink::WebGestureEvent& gesture_event, | 361 const blink::WebGestureEvent& gesture_event, |
| 358 const ui::LatencyInfo& ui_latency) override; | 362 const ui::LatencyInfo& ui_latency) override; |
| 359 virtual void ForwardTouchEventWithLatencyInfo( | 363 virtual void ForwardTouchEventWithLatencyInfo( |
| 360 const blink::WebTouchEvent& touch_event, | 364 const blink::WebTouchEvent& touch_event, |
| 361 const ui::LatencyInfo& ui_latency); // Virtual for testing. | 365 const ui::LatencyInfo& ui_latency); // Virtual for testing. |
| 362 void ForwardMouseEventWithLatencyInfo( | 366 void ForwardMouseEventWithLatencyInfo( |
| (...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 912 float last_device_scale_factor_; | 916 float last_device_scale_factor_; |
| 913 | 917 |
| 914 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 918 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
| 915 | 919 |
| 916 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 920 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 917 }; | 921 }; |
| 918 | 922 |
| 919 } // namespace content | 923 } // namespace content |
| 920 | 924 |
| 921 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 925 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |