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

Side by Side Diff: chrome/browser/tab_contents/web_contents_view_gtk.h

Issue 49041: WebContentsView became more than just an interface with 48103 (r12483). If we... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_
7 7
8 #include "base/scoped_ptr.h" 8 #include "base/scoped_ptr.h"
9 #include "chrome/browser/tab_contents/web_contents_view.h" 9 #include "chrome/browser/tab_contents/web_contents_view.h"
10 #include "chrome/common/owned_widget_gtk.h" 10 #include "chrome/common/owned_widget_gtk.h"
11 11
12 class RenderViewContextMenuGtk; 12 class RenderViewContextMenuGtk;
13 13
14 class WebContentsViewGtk : public WebContentsView { 14 class WebContentsViewGtk : public WebContentsView {
15 public: 15 public:
16 // The corresponding WebContents is passed in the constructor, and manages our 16 // The corresponding WebContents is passed in the constructor, and manages our
17 // lifetime. This doesn't need to be the case, but is this way currently 17 // lifetime. This doesn't need to be the case, but is this way currently
18 // because that's what was easiest when they were split. 18 // because that's what was easiest when they were split.
19 explicit WebContentsViewGtk(WebContents* web_contents); 19 explicit WebContentsViewGtk(WebContents* web_contents);
20 virtual ~WebContentsViewGtk(); 20 virtual ~WebContentsViewGtk();
21 21
22 // WebContentsView implementation -------------------------------------------- 22 // WebContentsView implementation --------------------------------------------
23 23
24 virtual WebContents* GetWebContents();
25 virtual void CreateView(); 24 virtual void CreateView();
26 virtual RenderWidgetHostView* CreateViewForWidget( 25 virtual RenderWidgetHostView* CreateViewForWidget(
27 RenderWidgetHost* render_widget_host); 26 RenderWidgetHost* render_widget_host);
28 27
29 virtual gfx::NativeView GetNativeView() const; 28 virtual gfx::NativeView GetNativeView() const;
30 virtual gfx::NativeView GetContentNativeView() const; 29 virtual gfx::NativeView GetContentNativeView() const;
31 virtual gfx::NativeWindow GetTopLevelNativeWindow() const; 30 virtual gfx::NativeWindow GetTopLevelNativeWindow() const;
32 virtual void GetContainerBounds(gfx::Rect* out) const; 31 virtual void GetContainerBounds(gfx::Rect* out) const;
33 virtual void OnContentsDestroy(); 32 virtual void OnContentsDestroy();
34 virtual void SetPageTitle(const std::wstring& title); 33 virtual void SetPageTitle(const std::wstring& title);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 GtkWidget* content_view_; 68 GtkWidget* content_view_;
70 69
71 // The context menu is reset every time we show it, but we keep a pointer to 70 // The context menu is reset every time we show it, but we keep a pointer to
72 // between uses so that it won't go out of scope before we're done with it. 71 // between uses so that it won't go out of scope before we're done with it.
73 scoped_ptr<RenderViewContextMenuGtk> context_menu_; 72 scoped_ptr<RenderViewContextMenuGtk> context_menu_;
74 73
75 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGtk); 74 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGtk);
76 }; 75 };
77 76
78 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_ 77 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/web_contents_view.h ('k') | chrome/browser/tab_contents/web_contents_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698