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 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
6 | 6 |
7 #include "base/i18n/rtl.h" | 7 #include "base/i18n/rtl.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 #include "chrome/browser/api/infobars/confirm_infobar_delegate.h" |
| 10 #include "chrome/browser/api/infobars/simple_alert_infobar_delegate.h" |
9 #include "chrome/browser/extensions/bundle_installer.h" | 11 #include "chrome/browser/extensions/bundle_installer.h" |
10 #include "chrome/browser/infobars/infobar_tab_helper.h" | 12 #include "chrome/browser/infobars/infobar_tab_helper.h" |
11 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" | |
12 #include "chrome/browser/tab_contents/simple_alert_infobar_delegate.h" | |
13 #include "chrome/browser/ui/browser.h" | 13 #include "chrome/browser/ui/browser.h" |
14 #include "chrome/browser/ui/browser_dialogs.h" | 14 #include "chrome/browser/ui/browser_dialogs.h" |
15 #include "chrome/browser/ui/browser_tabstrip.h" | 15 #include "chrome/browser/ui/browser_tabstrip.h" |
16 #include "chrome/browser/ui/browser_window.h" | 16 #include "chrome/browser/ui/browser_window.h" |
17 #import "chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controlle
r.h" | 17 #import "chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controlle
r.h" |
18 #include "chrome/browser/ui/tab_contents/tab_contents.h" | 18 #include "chrome/browser/ui/tab_contents/tab_contents.h" |
19 #include "chrome/common/extensions/extension.h" | 19 #include "chrome/common/extensions/extension.h" |
20 #include "chrome/common/extensions/extension_action.h" | 20 #include "chrome/common/extensions/extension_action.h" |
21 #include "grit/chromium_strings.h" | 21 #include "grit/chromium_strings.h" |
22 #include "grit/generated_resources.h" | 22 #include "grit/generated_resources.h" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 const BundleInstaller* bundle, Browser* browser) { | 78 const BundleInstaller* bundle, Browser* browser) { |
79 // The controller is deallocated when the window is closed, so no need to | 79 // The controller is deallocated when the window is closed, so no need to |
80 // worry about it here. | 80 // worry about it here. |
81 [[ExtensionInstalledBubbleController alloc] | 81 [[ExtensionInstalledBubbleController alloc] |
82 initWithParentWindow:browser->window()->GetNativeWindow() | 82 initWithParentWindow:browser->window()->GetNativeWindow() |
83 extension:NULL | 83 extension:NULL |
84 bundle:bundle | 84 bundle:bundle |
85 browser:browser | 85 browser:browser |
86 icon:SkBitmap()]; | 86 icon:SkBitmap()]; |
87 } | 87 } |
OLD | NEW |