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_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_H_ |
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_H_ | 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 | 31 |
32 virtual void CreateView( | 32 virtual void CreateView( |
33 const gfx::Size& initial_size, gfx::NativeView context) = 0; | 33 const gfx::Size& initial_size, gfx::NativeView context) = 0; |
34 | 34 |
35 // Sets up the View that holds the rendered web page, receives messages for | 35 // Sets up the View that holds the rendered web page, receives messages for |
36 // it and contains page plugins. The host view should be sized to the current | 36 // it and contains page plugins. The host view should be sized to the current |
37 // size of the WebContents. | 37 // size of the WebContents. |
38 virtual RenderWidgetHostView* CreateViewForWidget( | 38 virtual RenderWidgetHostView* CreateViewForWidget( |
39 RenderWidgetHost* render_widget_host) = 0; | 39 RenderWidgetHost* render_widget_host) = 0; |
40 | 40 |
| 41 // Creates a new View that holds a popup and receives messages for it. |
| 42 virtual RenderWidgetHostView* CreateViewForPopupWidget( |
| 43 RenderWidgetHost* render_widget_host) = 0; |
| 44 |
41 // Returns the native widget that contains the contents of the tab. | 45 // Returns the native widget that contains the contents of the tab. |
42 virtual gfx::NativeView GetNativeView() const = 0; | 46 virtual gfx::NativeView GetNativeView() const = 0; |
43 | 47 |
44 // Returns the native widget with the main content of the tab (i.e. the main | 48 // Returns the native widget with the main content of the tab (i.e. the main |
45 // render view host, though there may be many popups in the tab as children of | 49 // render view host, though there may be many popups in the tab as children of |
46 // the container). | 50 // the container). |
47 virtual gfx::NativeView GetContentNativeView() const = 0; | 51 virtual gfx::NativeView GetContentNativeView() const = 0; |
48 | 52 |
49 // Returns the outermost native view. This will be used as the parent for | 53 // Returns the outermost native view. This will be used as the parent for |
50 // dialog boxes. | 54 // dialog boxes. |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 // overlapped by another view, notify the view by calling this with |true| | 124 // overlapped by another view, notify the view by calling this with |true| |
121 // before it draws for the first time. After the first draw, do not change | 125 // before it draws for the first time. After the first draw, do not change |
122 // this setting. | 126 // this setting. |
123 virtual void SetAllowOverlappingViews(bool overlapping) = 0; | 127 virtual void SetAllowOverlappingViews(bool overlapping) = 0; |
124 #endif | 128 #endif |
125 }; | 129 }; |
126 | 130 |
127 } // namespace content | 131 } // namespace content |
128 | 132 |
129 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_H_ | 133 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_H_ |
OLD | NEW |