Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: content/public/browser/web_contents_view.h

Issue 11773042: Allow embedders to provide a custom view for popup (select box) widgets, (Closed) Base URL: http://src.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_view_win.cc ('k') | content/test/test_web_contents_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698