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_RENDERER_RENDER_WIDGET_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ |
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ | 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 void UnregisterVideoHoleFrame(RenderFrameImpl* frame); | 135 void UnregisterVideoHoleFrame(RenderFrameImpl* frame); |
136 #endif // defined(VIDEO_HOLE) | 136 #endif // defined(VIDEO_HOLE) |
137 | 137 |
138 // IPC::Listener | 138 // IPC::Listener |
139 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 139 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
140 | 140 |
141 // IPC::Sender | 141 // IPC::Sender |
142 virtual bool Send(IPC::Message* msg) OVERRIDE; | 142 virtual bool Send(IPC::Message* msg) OVERRIDE; |
143 | 143 |
144 // blink::WebWidgetClient | 144 // blink::WebWidgetClient |
| 145 virtual void suppressCompositorScheduling(bool enable); |
145 virtual void willBeginCompositorFrame(); | 146 virtual void willBeginCompositorFrame(); |
146 virtual void didAutoResize(const blink::WebSize& new_size); | 147 virtual void didAutoResize(const blink::WebSize& new_size); |
147 virtual void initializeLayerTreeView(); | 148 virtual void initializeLayerTreeView(); |
148 virtual blink::WebLayerTreeView* layerTreeView(); | 149 virtual blink::WebLayerTreeView* layerTreeView(); |
149 virtual void didBecomeReadyForAdditionalInput(); | 150 virtual void didBecomeReadyForAdditionalInput(); |
150 virtual void didCommitAndDrawCompositorFrame(); | 151 virtual void didCommitAndDrawCompositorFrame(); |
151 virtual void didCompleteSwapBuffers(); | 152 virtual void didCompleteSwapBuffers(); |
152 virtual void scheduleComposite(); | 153 virtual void scheduleComposite(); |
153 virtual void didFocus(); | 154 virtual void didFocus(); |
154 virtual void didBlur(); | 155 virtual void didBlur(); |
(...skipping 10 matching lines...) Expand all Loading... |
165 virtual blink::WebScreenInfo screenInfo(); | 166 virtual blink::WebScreenInfo screenInfo(); |
166 virtual float deviceScaleFactor(); | 167 virtual float deviceScaleFactor(); |
167 virtual void resetInputMethod(); | 168 virtual void resetInputMethod(); |
168 virtual void didHandleGestureEvent(const blink::WebGestureEvent& event, | 169 virtual void didHandleGestureEvent(const blink::WebGestureEvent& event, |
169 bool event_cancelled); | 170 bool event_cancelled); |
170 virtual void showImeIfNeeded(); | 171 virtual void showImeIfNeeded(); |
171 | 172 |
172 // Begins the compositor's scheduler to start producing frames. | 173 // Begins the compositor's scheduler to start producing frames. |
173 void StartCompositor(); | 174 void StartCompositor(); |
174 | 175 |
175 // Stop compositing. | |
176 void DestroyLayerTreeView(); | |
177 | |
178 // Called when a plugin is moved. These events are queued up and sent with | 176 // Called when a plugin is moved. These events are queued up and sent with |
179 // the next paint or scroll message to the host. | 177 // the next paint or scroll message to the host. |
180 void SchedulePluginMove(const WebPluginGeometry& move); | 178 void SchedulePluginMove(const WebPluginGeometry& move); |
181 | 179 |
182 // Called when a plugin window has been destroyed, to make sure the currently | 180 // Called when a plugin window has been destroyed, to make sure the currently |
183 // pending moves don't try to reference it. | 181 // pending moves don't try to reference it. |
184 void CleanupWindowInPluginMoves(gfx::PluginWindowHandle window); | 182 void CleanupWindowInPluginMoves(gfx::PluginWindowHandle window); |
185 | 183 |
186 RenderWidgetCompositor* compositor() const; | 184 RenderWidgetCompositor* compositor() const; |
187 | 185 |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
619 // Type of the input event we are currently handling. | 617 // Type of the input event we are currently handling. |
620 blink::WebInputEvent::Type handling_event_type_; | 618 blink::WebInputEvent::Type handling_event_type_; |
621 | 619 |
622 // Whether we should not send ack for the current mouse move. | 620 // Whether we should not send ack for the current mouse move. |
623 bool ignore_ack_for_mouse_move_from_debugger_; | 621 bool ignore_ack_for_mouse_move_from_debugger_; |
624 | 622 |
625 // True if we have requested this widget be closed. No more messages will | 623 // True if we have requested this widget be closed. No more messages will |
626 // be sent, except for a Close. | 624 // be sent, except for a Close. |
627 bool closing_; | 625 bool closing_; |
628 | 626 |
629 // True if it is known that the host is in the process of being shut down. | |
630 bool host_closing_; | |
631 | |
632 // Whether this RenderWidget is currently swapped out, such that the view is | 627 // Whether this RenderWidget is currently swapped out, such that the view is |
633 // being rendered by another process. If all RenderWidgets in a process are | 628 // being rendered by another process. If all RenderWidgets in a process are |
634 // swapped out, the process can exit. | 629 // swapped out, the process can exit. |
635 bool is_swapped_out_; | 630 bool is_swapped_out_; |
636 | 631 |
637 // Indicates if an input method is active in the browser process. | 632 // Indicates if an input method is active in the browser process. |
638 bool input_method_is_active_; | 633 bool input_method_is_active_; |
639 | 634 |
640 // Stores information about the current text input. | 635 // Stores information about the current text input. |
641 blink::WebTextInputInfo text_input_info_; | 636 blink::WebTextInputInfo text_input_info_; |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
745 ui::MenuSourceType context_menu_source_type_; | 740 ui::MenuSourceType context_menu_source_type_; |
746 bool has_host_context_menu_location_; | 741 bool has_host_context_menu_location_; |
747 gfx::Point host_context_menu_location_; | 742 gfx::Point host_context_menu_location_; |
748 | 743 |
749 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 744 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
750 }; | 745 }; |
751 | 746 |
752 } // namespace content | 747 } // namespace content |
753 | 748 |
754 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 749 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |