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