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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 namespace cc { | 63 namespace cc { |
64 class OutputSurface; | 64 class OutputSurface; |
65 class SwapPromise; | 65 class SwapPromise; |
66 } | 66 } |
67 | 67 |
68 namespace gfx { | 68 namespace gfx { |
69 class Range; | 69 class Range; |
70 } | 70 } |
71 | 71 |
72 namespace content { | 72 namespace content { |
| 73 class CompositorDependencies; |
73 class ExternalPopupMenu; | 74 class ExternalPopupMenu; |
74 class FrameSwapMessageQueue; | 75 class FrameSwapMessageQueue; |
75 class PepperPluginInstanceImpl; | 76 class PepperPluginInstanceImpl; |
76 class RenderFrameImpl; | 77 class RenderFrameImpl; |
77 class RenderFrameProxy; | 78 class RenderFrameProxy; |
78 class RenderWidgetCompositor; | 79 class RenderWidgetCompositor; |
79 class RenderWidgetTest; | 80 class RenderWidgetTest; |
80 class ResizingModeSelector; | 81 class ResizingModeSelector; |
81 struct ContextMenuParams; | 82 struct ContextMenuParams; |
82 struct WebPluginGeometry; | 83 struct WebPluginGeometry; |
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent. | 554 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent. |
554 int32 routing_id_; | 555 int32 routing_id_; |
555 | 556 |
556 int32 surface_id_; | 557 int32 surface_id_; |
557 | 558 |
558 // We are responsible for destroying this object via its Close method. | 559 // We are responsible for destroying this object via its Close method. |
559 // May be NULL when the window is closing. | 560 // May be NULL when the window is closing. |
560 blink::WebWidget* webwidget_; | 561 blink::WebWidget* webwidget_; |
561 | 562 |
562 // This is lazily constructed and must not outlive webwidget_. | 563 // This is lazily constructed and must not outlive webwidget_. |
| 564 scoped_ptr<CompositorDependencies> compositor_deps_; |
563 scoped_ptr<RenderWidgetCompositor> compositor_; | 565 scoped_ptr<RenderWidgetCompositor> compositor_; |
564 | 566 |
565 // Set to the ID of the view that initiated creating this view, if any. When | 567 // Set to the ID of the view that initiated creating this view, if any. When |
566 // the view was initiated by the browser (the common case), this will be | 568 // the view was initiated by the browser (the common case), this will be |
567 // MSG_ROUTING_NONE. This is used in determining ownership when opening | 569 // MSG_ROUTING_NONE. This is used in determining ownership when opening |
568 // child tabs. See RenderWidget::createWebViewWithRequest. | 570 // child tabs. See RenderWidget::createWebViewWithRequest. |
569 // | 571 // |
570 // This ID may refer to an invalid view if that view is closed before this | 572 // This ID may refer to an invalid view if that view is closed before this |
571 // view is. | 573 // view is. |
572 int32 opener_id_; | 574 int32 opener_id_; |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
764 ui::MenuSourceType context_menu_source_type_; | 766 ui::MenuSourceType context_menu_source_type_; |
765 bool has_host_context_menu_location_; | 767 bool has_host_context_menu_location_; |
766 gfx::Point host_context_menu_location_; | 768 gfx::Point host_context_menu_location_; |
767 | 769 |
768 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 770 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
769 }; | 771 }; |
770 | 772 |
771 } // namespace content | 773 } // namespace content |
772 | 774 |
773 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 775 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |