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