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 #include "chrome/browser/ui/cocoa/extensions/extension_view_mac.h" | 5 #include "chrome/browser/ui/cocoa/extensions/extension_view_mac.h" |
6 | 6 |
7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
8 | 8 |
9 #include "base/mac/foundation_util.h" | 9 #include "base/mac/foundation_util.h" |
10 #include "chrome/browser/extensions/extension_view_host.h" | 10 #include "chrome/browser/extensions/extension_view_host.h" |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 container_->OnExtensionViewDidShow(this); | 102 container_->OnExtensionViewDidShow(this); |
103 } | 103 } |
104 } | 104 } |
105 | 105 |
106 namespace extensions { | 106 namespace extensions { |
107 | 107 |
108 // static | 108 // static |
109 scoped_ptr<ExtensionView> ExtensionViewHost::CreateExtensionView( | 109 scoped_ptr<ExtensionView> ExtensionViewHost::CreateExtensionView( |
110 ExtensionViewHost* host, | 110 ExtensionViewHost* host, |
111 Browser* browser) { | 111 Browser* browser) { |
112 scoped_ptr<ExtensionViewMac> view(new ExtensionViewMac(host, browser)); | 112 return make_scoped_ptr(new ExtensionViewMac(host, browser)); |
113 return view.PassAs<ExtensionView>(); | |
114 } | 113 } |
115 | 114 |
116 } // namespace extensions | 115 } // namespace extensions |
OLD | NEW |