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 <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
11 #include <utility> | 11 #include <utility> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/callback.h" | 14 #include "base/callback.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
17 #include "base/observer_list.h" | 17 #include "base/observer_list.h" |
18 #include "base/process/kill.h" | 18 #include "base/process/kill.h" |
19 #include "base/strings/string16.h" | 19 #include "base/strings/string16.h" |
20 #include "base/time/time.h" | 20 #include "base/time/time.h" |
21 #include "base/timer/timer.h" | 21 #include "base/timer/elapsed_timer.h" |
22 #include "build/build_config.h" | 22 #include "build/build_config.h" |
23 #include "cc/resources/shared_bitmap.h" | 23 #include "cc/resources/shared_bitmap.h" |
24 #include "content/browser/renderer_host/event_with_latency_info.h" | 24 #include "content/browser/renderer_host/event_with_latency_info.h" |
25 #include "content/browser/renderer_host/input/input_ack_handler.h" | 25 #include "content/browser/renderer_host/input/input_ack_handler.h" |
26 #include "content/browser/renderer_host/input/input_router_client.h" | 26 #include "content/browser/renderer_host/input/input_router_client.h" |
27 #include "content/browser/renderer_host/input/render_widget_host_latency_tracker
.h" | 27 #include "content/browser/renderer_host/input/render_widget_host_latency_tracker
.h" |
28 #include "content/browser/renderer_host/input/synthetic_gesture.h" | 28 #include "content/browser/renderer_host/input/synthetic_gesture.h" |
29 #include "content/browser/renderer_host/input/touch_emulator_client.h" | 29 #include "content/browser/renderer_host/input/touch_emulator_client.h" |
30 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 30 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
31 #include "content/common/input/input_event_ack_state.h" | 31 #include "content/common/input/input_event_ack_state.h" |
(...skipping 814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
846 // causing HasFocus to return false when is_focused_ is true. | 846 // causing HasFocus to return false when is_focused_ is true. |
847 bool is_focused_; | 847 bool is_focused_; |
848 | 848 |
849 // This value indicates how long to wait before we consider a renderer hung. | 849 // This value indicates how long to wait before we consider a renderer hung. |
850 base::TimeDelta hung_renderer_delay_; | 850 base::TimeDelta hung_renderer_delay_; |
851 | 851 |
852 // This value indicates how long to wait for a new compositor frame from a | 852 // This value indicates how long to wait for a new compositor frame from a |
853 // renderer process before clearing any previously displayed content. | 853 // renderer process before clearing any previously displayed content. |
854 base::TimeDelta new_content_rendering_delay_; | 854 base::TimeDelta new_content_rendering_delay_; |
855 | 855 |
| 856 // Timer used to batch together mouse wheel events for the delegate |
| 857 // OnUserInteraction method. A wheel event is only dispatched when a wheel |
| 858 // event has not been seen for kMouseWheelCoalesceInterval seconds prior. |
| 859 scoped_ptr<base::ElapsedTimer> mouse_wheel_coalesce_timer_; |
| 860 |
856 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 861 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
857 | 862 |
858 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 863 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
859 }; | 864 }; |
860 | 865 |
861 } // namespace content | 866 } // namespace content |
862 | 867 |
863 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 868 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |