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