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