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