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

Side by Side Diff: content/browser/web_contents/web_contents_view_guest.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_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 22 matching lines...) Expand all
33 virtual ~WebContentsViewGuest(); 33 virtual ~WebContentsViewGuest();
34 34
35 WebContents* web_contents(); 35 WebContents* web_contents();
36 36
37 // WebContentsView implementation -------------------------------------------- 37 // WebContentsView implementation --------------------------------------------
38 38
39 virtual void CreateView(const gfx::Size& initial_size, 39 virtual void CreateView(const gfx::Size& initial_size,
40 gfx::NativeView context) OVERRIDE; 40 gfx::NativeView context) OVERRIDE;
41 virtual RenderWidgetHostView* CreateViewForWidget( 41 virtual RenderWidgetHostView* CreateViewForWidget(
42 RenderWidgetHost* render_widget_host) OVERRIDE; 42 RenderWidgetHost* render_widget_host) OVERRIDE;
43 virtual RenderWidgetHostView* CreateViewForPopupWidget(
44 RenderWidgetHost* render_widget_host) OVERRIDE;
43 virtual gfx::NativeView GetNativeView() const OVERRIDE; 45 virtual gfx::NativeView GetNativeView() const OVERRIDE;
44 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; 46 virtual gfx::NativeView GetContentNativeView() const OVERRIDE;
45 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; 47 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE;
46 virtual void GetContainerBounds(gfx::Rect* out) const OVERRIDE; 48 virtual void GetContainerBounds(gfx::Rect* out) const OVERRIDE;
47 virtual void SetPageTitle(const string16& title) OVERRIDE; 49 virtual void SetPageTitle(const string16& title) OVERRIDE;
48 virtual void OnTabCrashed(base::TerminationStatus status, 50 virtual void OnTabCrashed(base::TerminationStatus status,
49 int error_code) OVERRIDE; 51 int error_code) OVERRIDE;
50 virtual void SizeContents(const gfx::Size& size) OVERRIDE; 52 virtual void SizeContents(const gfx::Size& size) OVERRIDE;
51 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; 53 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE;
52 virtual void Focus() OVERRIDE; 54 virtual void Focus() OVERRIDE;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 WebContentsImpl* web_contents_; 89 WebContentsImpl* web_contents_;
88 gfx::Size requested_size_; 90 gfx::Size requested_size_;
89 BrowserPluginGuest* guest_; 91 BrowserPluginGuest* guest_;
90 92
91 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGuest); 93 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGuest);
92 }; 94 };
93 95
94 } // namespace content 96 } // namespace content
95 97
96 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_ 98 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_view_gtk.cc ('k') | content/browser/web_contents/web_contents_view_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698