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

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

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 Created 8 years, 7 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
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698