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

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

Issue 11308083: Fix the html select tag showing up at the wrong position. This was a regression from r166446. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix win_rel Created 8 years, 1 month 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 | Annotate | Revision Log
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 19 matching lines...) Expand all
30 virtual ~WebContentsView() {} 30 virtual ~WebContentsView() {}
31 31
32 virtual void CreateView(const gfx::Size& initial_size) = 0; 32 virtual void CreateView(const gfx::Size& initial_size) = 0;
33 33
34 // Sets up the View that holds the rendered web page, receives messages for 34 // Sets up the View that holds the rendered web page, receives messages for
35 // it and contains page plugins. The host view should be sized to the current 35 // it and contains page plugins. The host view should be sized to the current
36 // size of the WebContents. 36 // size of the WebContents.
37 virtual RenderWidgetHostView* CreateViewForWidget( 37 virtual RenderWidgetHostView* CreateViewForWidget(
38 RenderWidgetHost* render_widget_host) = 0; 38 RenderWidgetHost* render_widget_host) = 0;
39 39
40 // This is required because some WebContentsView cache the
41 // RenderWidgetHostView created by the above method. In that case, when the
42 // view created by the above method is destroyed, the old one needs to be set
43 // again.
44 virtual void SetView(RenderWidgetHostView* view) = 0;
45
40 // Returns the native widget that contains the contents of the tab. 46 // Returns the native widget that contains the contents of the tab.
41 virtual gfx::NativeView GetNativeView() const = 0; 47 virtual gfx::NativeView GetNativeView() const = 0;
42 48
43 // Returns the native widget with the main content of the tab (i.e. the main 49 // Returns the native widget with the main content of the tab (i.e. the main
44 // render view host, though there may be many popups in the tab as children of 50 // render view host, though there may be many popups in the tab as children of
45 // the container). 51 // the container).
46 virtual gfx::NativeView GetContentNativeView() const = 0; 52 virtual gfx::NativeView GetContentNativeView() const = 0;
47 53
48 // Returns the outermost native view. This will be used as the parent for 54 // Returns the outermost native view. This will be used as the parent for
49 // dialog boxes. 55 // dialog boxes.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 virtual bool IsEventTracking() const = 0; 115 virtual bool IsEventTracking() const = 0;
110 virtual void CloseTabAfterEventTracking() = 0; 116 virtual void CloseTabAfterEventTracking() = 0;
111 117
112 // Get the bounds of the View, relative to the parent. 118 // Get the bounds of the View, relative to the parent.
113 virtual gfx::Rect GetViewBounds() const = 0; 119 virtual gfx::Rect GetViewBounds() const = 0;
114 }; 120 };
115 121
116 } // namespace content 122 } // namespace content
117 123
118 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_H_ 124 #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