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 "chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controlle
r.h" | 5 #import "chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controlle
r.h" |
6 | 6 |
7 #include "base/i18n/rtl.h" | 7 #include "base/i18n/rtl.h" |
8 #include "base/mac/bundle_locations.h" | 8 #include "base/mac/bundle_locations.h" |
9 #include "base/mac/mac_util.h" | 9 #include "base/mac/mac_util.h" |
10 #include "base/sys_string_conversions.h" | 10 #include "base/sys_string_conversions.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "content/public/browser/notification_registrar.h" | 26 #include "content/public/browser/notification_registrar.h" |
27 #include "content/public/browser/notification_source.h" | 27 #include "content/public/browser/notification_source.h" |
28 #include "grit/chromium_strings.h" | 28 #include "grit/chromium_strings.h" |
29 #include "grit/generated_resources.h" | 29 #include "grit/generated_resources.h" |
30 #import "skia/ext/skia_utils_mac.h" | 30 #import "skia/ext/skia_utils_mac.h" |
31 #import "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" | 31 #import "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" |
32 #include "ui/base/l10n/l10n_util.h" | 32 #include "ui/base/l10n/l10n_util.h" |
33 | 33 |
34 using content::BrowserThread; | 34 using content::BrowserThread; |
35 using extensions::BundleInstaller; | 35 using extensions::BundleInstaller; |
| 36 using extensions::Extension; |
36 | 37 |
37 // C++ class that receives EXTENSION_LOADED notifications and proxies them back | 38 // C++ class that receives EXTENSION_LOADED notifications and proxies them back |
38 // to |controller|. | 39 // to |controller|. |
39 class ExtensionLoadedNotificationObserver | 40 class ExtensionLoadedNotificationObserver |
40 : public content::NotificationObserver { | 41 : public content::NotificationObserver { |
41 public: | 42 public: |
42 ExtensionLoadedNotificationObserver( | 43 ExtensionLoadedNotificationObserver( |
43 ExtensionInstalledBubbleController* controller, Profile* profile) | 44 ExtensionInstalledBubbleController* controller, Profile* profile) |
44 : controller_(controller) { | 45 : controller_(controller) { |
45 registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_LOADED, | 46 registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_LOADED, |
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 | 450 |
450 - (NSRect)getExtensionInstalledInfoMsgFrame { | 451 - (NSRect)getExtensionInstalledInfoMsgFrame { |
451 return [extensionInstalledInfoMsg_ frame]; | 452 return [extensionInstalledInfoMsg_ frame]; |
452 } | 453 } |
453 | 454 |
454 - (void)extensionUnloaded:(id)sender { | 455 - (void)extensionUnloaded:(id)sender { |
455 extension_ = NULL; | 456 extension_ = NULL; |
456 } | 457 } |
457 | 458 |
458 @end | 459 @end |
OLD | NEW |