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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 void UnregisterVideoHoleFrame(RenderFrameImpl* frame); | 124 void UnregisterVideoHoleFrame(RenderFrameImpl* frame); |
125 #endif // defined(VIDEO_HOLE) | 125 #endif // defined(VIDEO_HOLE) |
126 | 126 |
127 // IPC::Listener | 127 // IPC::Listener |
128 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 128 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
129 | 129 |
130 // IPC::Sender | 130 // IPC::Sender |
131 virtual bool Send(IPC::Message* msg) OVERRIDE; | 131 virtual bool Send(IPC::Message* msg) OVERRIDE; |
132 | 132 |
133 // blink::WebWidgetClient | 133 // blink::WebWidgetClient |
134 virtual void suppressCompositorScheduling(bool enable); | |
135 virtual void willBeginCompositorFrame(); | 134 virtual void willBeginCompositorFrame(); |
136 virtual void didAutoResize(const blink::WebSize& new_size); | 135 virtual void didAutoResize(const blink::WebSize& new_size); |
137 virtual void initializeLayerTreeView(); | 136 virtual void initializeLayerTreeView(); |
138 virtual blink::WebLayerTreeView* layerTreeView(); | 137 virtual blink::WebLayerTreeView* layerTreeView(); |
139 virtual void didBecomeReadyForAdditionalInput(); | 138 virtual void didBecomeReadyForAdditionalInput(); |
140 virtual void didCommitAndDrawCompositorFrame(); | 139 virtual void didCommitAndDrawCompositorFrame(); |
141 virtual void didCompleteSwapBuffers(); | 140 virtual void didCompleteSwapBuffers(); |
142 virtual void scheduleComposite(); | 141 virtual void scheduleComposite(); |
143 virtual void didFocus(); | 142 virtual void didFocus(); |
144 virtual void didBlur(); | 143 virtual void didBlur(); |
(...skipping 10 matching lines...) Expand all Loading... |
155 virtual blink::WebScreenInfo screenInfo(); | 154 virtual blink::WebScreenInfo screenInfo(); |
156 virtual float deviceScaleFactor(); | 155 virtual float deviceScaleFactor(); |
157 virtual void resetInputMethod(); | 156 virtual void resetInputMethod(); |
158 virtual void didHandleGestureEvent(const blink::WebGestureEvent& event, | 157 virtual void didHandleGestureEvent(const blink::WebGestureEvent& event, |
159 bool event_cancelled); | 158 bool event_cancelled); |
160 virtual void showImeIfNeeded(); | 159 virtual void showImeIfNeeded(); |
161 | 160 |
162 // Begins the compositor's scheduler to start producing frames. | 161 // Begins the compositor's scheduler to start producing frames. |
163 void StartCompositor(); | 162 void StartCompositor(); |
164 | 163 |
| 164 // Stop compositing. |
| 165 void DestroyLayerTreeView(); |
| 166 |
165 // Called when a plugin is moved. These events are queued up and sent with | 167 // Called when a plugin is moved. These events are queued up and sent with |
166 // the next paint or scroll message to the host. | 168 // the next paint or scroll message to the host. |
167 void SchedulePluginMove(const WebPluginGeometry& move); | 169 void SchedulePluginMove(const WebPluginGeometry& move); |
168 | 170 |
169 // Called when a plugin window has been destroyed, to make sure the currently | 171 // Called when a plugin window has been destroyed, to make sure the currently |
170 // pending moves don't try to reference it. | 172 // pending moves don't try to reference it. |
171 void CleanupWindowInPluginMoves(gfx::PluginWindowHandle window); | 173 void CleanupWindowInPluginMoves(gfx::PluginWindowHandle window); |
172 | 174 |
173 RenderWidgetCompositor* compositor() const; | 175 RenderWidgetCompositor* compositor() const; |
174 | 176 |
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 // Type of the input event we are currently handling. | 585 // Type of the input event we are currently handling. |
584 blink::WebInputEvent::Type handling_event_type_; | 586 blink::WebInputEvent::Type handling_event_type_; |
585 | 587 |
586 // Whether we should not send ack for the current mouse move. | 588 // Whether we should not send ack for the current mouse move. |
587 bool ignore_ack_for_mouse_move_from_debugger_; | 589 bool ignore_ack_for_mouse_move_from_debugger_; |
588 | 590 |
589 // True if we have requested this widget be closed. No more messages will | 591 // True if we have requested this widget be closed. No more messages will |
590 // be sent, except for a Close. | 592 // be sent, except for a Close. |
591 bool closing_; | 593 bool closing_; |
592 | 594 |
| 595 // True if it is known that the host is in the process of being shut down. |
| 596 bool host_closing_; |
| 597 |
593 // Whether this RenderWidget is currently swapped out, such that the view is | 598 // Whether this RenderWidget is currently swapped out, such that the view is |
594 // being rendered by another process. If all RenderWidgets in a process are | 599 // being rendered by another process. If all RenderWidgets in a process are |
595 // swapped out, the process can exit. | 600 // swapped out, the process can exit. |
596 bool is_swapped_out_; | 601 bool is_swapped_out_; |
597 | 602 |
598 // Indicates if an input method is active in the browser process. | 603 // Indicates if an input method is active in the browser process. |
599 bool input_method_is_active_; | 604 bool input_method_is_active_; |
600 | 605 |
601 // Stores information about the current text input. | 606 // Stores information about the current text input. |
602 blink::WebTextInputInfo text_input_info_; | 607 blink::WebTextInputInfo text_input_info_; |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
707 | 712 |
708 ui::MenuSourceType context_menu_source_type_; | 713 ui::MenuSourceType context_menu_source_type_; |
709 gfx::Point touch_editing_context_menu_location_; | 714 gfx::Point touch_editing_context_menu_location_; |
710 | 715 |
711 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 716 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
712 }; | 717 }; |
713 | 718 |
714 } // namespace content | 719 } // namespace content |
715 | 720 |
716 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 721 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |