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

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

Issue 7465090: [Mac] Replace the custom bookmark menus with native NSMenus. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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) 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 <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 #include <vector> 6 #include <vector>
7 #import "chrome/browser/ui/cocoa/draggable_button.h" 7 #import "chrome/browser/ui/cocoa/draggable_button.h"
8 #include "webkit/glue/window_open_disposition.h" 8 #include "webkit/glue/window_open_disposition.h"
9 9
10 @class BookmarkBarFolderController; 10 @class BookmarkBarFolderController;
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 // Used to tell the controller that room should be made for a drop. 127 // Used to tell the controller that room should be made for a drop.
128 - (void)setDropInsertionPos:(CGFloat)where; 128 - (void)setDropInsertionPos:(CGFloat)where;
129 129
130 // Used to tell the controller to stop making room for a drop. 130 // Used to tell the controller to stop making room for a drop.
131 - (void)clearDropInsertionPos; 131 - (void)clearDropInsertionPos;
132 132
133 // Return the theme provider associated with this browser window. 133 // Return the theme provider associated with this browser window.
134 - (ui::ThemeProvider*)themeProvider; 134 - (ui::ThemeProvider*)themeProvider;
135 135
136 // Called just before a child folder puts itself on screen.
137 - (void)childFolderWillShow:(id<BookmarkButtonControllerProtocol>)child;
138
139 // Called just before a child folder closes.
140 - (void)childFolderWillClose:(id<BookmarkButtonControllerProtocol>)child;
141
142 // Return a controller's folder controller for a subfolder, or nil. 136 // Return a controller's folder controller for a subfolder, or nil.
143 - (BookmarkBarFolderController*)folderController; 137 - (BookmarkBarFolderController*)folderController;
144 138
145 // Add a new folder controller as triggered by the given folder button. 139 // Add a new folder controller as triggered by the given folder button.
146 // If there is a current folder controller, close it. 140 // If there is a current folder controller, close it.
147 - (void)addNewFolderControllerWithParentButton:(BookmarkButton*)parentButton; 141 - (void)addNewFolderControllerWithParentButton:(BookmarkButton*)parentButton;
148 142
149 // Open all of the nodes for the given node with disposition. 143 // Open all of the nodes for the given node with disposition.
150 - (void)openAll:(const BookmarkNode*)node 144 - (void)openAll:(const BookmarkNode*)node
151 disposition:(WindowOpenDisposition)disposition; 145 disposition:(WindowOpenDisposition)disposition;
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 253
260 // Key for userInfo dict of a kPulseBookmarkButtonNotification. 254 // Key for userInfo dict of a kPulseBookmarkButtonNotification.
261 // Value is a [NSValue valueWithPointer:]; pointer is a (const BookmarkNode*). 255 // Value is a [NSValue valueWithPointer:]; pointer is a (const BookmarkNode*).
262 extern NSString* const kBookmarkKey; 256 extern NSString* const kBookmarkKey;
263 257
264 // Key for userInfo dict of a kPulseBookmarkButtonNotification. 258 // Key for userInfo dict of a kPulseBookmarkButtonNotification.
265 // Value is a [NSNumber numberWithBool:] to turn pulsing on or off. 259 // Value is a [NSNumber numberWithBool:] to turn pulsing on or off.
266 extern NSString* const kBookmarkPulseFlagKey; 260 extern NSString* const kBookmarkPulseFlagKey;
267 261
268 }; 262 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698