| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |