Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(511)

Side by Side Diff: chrome/browser/ui/cocoa/extensions/extension_infobar_controller.mm

Issue 6693054: Get rid of extensions dependency from content\browser. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/browser_navigator.cc ('k') | chrome/browser/ui/cocoa/tabpose_window.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
11 #include "chrome/browser/extensions/image_loading_tracker.h"
11 #import "chrome/browser/ui/cocoa/animatable_view.h" 12 #import "chrome/browser/ui/cocoa/animatable_view.h"
12 #import "chrome/browser/ui/cocoa/extensions/extension_action_context_menu.h" 13 #import "chrome/browser/ui/cocoa/extensions/extension_action_context_menu.h"
13 #import "chrome/browser/ui/cocoa/menu_button.h" 14 #import "chrome/browser/ui/cocoa/menu_button.h"
14 #include "chrome/browser/ui/cocoa/infobars/infobar.h" 15 #include "chrome/browser/ui/cocoa/infobars/infobar.h"
15 #include "chrome/common/extensions/extension.h" 16 #include "chrome/common/extensions/extension.h"
16 #include "chrome/common/extensions/extension_icon_set.h" 17 #include "chrome/common/extensions/extension_icon_set.h"
17 #include "chrome/common/extensions/extension_resource.h" 18 #include "chrome/common/extensions/extension_resource.h"
18 #include "content/browser/tab_contents/tab_contents.h" 19 #include "content/browser/tab_contents/tab_contents.h"
19 #include "grit/theme_resources.h" 20 #include "grit/theme_resources.h"
20 #include "skia/ext/skia_utils_mac.h" 21 #include "skia/ext/skia_utils_mac.h"
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 259
259 @end 260 @end
260 261
261 InfoBar* ExtensionInfoBarDelegate::CreateInfoBar() { 262 InfoBar* ExtensionInfoBarDelegate::CreateInfoBar() {
262 NSWindow* window = [(NSView*)tab_contents_->GetContentNativeView() window]; 263 NSWindow* window = [(NSView*)tab_contents_->GetContentNativeView() window];
263 ExtensionInfoBarController* controller = 264 ExtensionInfoBarController* controller =
264 [[ExtensionInfoBarController alloc] initWithDelegate:this 265 [[ExtensionInfoBarController alloc] initWithDelegate:this
265 window:window]; 266 window:window];
266 return new InfoBar(controller); 267 return new InfoBar(controller);
267 } 268 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_navigator.cc ('k') | chrome/browser/ui/cocoa/tabpose_window.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698