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 it is not already in |original|. And if |original| is |
| 542 // not NULL, it is also merged into the resulting LatencyInfo. |
| 543 ui::LatencyInfo CreateRWHLatencyInfoIfNotExist( |
| 544 const ui::LatencyInfo* original); |
542 | 545 |
543 // Called when we receive a notification indicating that the renderer | 546 // 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 | 547 // process has gone. This will reset our state so that our state will be |
545 // consistent if a new renderer is created. | 548 // consistent if a new renderer is created. |
546 void RendererExited(base::TerminationStatus status, int exit_code); | 549 void RendererExited(base::TerminationStatus status, int exit_code); |
547 | 550 |
548 // Retrieves an id the renderer can use to refer to its view. | 551 // Retrieves an id the renderer can use to refer to its view. |
549 // This is used for various IPC messages, including plugins. | 552 // This is used for various IPC messages, including plugins. |
550 gfx::NativeViewId GetNativeViewId() const; | 553 gfx::NativeViewId GetNativeViewId() const; |
551 | 554 |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
950 int64 last_input_number_; | 953 int64 last_input_number_; |
951 | 954 |
952 BrowserRenderingStats rendering_stats_; | 955 BrowserRenderingStats rendering_stats_; |
953 | 956 |
954 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 957 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
955 }; | 958 }; |
956 | 959 |
957 } // namespace content | 960 } // namespace content |
958 | 961 |
959 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 962 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |