| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 content::RenderWidgetHostView* CreateViewForWidget( | 68 virtual content::RenderWidgetHostView* CreateViewForWidget( |
| 69 RenderWidgetHost* render_widget_host) OVERRIDE; | 69 content::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(content::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; |
| 79 virtual void Focus() OVERRIDE; | 79 virtual void Focus() OVERRIDE; |
| 80 virtual void SetInitialFocus() OVERRIDE; | 80 virtual void SetInitialFocus() OVERRIDE; |
| 81 virtual void StoreFocus() OVERRIDE; | 81 virtual void StoreFocus() OVERRIDE; |
| 82 virtual void RestoreFocus() OVERRIDE; | 82 virtual void RestoreFocus() OVERRIDE; |
| 83 virtual bool IsDoingDrag() const OVERRIDE; | 83 virtual bool IsDoingDrag() const OVERRIDE; |
| 84 virtual void CancelDragAndCloseTab() OVERRIDE; | 84 virtual void CancelDragAndCloseTab() OVERRIDE; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 } | 153 } |
| 154 | 154 |
| 155 namespace web_contents_view_mac { | 155 namespace web_contents_view_mac { |
| 156 // Creates a WebContentsViewMac. Takes ownership of |delegate|. | 156 // Creates a WebContentsViewMac. Takes ownership of |delegate|. |
| 157 CONTENT_EXPORT content::WebContentsView* CreateWebContentsView( | 157 CONTENT_EXPORT content::WebContentsView* CreateWebContentsView( |
| 158 content::WebContents* web_contents, | 158 content::WebContents* web_contents, |
| 159 content::WebContentsViewMacDelegate* delegate); | 159 content::WebContentsViewMacDelegate* delegate); |
| 160 } | 160 } |
| 161 | 161 |
| 162 #endif // CONTENT_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ | 162 #endif // CONTENT_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ |
| OLD | NEW |