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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 #include "ui/gfx/range/range.h" | 50 #include "ui/gfx/range/range.h" |
51 #include "ui/surface/transport_dib.h" | 51 #include "ui/surface/transport_dib.h" |
52 | 52 |
53 namespace IPC { | 53 namespace IPC { |
54 class SyncMessage; | 54 class SyncMessage; |
55 class SyncMessageFilter; | 55 class SyncMessageFilter; |
56 } | 56 } |
57 | 57 |
58 namespace blink { | 58 namespace blink { |
59 struct WebDeviceEmulationParams; | 59 struct WebDeviceEmulationParams; |
| 60 class WebFrameWidget; |
60 class WebGestureEvent; | 61 class WebGestureEvent; |
61 class WebLocalFrame; | 62 class WebLocalFrame; |
62 class WebMouseEvent; | 63 class WebMouseEvent; |
63 class WebNode; | 64 class WebNode; |
64 struct WebPoint; | 65 struct WebPoint; |
65 } | 66 } |
66 | 67 |
67 namespace cc { | 68 namespace cc { |
68 class OutputSurface; | 69 class OutputSurface; |
69 class SwapPromise; | 70 class SwapPromise; |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 | 358 |
358 RenderWidget(CompositorDependencies* compositor_deps, | 359 RenderWidget(CompositorDependencies* compositor_deps, |
359 blink::WebPopupType popup_type, | 360 blink::WebPopupType popup_type, |
360 const blink::WebScreenInfo& screen_info, | 361 const blink::WebScreenInfo& screen_info, |
361 bool swapped_out, | 362 bool swapped_out, |
362 bool hidden, | 363 bool hidden, |
363 bool never_visible); | 364 bool never_visible); |
364 | 365 |
365 ~RenderWidget() override; | 366 ~RenderWidget() override; |
366 | 367 |
367 static blink::WebWidget* CreateWebFrameWidget(RenderWidget* render_widget, | 368 static blink::WebFrameWidget* CreateWebFrameWidget( |
368 blink::WebLocalFrame* frame); | 369 RenderWidget* render_widget, |
| 370 blink::WebLocalFrame* frame); |
369 | 371 |
370 // Creates a WebWidget based on the popup type. | 372 // Creates a WebWidget based on the popup type. |
371 static blink::WebWidget* CreateWebWidget(RenderWidget* render_widget); | 373 static blink::WebWidget* CreateWebWidget(RenderWidget* render_widget); |
372 | 374 |
373 // Initializes this view with the given opener. | 375 // Initializes this view with the given opener. |
374 bool Init(int32_t opener_id); | 376 bool Init(int32_t opener_id); |
375 | 377 |
376 // Called by Init and subclasses to perform initialization. | 378 // Called by Init and subclasses to perform initialization. |
377 bool DoInit(int32_t opener_id, | 379 bool DoInit(int32_t opener_id, |
378 blink::WebWidget* web_widget, | 380 blink::WebWidget* web_widget, |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
758 | 760 |
759 scoped_ptr<scheduler::RenderWidgetSchedulingState> | 761 scoped_ptr<scheduler::RenderWidgetSchedulingState> |
760 render_widget_scheduling_state_; | 762 render_widget_scheduling_state_; |
761 | 763 |
762 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 764 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
763 }; | 765 }; |
764 | 766 |
765 } // namespace content | 767 } // namespace content |
766 | 768 |
767 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 769 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |