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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 // RenderWidget. | 128 // RenderWidget. |
129 void RegisterRenderFrame(RenderFrameImpl* frame); | 129 void RegisterRenderFrame(RenderFrameImpl* frame); |
130 void UnregisterRenderFrame(RenderFrameImpl* frame); | 130 void UnregisterRenderFrame(RenderFrameImpl* frame); |
131 | 131 |
132 #if defined(VIDEO_HOLE) | 132 #if defined(VIDEO_HOLE) |
133 void RegisterVideoHoleFrame(RenderFrameImpl* frame); | 133 void RegisterVideoHoleFrame(RenderFrameImpl* frame); |
134 void UnregisterVideoHoleFrame(RenderFrameImpl* frame); | 134 void UnregisterVideoHoleFrame(RenderFrameImpl* frame); |
135 #endif // defined(VIDEO_HOLE) | 135 #endif // defined(VIDEO_HOLE) |
136 | 136 |
137 // IPC::Listener | 137 // IPC::Listener |
138 virtual bool OnMessageReceived(const IPC::Message& msg) override; | 138 bool OnMessageReceived(const IPC::Message& msg) override; |
139 | 139 |
140 // IPC::Sender | 140 // IPC::Sender |
141 virtual bool Send(IPC::Message* msg) override; | 141 bool Send(IPC::Message* msg) override; |
142 | 142 |
143 // blink::WebWidgetClient | 143 // blink::WebWidgetClient |
144 virtual void willBeginCompositorFrame(); | 144 virtual void willBeginCompositorFrame(); |
145 virtual void didAutoResize(const blink::WebSize& new_size); | 145 virtual void didAutoResize(const blink::WebSize& new_size); |
146 virtual void initializeLayerTreeView(); | 146 virtual void initializeLayerTreeView(); |
147 virtual blink::WebLayerTreeView* layerTreeView(); | 147 virtual blink::WebLayerTreeView* layerTreeView(); |
148 virtual void didBecomeReadyForAdditionalInput(); | 148 virtual void didBecomeReadyForAdditionalInput(); |
149 virtual void didCommitAndDrawCompositorFrame(); | 149 virtual void didCommitAndDrawCompositorFrame(); |
150 virtual void didCompleteSwapBuffers(); | 150 virtual void didCompleteSwapBuffers(); |
151 virtual void scheduleComposite(); | 151 virtual void scheduleComposite(); |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 SEND_RESIZE_ACK, | 314 SEND_RESIZE_ACK, |
315 NO_RESIZE_ACK, | 315 NO_RESIZE_ACK, |
316 }; | 316 }; |
317 | 317 |
318 RenderWidget(blink::WebPopupType popup_type, | 318 RenderWidget(blink::WebPopupType popup_type, |
319 const blink::WebScreenInfo& screen_info, | 319 const blink::WebScreenInfo& screen_info, |
320 bool swapped_out, | 320 bool swapped_out, |
321 bool hidden, | 321 bool hidden, |
322 bool never_visible); | 322 bool never_visible); |
323 | 323 |
324 virtual ~RenderWidget(); | 324 ~RenderWidget() override; |
325 | 325 |
326 // Initializes this view with the given opener. CompleteInit must be called | 326 // Initializes this view with the given opener. CompleteInit must be called |
327 // later. | 327 // later. |
328 bool Init(int32 opener_id); | 328 bool Init(int32 opener_id); |
329 | 329 |
330 // Called by Init and subclasses to perform initialization. | 330 // Called by Init and subclasses to perform initialization. |
331 bool DoInit(int32 opener_id, | 331 bool DoInit(int32 opener_id, |
332 blink::WebWidget* web_widget, | 332 blink::WebWidget* web_widget, |
333 IPC::SyncMessage* create_widget_message); | 333 IPC::SyncMessage* create_widget_message); |
334 | 334 |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
755 ui::MenuSourceType context_menu_source_type_; | 755 ui::MenuSourceType context_menu_source_type_; |
756 bool has_host_context_menu_location_; | 756 bool has_host_context_menu_location_; |
757 gfx::Point host_context_menu_location_; | 757 gfx::Point host_context_menu_location_; |
758 | 758 |
759 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 759 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
760 }; | 760 }; |
761 | 761 |
762 } // namespace content | 762 } // namespace content |
763 | 763 |
764 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 764 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |