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 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
584 // Type of the input event we are currently handling. | 587 // Type of the input event we are currently handling. |
585 blink::WebInputEvent::Type handling_event_type_; | 588 blink::WebInputEvent::Type handling_event_type_; |
586 | 589 |
587 // Whether we should not send ack for the current mouse move. | 590 // Whether we should not send ack for the current mouse move. |
588 bool ignore_ack_for_mouse_move_from_debugger_; | 591 bool ignore_ack_for_mouse_move_from_debugger_; |
589 | 592 |
590 // True if we have requested this widget be closed. No more messages will | 593 // True if we have requested this widget be closed. No more messages will |
591 // be sent, except for a Close. | 594 // be sent, except for a Close. |
592 bool closing_; | 595 bool closing_; |
593 | 596 |
| 597 // True if it is known that the host is in the process of being shut down. |
| 598 bool host_closing_; |
| 599 |
594 // Whether this RenderWidget is currently swapped out, such that the view is | 600 // Whether this RenderWidget is currently swapped out, such that the view is |
595 // being rendered by another process. If all RenderWidgets in a process are | 601 // being rendered by another process. If all RenderWidgets in a process are |
596 // swapped out, the process can exit. | 602 // swapped out, the process can exit. |
597 bool is_swapped_out_; | 603 bool is_swapped_out_; |
598 | 604 |
599 // Indicates if an input method is active in the browser process. | 605 // Indicates if an input method is active in the browser process. |
600 bool input_method_is_active_; | 606 bool input_method_is_active_; |
601 | 607 |
602 // Stores information about the current text input. | 608 // Stores information about the current text input. |
603 blink::WebTextInputInfo text_input_info_; | 609 blink::WebTextInputInfo text_input_info_; |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
708 | 714 |
709 ui::MenuSourceType context_menu_source_type_; | 715 ui::MenuSourceType context_menu_source_type_; |
710 gfx::Point touch_editing_context_menu_location_; | 716 gfx::Point touch_editing_context_menu_location_; |
711 | 717 |
712 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 718 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
713 }; | 719 }; |
714 | 720 |
715 } // namespace content | 721 } // namespace content |
716 | 722 |
717 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 723 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |