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_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // because that's what was easiest when they were split. | 60 // because that's what was easiest when they were split. |
61 WebContentsViewMac(WebContentsImpl* web_contents, | 61 WebContentsViewMac(WebContentsImpl* web_contents, |
62 WebContentsViewDelegate* delegate); | 62 WebContentsViewDelegate* 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 RenderWidgetHostView* CreateViewForWidget( |
69 RenderWidgetHost* render_widget_host) OVERRIDE; | 69 RenderWidgetHost* render_widget_host) OVERRIDE; |
| 70 virtual void SetView(RenderWidgetHostView* view) OVERRIDE; |
70 virtual gfx::NativeView GetNativeView() const OVERRIDE; | 71 virtual gfx::NativeView GetNativeView() const OVERRIDE; |
71 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; | 72 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; |
72 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; | 73 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; |
73 virtual void GetContainerBounds(gfx::Rect* out) const OVERRIDE; | 74 virtual void GetContainerBounds(gfx::Rect* out) const OVERRIDE; |
74 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; | 75 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; |
75 virtual void SetPageTitle(const string16& title) OVERRIDE; | 76 virtual void SetPageTitle(const string16& title) OVERRIDE; |
76 virtual void OnTabCrashed(base::TerminationStatus status, | 77 virtual void OnTabCrashed(base::TerminationStatus status, |
77 int error_code) OVERRIDE; | 78 int error_code) OVERRIDE; |
78 virtual void SizeContents(const gfx::Size& size) OVERRIDE; | 79 virtual void SizeContents(const gfx::Size& size) OVERRIDE; |
79 virtual void Focus() OVERRIDE; | 80 virtual void Focus() OVERRIDE; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 125 |
125 // Our optional delegate. | 126 // Our optional delegate. |
126 scoped_ptr<WebContentsViewDelegate> delegate_; | 127 scoped_ptr<WebContentsViewDelegate> delegate_; |
127 | 128 |
128 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac); | 129 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac); |
129 }; | 130 }; |
130 | 131 |
131 } // namespace content | 132 } // namespace content |
132 | 133 |
133 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ | 134 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ |
OLD | NEW |