OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #import "chrome/browser/ui/cocoa/extensions/extension_infobar_controller.h" | 5 #import "chrome/browser/ui/cocoa/extensions/extension_infobar_controller.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 | 8 |
9 #include "chrome/browser/extensions/extension_host.h" | 9 #include "chrome/browser/extensions/extension_host.h" |
10 #include "chrome/browser/extensions/extension_infobar_delegate.h" | 10 #include "chrome/browser/extensions/extension_infobar_delegate.h" |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 [extensionView_ setFrameSize:extensionViewSize]; | 252 [extensionView_ setFrameSize:extensionViewSize]; |
253 [extensionView_ setPostsFrameChangedNotifications:YES]; | 253 [extensionView_ setPostsFrameChangedNotifications:YES]; |
254 } | 254 } |
255 | 255 |
256 - (void)setButtonImage:(NSImage*)image { | 256 - (void)setButtonImage:(NSImage*)image { |
257 [dropdownButton_ setImage:image]; | 257 [dropdownButton_ setImage:image]; |
258 } | 258 } |
259 | 259 |
260 @end | 260 @end |
261 | 261 |
262 InfoBar* ExtensionInfoBarDelegate::CreateInfoBar() { | 262 InfoBar* ExtensionInfoBarDelegate::CreateInfoBar(TabContentsWrapper* owner) { |
263 NSWindow* window = [(NSView*)tab_contents_->GetContentNativeView() window]; | 263 NSWindow* window = [(NSView*)tab_contents_->GetContentNativeView() window]; |
264 ExtensionInfoBarController* controller = | 264 ExtensionInfoBarController* controller = |
265 [[ExtensionInfoBarController alloc] initWithDelegate:this | 265 [[ExtensionInfoBarController alloc] initWithDelegate:this |
266 window:window]; | 266 window:window]; |
267 return new InfoBar(controller); | 267 return new InfoBar(controller); |
268 } | 268 } |
OLD | NEW |