| 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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 // Type of the input event we are currently handling. | 622 // Type of the input event we are currently handling. |
| 621 blink::WebInputEvent::Type handling_event_type_; | 623 blink::WebInputEvent::Type handling_event_type_; |
| 622 | 624 |
| 623 // Whether we should not send ack for the current mouse move. | 625 // Whether we should not send ack for the current mouse move. |
| 624 bool ignore_ack_for_mouse_move_from_debugger_; | 626 bool ignore_ack_for_mouse_move_from_debugger_; |
| 625 | 627 |
| 626 // True if we have requested this widget be closed. No more messages will | 628 // True if we have requested this widget be closed. No more messages will |
| 627 // be sent, except for a Close. | 629 // be sent, except for a Close. |
| 628 bool closing_; | 630 bool closing_; |
| 629 | 631 |
| 632 // True if it is known that the host is in the process of being shut down. |
| 633 bool host_closing_; |
| 634 |
| 630 // Whether this RenderWidget is currently swapped out, such that the view is | 635 // Whether this RenderWidget is currently swapped out, such that the view is |
| 631 // being rendered by another process. If all RenderWidgets in a process are | 636 // being rendered by another process. If all RenderWidgets in a process are |
| 632 // swapped out, the process can exit. | 637 // swapped out, the process can exit. |
| 633 bool is_swapped_out_; | 638 bool is_swapped_out_; |
| 634 | 639 |
| 635 // Indicates if an input method is active in the browser process. | 640 // Indicates if an input method is active in the browser process. |
| 636 bool input_method_is_active_; | 641 bool input_method_is_active_; |
| 637 | 642 |
| 638 // Stores information about the current text input. | 643 // Stores information about the current text input. |
| 639 blink::WebTextInputInfo text_input_info_; | 644 blink::WebTextInputInfo text_input_info_; |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 743 ui::MenuSourceType context_menu_source_type_; | 748 ui::MenuSourceType context_menu_source_type_; |
| 744 bool has_host_context_menu_location_; | 749 bool has_host_context_menu_location_; |
| 745 gfx::Point host_context_menu_location_; | 750 gfx::Point host_context_menu_location_; |
| 746 | 751 |
| 747 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 752 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 748 }; | 753 }; |
| 749 | 754 |
| 750 } // namespace content | 755 } // namespace content |
| 751 | 756 |
| 752 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 757 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |