| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/mac_util.h" | 8 #include "base/mac/mac_util.h" |
| 9 #include "base/sys_string_conversions.h" | 9 #include "base/sys_string_conversions.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "chrome/common/extensions/extension.h" | 21 #include "chrome/common/extensions/extension.h" |
| 22 #include "chrome/common/extensions/extension_action.h" | 22 #include "chrome/common/extensions/extension_action.h" |
| 23 #include "content/public/browser/notification_details.h" | 23 #include "content/public/browser/notification_details.h" |
| 24 #include "content/public/browser/notification_registrar.h" | 24 #include "content/public/browser/notification_registrar.h" |
| 25 #include "content/public/browser/notification_source.h" | 25 #include "content/public/browser/notification_source.h" |
| 26 #include "grit/generated_resources.h" | 26 #include "grit/generated_resources.h" |
| 27 #import "skia/ext/skia_utils_mac.h" | 27 #import "skia/ext/skia_utils_mac.h" |
| 28 #import "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" | 28 #import "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" |
| 29 #include "ui/base/l10n/l10n_util.h" | 29 #include "ui/base/l10n/l10n_util.h" |
| 30 | 30 |
| 31 using content::BrowserThread; |
| 31 | 32 |
| 32 // C++ class that receives EXTENSION_LOADED notifications and proxies them back | 33 // C++ class that receives EXTENSION_LOADED notifications and proxies them back |
| 33 // to |controller|. | 34 // to |controller|. |
| 34 class ExtensionLoadedNotificationObserver | 35 class ExtensionLoadedNotificationObserver |
| 35 : public content::NotificationObserver { | 36 : public content::NotificationObserver { |
| 36 public: | 37 public: |
| 37 ExtensionLoadedNotificationObserver( | 38 ExtensionLoadedNotificationObserver( |
| 38 ExtensionInstalledBubbleController* controller, Profile* profile) | 39 ExtensionInstalledBubbleController* controller, Profile* profile) |
| 39 : controller_(controller) { | 40 : controller_(controller) { |
| 40 registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_LOADED, | 41 registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_LOADED, |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 | 385 |
| 385 - (NSRect)getExtensionInstalledInfoMsgFrame { | 386 - (NSRect)getExtensionInstalledInfoMsgFrame { |
| 386 return [extensionInstalledInfoMsg_ frame]; | 387 return [extensionInstalledInfoMsg_ frame]; |
| 387 } | 388 } |
| 388 | 389 |
| 389 - (void)extensionUnloaded:(id)sender { | 390 - (void)extensionUnloaded:(id)sender { |
| 390 extension_ = NULL; | 391 extension_ = NULL; |
| 391 } | 392 } |
| 392 | 393 |
| 393 @end | 394 @end |
| OLD | NEW |