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 14 matching lines...) Expand all Loading... |
25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextInputInfo.h" | 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextInputInfo.h" |
26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWidgetClient.h" | 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWidgetClient.h" |
27 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebRect.h" | 27 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebRect.h" |
28 #include "third_party/skia/include/core/SkBitmap.h" | 28 #include "third_party/skia/include/core/SkBitmap.h" |
29 #include "ui/base/ime/text_input_type.h" | 29 #include "ui/base/ime/text_input_type.h" |
30 #include "ui/base/range/range.h" | 30 #include "ui/base/range/range.h" |
31 #include "ui/gfx/native_widget_types.h" | 31 #include "ui/gfx/native_widget_types.h" |
32 #include "ui/gfx/rect.h" | 32 #include "ui/gfx/rect.h" |
33 #include "ui/gfx/vector2d.h" | 33 #include "ui/gfx/vector2d.h" |
34 #include "ui/surface/transport_dib.h" | 34 #include "ui/surface/transport_dib.h" |
35 #include "webkit/compositor_bindings/web_layer_tree_view_impl.h" | |
36 #include "webkit/glue/webcursor.h" | 35 #include "webkit/glue/webcursor.h" |
37 | 36 |
38 struct ViewHostMsg_UpdateRect_Params; | 37 struct ViewHostMsg_UpdateRect_Params; |
39 class ViewHostMsg_UpdateRect; | 38 class ViewHostMsg_UpdateRect; |
40 | 39 |
41 namespace IPC { | 40 namespace IPC { |
42 class SyncMessage; | 41 class SyncMessage; |
43 } | 42 } |
44 | 43 |
45 namespace WebKit { | 44 namespace WebKit { |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 virtual bool Send(IPC::Message* msg) OVERRIDE; | 114 virtual bool Send(IPC::Message* msg) OVERRIDE; |
116 | 115 |
117 // WebKit::WebWidgetClient | 116 // WebKit::WebWidgetClient |
118 virtual void willBeginCompositorFrame(); | 117 virtual void willBeginCompositorFrame(); |
119 virtual void didInvalidateRect(const WebKit::WebRect&); | 118 virtual void didInvalidateRect(const WebKit::WebRect&); |
120 virtual void didScrollRect(int dx, int dy, | 119 virtual void didScrollRect(int dx, int dy, |
121 const WebKit::WebRect& clipRect); | 120 const WebKit::WebRect& clipRect); |
122 virtual void didAutoResize(const WebKit::WebSize& new_size); | 121 virtual void didAutoResize(const WebKit::WebSize& new_size); |
123 virtual void didActivateCompositor(int input_handler_identifier); | 122 virtual void didActivateCompositor(int input_handler_identifier); |
124 virtual void didDeactivateCompositor(); | 123 virtual void didDeactivateCompositor(); |
125 virtual void initializeLayerTreeView( | |
126 WebKit::WebLayerTreeViewClient* client, | |
127 const WebKit::WebLayer& root_layer, | |
128 const WebKit::WebLayerTreeView::Settings& settings); | |
129 virtual WebKit::WebLayerTreeView* layerTreeView(); | |
130 virtual void didBecomeReadyForAdditionalInput(); | 124 virtual void didBecomeReadyForAdditionalInput(); |
131 virtual void didCommitAndDrawCompositorFrame(); | 125 virtual void didCommitAndDrawCompositorFrame(); |
132 virtual void didCompleteSwapBuffers(); | 126 virtual void didCompleteSwapBuffers(); |
133 virtual void scheduleComposite(); | 127 virtual void scheduleComposite(); |
134 virtual void scheduleAnimation(); | 128 virtual void scheduleAnimation(); |
135 virtual void didFocus(); | 129 virtual void didFocus(); |
136 virtual void didBlur(); | 130 virtual void didBlur(); |
137 virtual void didChangeCursor(const WebKit::WebCursorInfo&); | 131 virtual void didChangeCursor(const WebKit::WebCursorInfo&); |
138 virtual void closeWidgetSoon(); | 132 virtual void closeWidgetSoon(); |
139 virtual void show(WebKit::WebNavigationPolicy); | 133 virtual void show(WebKit::WebNavigationPolicy); |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 | 443 |
450 // Routing ID that allows us to communicate to the parent browser process | 444 // Routing ID that allows us to communicate to the parent browser process |
451 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent. | 445 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent. |
452 int32 routing_id_; | 446 int32 routing_id_; |
453 | 447 |
454 int32 surface_id_; | 448 int32 surface_id_; |
455 | 449 |
456 // We are responsible for destroying this object via its Close method. | 450 // We are responsible for destroying this object via its Close method. |
457 WebKit::WebWidget* webwidget_; | 451 WebKit::WebWidget* webwidget_; |
458 | 452 |
459 // This is lazily constructed and must not outlive webwidget_. | |
460 scoped_ptr<WebKit::WebLayerTreeViewImpl> web_layer_tree_view_; | |
461 | |
462 // Set to the ID of the view that initiated creating this view, if any. When | 453 // Set to the ID of the view that initiated creating this view, if any. When |
463 // the view was initiated by the browser (the common case), this will be | 454 // the view was initiated by the browser (the common case), this will be |
464 // MSG_ROUTING_NONE. This is used in determining ownership when opening | 455 // MSG_ROUTING_NONE. This is used in determining ownership when opening |
465 // child tabs. See RenderWidget::createWebViewWithRequest. | 456 // child tabs. See RenderWidget::createWebViewWithRequest. |
466 // | 457 // |
467 // This ID may refer to an invalid view if that view is closed before this | 458 // This ID may refer to an invalid view if that view is closed before this |
468 // view is. | 459 // view is. |
469 int32 opener_id_; | 460 int32 opener_id_; |
470 | 461 |
471 // The position where this view should be initially shown. | 462 // The position where this view should be initially shown. |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
637 | 628 |
638 // Specified whether the compositor will run in its own thread. | 629 // Specified whether the compositor will run in its own thread. |
639 bool is_threaded_compositing_enabled_; | 630 bool is_threaded_compositing_enabled_; |
640 | 631 |
641 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 632 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
642 }; | 633 }; |
643 | 634 |
644 } // namespace content | 635 } // namespace content |
645 | 636 |
646 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 637 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |