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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 class RenderWidgetHostDelegate; | 80 class RenderWidgetHostDelegate; |
81 class RenderWidgetHostOwnerDelegate; | 81 class RenderWidgetHostOwnerDelegate; |
82 class SyntheticGestureController; | 82 class SyntheticGestureController; |
83 class TimeoutMonitor; | 83 class TimeoutMonitor; |
84 class TouchEmulator; | 84 class TouchEmulator; |
85 class WebCursor; | 85 class WebCursor; |
86 struct EditCommand; | 86 struct EditCommand; |
87 struct ResizeParams; | 87 struct ResizeParams; |
88 struct TextInputState; | 88 struct TextInputState; |
89 | 89 |
| 90 #if defined(OS_MACOSX) |
| 91 class PowerSaveBlockerImpl; |
| 92 #endif |
| 93 |
90 // This implements the RenderWidgetHost interface that is exposed to | 94 // This implements the RenderWidgetHost interface that is exposed to |
91 // embedders of content, and adds things only visible to content. | 95 // embedders of content, and adds things only visible to content. |
92 class CONTENT_EXPORT RenderWidgetHostImpl : public RenderWidgetHost, | 96 class CONTENT_EXPORT RenderWidgetHostImpl : public RenderWidgetHost, |
93 public InputRouterClient, | 97 public InputRouterClient, |
94 public InputAckHandler, | 98 public InputAckHandler, |
95 public TouchEmulatorClient, | 99 public TouchEmulatorClient, |
96 public IPC::Listener { | 100 public IPC::Listener { |
97 public: | 101 public: |
98 // |routing_id| must not be MSG_ROUTING_NONE. | 102 // |routing_id| must not be MSG_ROUTING_NONE. |
99 // If this object outlives |delegate|, DetachDelegate() must be called when | 103 // If this object outlives |delegate|, DetachDelegate() must be called when |
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
802 // causing HasFocus to return false when is_focused_ is true. | 806 // causing HasFocus to return false when is_focused_ is true. |
803 bool is_focused_; | 807 bool is_focused_; |
804 | 808 |
805 // This value indicates how long to wait before we consider a renderer hung. | 809 // This value indicates how long to wait before we consider a renderer hung. |
806 base::TimeDelta hung_renderer_delay_; | 810 base::TimeDelta hung_renderer_delay_; |
807 | 811 |
808 // This value indicates how long to wait for a new compositor frame from a | 812 // This value indicates how long to wait for a new compositor frame from a |
809 // renderer process before clearing any previously displayed content. | 813 // renderer process before clearing any previously displayed content. |
810 base::TimeDelta new_content_rendering_delay_; | 814 base::TimeDelta new_content_rendering_delay_; |
811 | 815 |
| 816 #if defined(OS_MACOSX) |
| 817 std::unique_ptr<PowerSaveBlockerImpl> power_save_blocker_; |
| 818 #endif |
| 819 |
812 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 820 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
813 | 821 |
814 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 822 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
815 }; | 823 }; |
816 | 824 |
817 } // namespace content | 825 } // namespace content |
818 | 826 |
819 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 827 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |