| OLD | NEW |
| 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_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ | 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ |
| 6 #define CONTENT_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ | 6 #define CONTENT_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #if defined(__OBJC__) | 9 #if defined(__OBJC__) |
| 10 | 10 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 // lifetime. This doesn't need to be the case, but is this way currently | 58 // lifetime. This doesn't need to be the case, but is this way currently |
| 59 // because that's what was easiest when they were split. | 59 // because that's what was easiest when they were split. |
| 60 // TODO(jam): make this take a WebContents once it's created from content. | 60 // TODO(jam): make this take a WebContents once it's created from content. |
| 61 WebContentsViewMac(content::WebContents* web_contents, | 61 WebContentsViewMac(content::WebContents* web_contents, |
| 62 content::WebContentsViewMacDelegate* delegate); | 62 content::WebContentsViewMacDelegate* delegate); |
| 63 virtual ~WebContentsViewMac(); | 63 virtual ~WebContentsViewMac(); |
| 64 | 64 |
| 65 // WebContentsView implementation -------------------------------------------- | 65 // WebContentsView implementation -------------------------------------------- |
| 66 | 66 |
| 67 virtual void CreateView(const gfx::Size& initial_size) OVERRIDE; | 67 virtual void CreateView(const gfx::Size& initial_size) OVERRIDE; |
| 68 virtual RenderWidgetHostView* CreateViewForWidget( | 68 virtual content::RenderWidgetHostView* CreateViewForWidget( |
| 69 RenderWidgetHost* render_widget_host) OVERRIDE; | 69 RenderWidgetHost* render_widget_host) OVERRIDE; |
| 70 virtual gfx::NativeView GetNativeView() const OVERRIDE; | 70 virtual gfx::NativeView GetNativeView() const OVERRIDE; |
| 71 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; | 71 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; |
| 72 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; | 72 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; |
| 73 virtual void GetContainerBounds(gfx::Rect* out) const OVERRIDE; | 73 virtual void GetContainerBounds(gfx::Rect* out) const OVERRIDE; |
| 74 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; | 74 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; |
| 75 virtual void SetPageTitle(const string16& title) OVERRIDE; | 75 virtual void SetPageTitle(const string16& title) OVERRIDE; |
| 76 virtual void OnTabCrashed(base::TerminationStatus status, | 76 virtual void OnTabCrashed(base::TerminationStatus status, |
| 77 int error_code) OVERRIDE; | 77 int error_code) OVERRIDE; |
| 78 virtual void SizeContents(const gfx::Size& size) OVERRIDE; | 78 virtual void SizeContents(const gfx::Size& size) OVERRIDE; |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 } | 159 } |
| 160 | 160 |
| 161 namespace web_contents_view_mac { | 161 namespace web_contents_view_mac { |
| 162 // Creates a WebContentsViewMac. Takes ownership of |delegate|. | 162 // Creates a WebContentsViewMac. Takes ownership of |delegate|. |
| 163 CONTENT_EXPORT content::WebContentsView* CreateWebContentsView( | 163 CONTENT_EXPORT content::WebContentsView* CreateWebContentsView( |
| 164 content::WebContents* web_contents, | 164 content::WebContents* web_contents, |
| 165 content::WebContentsViewMacDelegate* delegate); | 165 content::WebContentsViewMacDelegate* delegate); |
| 166 } | 166 } |
| 167 | 167 |
| 168 #endif // CONTENT_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ | 168 #endif // CONTENT_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ |
| OLD | NEW |