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

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

Issue 2542173002: [Mac] Omnibox icons active states (Closed)
Patch Set: Created 4 years 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 <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/mac/scoped_nsobject.h" 9 #include "base/mac/scoped_nsobject.h"
10 #import "chrome/browser/ui/cocoa/base_bubble_controller.h"
11 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_model_observer_for_cocoa.h" 10 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_model_observer_for_cocoa.h"
12 #import "chrome/browser/ui/cocoa/has_weak_browser_pointer.h" 11 #import "chrome/browser/ui/cocoa/has_weak_browser_pointer.h"
12 #import "chrome/browser/ui/cocoa/omnibox_decoration_bubble_controller.h"
13 13
14 @class BookmarkBubbleController; 14 @class BookmarkBubbleController;
15 @class BubbleSyncPromoController; 15 @class BubbleSyncPromoController;
16 16
17 namespace bookmarks { 17 namespace bookmarks {
18 class BookmarkBubbleObserver; 18 class BookmarkBubbleObserver;
19 class BookmarkModel; 19 class BookmarkModel;
20 class BookmarkNode; 20 class BookmarkNode;
21 class ManagedBookmarkService; 21 class ManagedBookmarkService;
22 } 22 }
23 23
24 // Controller for the bookmark bubble. The bookmark bubble is a 24 // Controller for the bookmark bubble. The bookmark bubble is a
25 // bubble that pops up when clicking on the STAR next to the URL to 25 // bubble that pops up when clicking on the STAR next to the URL to
26 // add or remove it as a bookmark. This bubble allows for editing of 26 // add or remove it as a bookmark. This bubble allows for editing of
27 // the bookmark in various ways (name, folder, etc.) 27 // the bookmark in various ways (name, folder, etc.)
28 @interface BookmarkBubbleController 28 @interface BookmarkBubbleController
29 : BaseBubbleController<HasWeakBrowserPointer> { 29 : OmniboxDecorationBubbleController<HasWeakBrowserPointer> {
30 @private 30 @private
31 // |managed_|, |model_| and |node_| are weak and owned by the current 31 // |managed_|, |model_| and |node_| are weak and owned by the current
32 // browser's profile. 32 // browser's profile.
33 bookmarks::ManagedBookmarkService* managedBookmarkService_; // weak 33 bookmarks::ManagedBookmarkService* managedBookmarkService_; // weak
34 bookmarks::BookmarkModel* model_; // weak 34 bookmarks::BookmarkModel* model_; // weak
35 const bookmarks::BookmarkNode* node_; // weak 35 const bookmarks::BookmarkNode* node_; // weak
36 36
37 // Inform the observer when the bubble is shown or closed. 37 // Inform the observer when the bubble is shown or closed.
38 bookmarks::BookmarkBubbleObserver* bookmarkBubbleObserver_; // weak 38 bookmarks::BookmarkBubbleObserver* bookmarkBubbleObserver_; // weak
39 39
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 - (void)addFolderNodes:(const bookmarks::BookmarkNode*)parent 88 - (void)addFolderNodes:(const bookmarks::BookmarkNode*)parent
89 toPopUpButton:(NSPopUpButton*)button 89 toPopUpButton:(NSPopUpButton*)button
90 indentation:(int)indentation; 90 indentation:(int)indentation;
91 - (void)setTitle:(NSString*)title 91 - (void)setTitle:(NSString*)title
92 parentFolder:(const bookmarks::BookmarkNode*)parent; 92 parentFolder:(const bookmarks::BookmarkNode*)parent;
93 - (void)setParentFolderSelection:(const bookmarks::BookmarkNode*)parent; 93 - (void)setParentFolderSelection:(const bookmarks::BookmarkNode*)parent;
94 + (NSString*)chooseAnotherFolderString; 94 + (NSString*)chooseAnotherFolderString;
95 - (NSPopUpButton*)folderPopUpButton; 95 - (NSPopUpButton*)folderPopUpButton;
96 @end 96 @end
OLDNEW
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698