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_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 5 #ifndef CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
6 #define CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 6 #define CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/process_util.h" | 9 #include "base/process_util.h" |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 } | 36 } |
37 #endif | 37 #endif |
38 | 38 |
39 namespace skia { | 39 namespace skia { |
40 class PlatformBitmap; | 40 class PlatformBitmap; |
41 }; | 41 }; |
42 | 42 |
43 namespace content { | 43 namespace content { |
44 class BackingStore; | 44 class BackingStore; |
45 class SmoothScrollGesture; | 45 class SmoothScrollGesture; |
| 46 class WebContentsViewDelegate; |
46 struct NativeWebKeyboardEvent; | 47 struct NativeWebKeyboardEvent; |
47 | 48 |
48 // This is the larger RenderWidgetHostView interface exposed only | 49 // This is the larger RenderWidgetHostView interface exposed only |
49 // within content/ and to embedders looking to port to new platforms. | 50 // within content/ and to embedders looking to port to new platforms. |
50 // RenderWidgetHostView class hierarchy described in render_widget_host_view.h. | 51 // RenderWidgetHostView class hierarchy described in render_widget_host_view.h. |
51 class CONTENT_EXPORT RenderWidgetHostViewPort : public RenderWidgetHostView { | 52 class CONTENT_EXPORT RenderWidgetHostViewPort : public RenderWidgetHostView { |
52 public: | 53 public: |
53 virtual ~RenderWidgetHostViewPort() {} | 54 virtual ~RenderWidgetHostViewPort() {} |
54 | 55 |
55 // Does the cast for you. | 56 // Does the cast for you. |
56 static RenderWidgetHostViewPort* FromRWHV(RenderWidgetHostView* rwhv); | 57 static RenderWidgetHostViewPort* FromRWHV(RenderWidgetHostView* rwhv); |
57 | 58 |
58 // Like RenderWidgetHostView::CreateViewForWidget, with cast. | 59 // Like RenderWidgetHostView::CreateViewForWidget, with cast. |
59 static RenderWidgetHostViewPort* CreateViewForWidget( | 60 static RenderWidgetHostViewPort* CreateViewForWidget( |
60 RenderWidgetHost* widget); | 61 RenderWidgetHost* widget); |
61 | 62 |
62 // Perform all the initialization steps necessary for this object to represent | 63 // Perform all the initialization steps necessary for this object to represent |
63 // a popup (such as a <select> dropdown), then shows the popup at |pos|. | 64 // a popup (such as a <select> dropdown), then shows the popup at |pos|. |
64 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, | 65 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, |
65 const gfx::Rect& pos) = 0; | 66 const gfx::Rect& pos, |
| 67 WebContentsViewDelegate* delegate = NULL) = 0; |
66 | 68 |
67 // Perform all the initialization steps necessary for this object to represent | 69 // Perform all the initialization steps necessary for this object to represent |
68 // a full screen window. | 70 // a full screen window. |
69 // |reference_host_view| is the view associated with the creating page that | 71 // |reference_host_view| is the view associated with the creating page that |
70 // helps to position the full screen widget on the correct monitor. | 72 // helps to position the full screen widget on the correct monitor. |
71 virtual void InitAsFullscreen( | 73 virtual void InitAsFullscreen( |
72 RenderWidgetHostView* reference_host_view) = 0; | 74 RenderWidgetHostView* reference_host_view) = 0; |
73 | 75 |
74 // Notifies the View that it has become visible. | 76 // Notifies the View that it has become visible. |
75 virtual void WasShown() = 0; | 77 virtual void WasShown() = 0; |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 virtual BrowserAccessibilityManager* | 296 virtual BrowserAccessibilityManager* |
295 GetBrowserAccessibilityManager() const = 0; | 297 GetBrowserAccessibilityManager() const = 0; |
296 virtual void OnAccessibilityNotifications( | 298 virtual void OnAccessibilityNotifications( |
297 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { | 299 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { |
298 } | 300 } |
299 }; | 301 }; |
300 | 302 |
301 } // namespace content | 303 } // namespace content |
302 | 304 |
303 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 305 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
OLD | NEW |