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 <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 int event_size, const ui::LatencyInfo& latency_info, | 530 int event_size, const ui::LatencyInfo& latency_info, |
531 bool is_keyboard_shortcut); | 531 bool is_keyboard_shortcut); |
532 | 532 |
533 // Internal forwarding implementations that take a LatencyInfo. | 533 // Internal forwarding implementations that take a LatencyInfo. |
534 virtual void ForwardMouseEventWithLatencyInfo( | 534 virtual void ForwardMouseEventWithLatencyInfo( |
535 const MouseEventWithLatencyInfo& mouse_event); | 535 const MouseEventWithLatencyInfo& mouse_event); |
536 virtual void ForwardWheelEventWithLatencyInfo( | 536 virtual void ForwardWheelEventWithLatencyInfo( |
537 const WebKit::WebMouseWheelEvent& wheel_event, | 537 const WebKit::WebMouseWheelEvent& wheel_event, |
538 const ui::LatencyInfo& latency_info); | 538 const ui::LatencyInfo& latency_info); |
539 | 539 |
540 // Create a LatencyInfo struct for a new input event that was just received. | 540 // Create a LatencyInfo struct with INPUT_EVENT_LATENCY_RWH_COMPONENT |
541 ui::LatencyInfo NewInputLatencyInfo(); | 541 // component. If |original| is not NULL, it is merged into the resulting |
| 542 // LatencyInfo. |
| 543 ui::LatencyInfo NewInputLatencyInfo(const ui::LatencyInfo* original); |
542 | 544 |
543 // Called when we receive a notification indicating that the renderer | 545 // Called when we receive a notification indicating that the renderer |
544 // process has gone. This will reset our state so that our state will be | 546 // process has gone. This will reset our state so that our state will be |
545 // consistent if a new renderer is created. | 547 // consistent if a new renderer is created. |
546 void RendererExited(base::TerminationStatus status, int exit_code); | 548 void RendererExited(base::TerminationStatus status, int exit_code); |
547 | 549 |
548 // Retrieves an id the renderer can use to refer to its view. | 550 // Retrieves an id the renderer can use to refer to its view. |
549 // This is used for various IPC messages, including plugins. | 551 // This is used for various IPC messages, including plugins. |
550 gfx::NativeViewId GetNativeViewId() const; | 552 gfx::NativeViewId GetNativeViewId() const; |
551 | 553 |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
950 int64 last_input_number_; | 952 int64 last_input_number_; |
951 | 953 |
952 BrowserRenderingStats rendering_stats_; | 954 BrowserRenderingStats rendering_stats_; |
953 | 955 |
954 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 956 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
955 }; | 957 }; |
956 | 958 |
957 } // namespace content | 959 } // namespace content |
958 | 960 |
959 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 961 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |