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

Side by Side Diff: chrome/browser/tab_contents/web_contents_view_mac.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_MAC_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/gfx/size.h" 10 #include "base/gfx/size.h"
(...skipping 20 matching lines...) Expand all
31 public NotificationObserver { 31 public NotificationObserver {
32 public: 32 public:
33 // The corresponding WebContents is passed in the constructor, and manages our 33 // The corresponding WebContents is passed in the constructor, and manages our
34 // lifetime. This doesn't need to be the case, but is this way currently 34 // lifetime. This doesn't need to be the case, but is this way currently
35 // because that's what was easiest when they were split. 35 // because that's what was easiest when they were split.
36 explicit WebContentsViewMac(WebContents* web_contents); 36 explicit WebContentsViewMac(WebContents* web_contents);
37 virtual ~WebContentsViewMac(); 37 virtual ~WebContentsViewMac();
38 38
39 // WebContentsView implementation -------------------------------------------- 39 // WebContentsView implementation --------------------------------------------
40 40
41 virtual WebContents* GetWebContents();
42 virtual void CreateView(); 41 virtual void CreateView();
43 virtual RenderWidgetHostView* CreateViewForWidget( 42 virtual RenderWidgetHostView* CreateViewForWidget(
44 RenderWidgetHost* render_widget_host); 43 RenderWidgetHost* render_widget_host);
45 virtual gfx::NativeView GetNativeView() const; 44 virtual gfx::NativeView GetNativeView() const;
46 virtual gfx::NativeView GetContentNativeView() const; 45 virtual gfx::NativeView GetContentNativeView() const;
47 virtual gfx::NativeWindow GetTopLevelNativeWindow() const; 46 virtual gfx::NativeWindow GetTopLevelNativeWindow() const;
48 virtual void GetContainerBounds(gfx::Rect* out) const; 47 virtual void GetContainerBounds(gfx::Rect* out) const;
49 virtual void OnContentsDestroy(); 48 virtual void OnContentsDestroy();
50 virtual void SetPageTitle(const std::wstring& title); 49 virtual void SetPageTitle(const std::wstring& title);
51 virtual void Invalidate(); 50 virtual void Invalidate();
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 NotificationRegistrar registrar_; 96 NotificationRegistrar registrar_;
98 97
99 // Used to render the sad tab. This will be non-NULL only when the sad tab is 98 // Used to render the sad tab. This will be non-NULL only when the sad tab is
100 // visible. 99 // visible.
101 scoped_nsobject<SadTabView> sad_tab_; 100 scoped_nsobject<SadTabView> sad_tab_;
102 101
103 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac); 102 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac);
104 }; 103 };
105 104
106 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ 105 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/web_contents_view_gtk.cc ('k') | chrome/browser/tab_contents/web_contents_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698