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