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