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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 #endif | 61 #endif |
62 class WebMouseEvent; | 62 class WebMouseEvent; |
63 struct WebCompositionUnderline; | 63 struct WebCompositionUnderline; |
64 struct WebScreenInfo; | 64 struct WebScreenInfo; |
65 } | 65 } |
66 | 66 |
67 namespace cc { | 67 namespace cc { |
68 class CompositorFrameAck; | 68 class CompositorFrameAck; |
69 } | 69 } |
70 | 70 |
71 #if defined(OS_MACOSX) | |
72 namespace device { | |
73 class PowerSaveBlocker; | |
74 } // namespace device | |
75 #endif | |
76 | |
77 namespace gfx { | 71 namespace gfx { |
78 class Range; | 72 class Range; |
79 } | 73 } |
80 | 74 |
81 namespace content { | 75 namespace content { |
82 | 76 |
83 class BrowserAccessibilityManager; | 77 class BrowserAccessibilityManager; |
84 class InputRouter; | 78 class InputRouter; |
85 class MockRenderWidgetHost; | 79 class MockRenderWidgetHost; |
86 class RenderWidgetHostDelegate; | 80 class RenderWidgetHostDelegate; |
87 class RenderWidgetHostOwnerDelegate; | 81 class RenderWidgetHostOwnerDelegate; |
88 class SyntheticGestureController; | 82 class SyntheticGestureController; |
89 class TimeoutMonitor; | 83 class TimeoutMonitor; |
90 class TouchEmulator; | 84 class TouchEmulator; |
91 class WebCursor; | 85 class WebCursor; |
92 struct EditCommand; | 86 struct EditCommand; |
93 struct ResizeParams; | 87 struct ResizeParams; |
94 struct TextInputState; | 88 struct TextInputState; |
95 | 89 |
| 90 #if defined(OS_MACOSX) |
| 91 class PowerSaveBlocker; |
| 92 #endif |
| 93 |
96 // This implements the RenderWidgetHost interface that is exposed to | 94 // This implements the RenderWidgetHost interface that is exposed to |
97 // embedders of content, and adds things only visible to content. | 95 // embedders of content, and adds things only visible to content. |
98 class CONTENT_EXPORT RenderWidgetHostImpl : public RenderWidgetHost, | 96 class CONTENT_EXPORT RenderWidgetHostImpl : public RenderWidgetHost, |
99 public InputRouterClient, | 97 public InputRouterClient, |
100 public InputAckHandler, | 98 public InputAckHandler, |
101 public TouchEmulatorClient, | 99 public TouchEmulatorClient, |
102 public IPC::Listener { | 100 public IPC::Listener { |
103 public: | 101 public: |
104 // |routing_id| must not be MSG_ROUTING_NONE. | 102 // |routing_id| must not be MSG_ROUTING_NONE. |
105 // If this object outlives |delegate|, DetachDelegate() must be called when | 103 // If this object outlives |delegate|, DetachDelegate() must be called when |
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
824 bool is_focused_; | 822 bool is_focused_; |
825 | 823 |
826 // This value indicates how long to wait before we consider a renderer hung. | 824 // This value indicates how long to wait before we consider a renderer hung. |
827 base::TimeDelta hung_renderer_delay_; | 825 base::TimeDelta hung_renderer_delay_; |
828 | 826 |
829 // This value indicates how long to wait for a new compositor frame from a | 827 // This value indicates how long to wait for a new compositor frame from a |
830 // renderer process before clearing any previously displayed content. | 828 // renderer process before clearing any previously displayed content. |
831 base::TimeDelta new_content_rendering_delay_; | 829 base::TimeDelta new_content_rendering_delay_; |
832 | 830 |
833 #if defined(OS_MACOSX) | 831 #if defined(OS_MACOSX) |
834 std::unique_ptr<device::PowerSaveBlocker> power_save_blocker_; | 832 std::unique_ptr<PowerSaveBlocker> power_save_blocker_; |
835 #endif | 833 #endif |
836 | 834 |
837 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 835 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
838 | 836 |
839 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 837 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
840 }; | 838 }; |
841 | 839 |
842 } // namespace content | 840 } // namespace content |
843 | 841 |
844 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 842 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |