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

Side by Side Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller.mm

Issue 6657003: Update a bunch of files to the new location of notification files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 9 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
OLDNEW
1 // Copyright (c) 2010 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/bookmarks/bookmark_bubble_controller.h" 5 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller.h"
6 6
7 #include "base/mac/mac_util.h" 7 #include "base/mac/mac_util.h"
8 #include "base/sys_string_conversions.h" 8 #include "base/sys_string_conversions.h"
9 #include "base/utf_string_conversions.h" // TODO(viettrungluu): remove 9 #include "base/utf_string_conversions.h" // TODO(viettrungluu): remove
10 #include "chrome/browser/bookmarks/bookmark_model.h" 10 #include "chrome/browser/bookmarks/bookmark_model.h"
11 #include "chrome/browser/metrics/user_metrics.h" 11 #include "chrome/browser/metrics/user_metrics.h"
12 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button.h" 12 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button.h"
13 #import "chrome/browser/ui/cocoa/browser_window_controller.h" 13 #import "chrome/browser/ui/cocoa/browser_window_controller.h"
14 #import "chrome/browser/ui/cocoa/info_bubble_view.h" 14 #import "chrome/browser/ui/cocoa/info_bubble_view.h"
15 #include "chrome/common/notification_observer.h" 15 #include "content/common/notification_observer.h"
16 #include "chrome/common/notification_registrar.h" 16 #include "content/common/notification_registrar.h"
17 #include "chrome/common/notification_service.h" 17 #include "content/common/notification_service.h"
18 #include "grit/generated_resources.h" 18 #include "grit/generated_resources.h"
19 #include "ui/base/l10n/l10n_util_mac.h" 19 #include "ui/base/l10n/l10n_util_mac.h"
20 20
21 21
22 // Simple class to watch for tab creation/destruction and close the bubble. 22 // Simple class to watch for tab creation/destruction and close the bubble.
23 // Bridge between Chrome-style notifications and ObjC-style notifications. 23 // Bridge between Chrome-style notifications and ObjC-style notifications.
24 class BookmarkBubbleNotificationBridge : public NotificationObserver { 24 class BookmarkBubbleNotificationBridge : public NotificationObserver {
25 public: 25 public:
26 BookmarkBubbleNotificationBridge(BookmarkBubbleController* controller, 26 BookmarkBubbleNotificationBridge(BookmarkBubbleController* controller,
27 SEL selector); 27 SEL selector);
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 NSInteger idx = [menu indexOfItemWithRepresentedObject:parentValue]; 419 NSInteger idx = [menu indexOfItemWithRepresentedObject:parentValue];
420 DCHECK(idx != -1); 420 DCHECK(idx != -1);
421 [folderPopUpButton_ selectItemAtIndex:idx]; 421 [folderPopUpButton_ selectItemAtIndex:idx];
422 } 422 }
423 423
424 - (NSPopUpButton*)folderPopUpButton { 424 - (NSPopUpButton*)folderPopUpButton {
425 return folderPopUpButton_; 425 return folderPopUpButton_;
426 } 426 }
427 427
428 @end // implementation BookmarkBubbleController(ExposedForUnitTesting) 428 @end // implementation BookmarkBubbleController(ExposedForUnitTesting)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698