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

Side by Side Diff: content/browser/web_contents/web_contents_view_gtk.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_GTK_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 WebContentsViewDelegate* delegate() const { return delegate_.get(); } 43 WebContentsViewDelegate* delegate() const { return delegate_.get(); }
44 WebContents* web_contents(); 44 WebContents* web_contents();
45 45
46 // WebContentsView implementation -------------------------------------------- 46 // WebContentsView implementation --------------------------------------------
47 47
48 virtual void CreateView( 48 virtual void CreateView(
49 const gfx::Size& initial_size, gfx::NativeView context) OVERRIDE; 49 const gfx::Size& initial_size, gfx::NativeView context) OVERRIDE;
50 virtual RenderWidgetHostView* CreateViewForWidget( 50 virtual RenderWidgetHostView* CreateViewForWidget(
51 RenderWidgetHost* render_widget_host) OVERRIDE; 51 RenderWidgetHost* render_widget_host) OVERRIDE;
52 virtual RenderWidgetHostView* CreateViewForPopupWidget(
53 RenderWidgetHost* render_widget_host) OVERRIDE;
52 virtual gfx::NativeView GetNativeView() const OVERRIDE; 54 virtual gfx::NativeView GetNativeView() const OVERRIDE;
53 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; 55 virtual gfx::NativeView GetContentNativeView() const OVERRIDE;
54 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; 56 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE;
55 virtual void GetContainerBounds(gfx::Rect* out) const OVERRIDE; 57 virtual void GetContainerBounds(gfx::Rect* out) const OVERRIDE;
56 virtual void SetPageTitle(const string16& title) OVERRIDE; 58 virtual void SetPageTitle(const string16& title) OVERRIDE;
57 virtual void OnTabCrashed(base::TerminationStatus status, 59 virtual void OnTabCrashed(base::TerminationStatus status,
58 int error_code) OVERRIDE; 60 int error_code) OVERRIDE;
59 virtual void SizeContents(const gfx::Size& size) OVERRIDE; 61 virtual void SizeContents(const gfx::Size& size) OVERRIDE;
60 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; 62 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE;
61 virtual void Focus() OVERRIDE; 63 virtual void Focus() OVERRIDE;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 // The size we want the view to be. We keep this in a separate variable 134 // The size we want the view to be. We keep this in a separate variable
133 // because resizing in GTK+ is async. 135 // because resizing in GTK+ is async.
134 gfx::Size requested_size_; 136 gfx::Size requested_size_;
135 137
136 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGtk); 138 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGtk);
137 }; 139 };
138 140
139 } // namespace content 141 } // namespace content
140 142
141 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_ 143 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_view_aura.cc ('k') | content/browser/web_contents/web_contents_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698