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

Side by Side Diff: chrome/browser/cocoa/bookmark_bar_controller.h

Issue 391046: Fix "open all" on a folder node to open only 'marks in that folder,... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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
« no previous file with comments | « chrome/app/nibs/BookmarkBar.xib ('k') | chrome/browser/cocoa/bookmark_bar_controller.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #ifndef CHROME_BROWSER_COCOA_BOOKMARK_BAR_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_COCOA_BOOKMARK_BAR_CONTROLLER_H_
6 #define CHROME_BROWSER_COCOA_BOOKMARK_BAR_CONTROLLER_H_ 6 #define CHROME_BROWSER_COCOA_BOOKMARK_BAR_CONTROLLER_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 #include <map> 9 #include <map>
10 10
11 #include "base/scoped_nsobject.h" 11 #include "base/scoped_nsobject.h"
12 #include "base/scoped_ptr.h" 12 #include "base/scoped_ptr.h"
13 #include "chrome/browser/cocoa/bookmark_bar_bridge.h" 13 #include "chrome/browser/cocoa/bookmark_bar_bridge.h"
14 #import "chrome/browser/cocoa/bookmark_bar_toolbar_view.h" 14 #import "chrome/browser/cocoa/bookmark_bar_toolbar_view.h"
15 #include "chrome/browser/cocoa/tab_strip_model_observer_bridge.h" 15 #include "chrome/browser/cocoa/tab_strip_model_observer_bridge.h"
16 #include "webkit/glue/window_open_disposition.h" 16 #include "webkit/glue/window_open_disposition.h"
17 17
18 @class BookmarkBarController; 18 @class BookmarkBarController;
19 class BookmarkModel; 19 class BookmarkModel;
20 class BookmarkNode; 20 class BookmarkNode;
21 @class BookmarkBarView; 21 @class BookmarkBarView;
22 @class BookmarkMenu;
22 class Browser; 23 class Browser;
23 class GURL; 24 class GURL;
24 @class MenuButton; 25 @class MenuButton;
25 class Profile; 26 class Profile;
26 class PrefService; 27 class PrefService;
27 class TabContents; 28 class TabContents;
28 @class ToolbarController; 29 @class ToolbarController;
29 @protocol ViewResizer; 30 @protocol ViewResizer;
30 31
31 namespace bookmarks { 32 namespace bookmarks {
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 121
121 // Delegate that can resize us. 122 // Delegate that can resize us.
122 id<ViewResizer> resizeDelegate_; // weak 123 id<ViewResizer> resizeDelegate_; // weak
123 124
124 IBOutlet BookmarkBarView* buttonView_; 125 IBOutlet BookmarkBarView* buttonView_;
125 IBOutlet MenuButton* offTheSideButton_; // aka the chevron 126 IBOutlet MenuButton* offTheSideButton_; // aka the chevron
126 IBOutlet NSMenu* buttonContextMenu_; 127 IBOutlet NSMenu* buttonContextMenu_;
127 128
128 // "Other bookmarks" button on the right side. 129 // "Other bookmarks" button on the right side.
129 scoped_nsobject<NSButton> otherBookmarksButton_; 130 scoped_nsobject<NSButton> otherBookmarksButton_;
131
132 // We have a special menu for folder buttons. This starts as a copy
133 // of the bar menu.
134 scoped_nsobject<BookmarkMenu> buttonFolderContextMenu_;
130 } 135 }
131 136
132 @property(readonly, nonatomic) bookmarks::VisualState visualState; 137 @property(readonly, nonatomic) bookmarks::VisualState visualState;
133 @property(readonly, nonatomic) bookmarks::VisualState lastVisualState; 138 @property(readonly, nonatomic) bookmarks::VisualState lastVisualState;
134 @property(assign, nonatomic) id<BookmarkBarControllerDelegate> delegate; 139 @property(assign, nonatomic) id<BookmarkBarControllerDelegate> delegate;
135 140
136 // Initializes the bookmark bar controller with the given browser 141 // Initializes the bookmark bar controller with the given browser
137 // profile and delegates. 142 // profile and delegates.
138 - (id)initWithBrowser:(Browser*)browser 143 - (id)initWithBrowser:(Browser*)browser
139 initialWidth:(CGFloat)initialWidth 144 initialWidth:(CGFloat)initialWidth
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 - (void)checkForBookmarkButtonGrowth:(NSButton*)button; 236 - (void)checkForBookmarkButtonGrowth:(NSButton*)button;
232 - (void)frameDidChange; 237 - (void)frameDidChange;
233 - (BOOL)offTheSideButtonIsHidden; 238 - (BOOL)offTheSideButtonIsHidden;
234 - (NSMenu *)menuForFolderNode:(const BookmarkNode*)node; 239 - (NSMenu *)menuForFolderNode:(const BookmarkNode*)node;
235 - (int64)nodeIdFromMenuTag:(int32)tag; 240 - (int64)nodeIdFromMenuTag:(int32)tag;
236 - (int32)menuTagFromNodeId:(int64)menuid; 241 - (int32)menuTagFromNodeId:(int64)menuid;
237 - (void)buildOffTheSideMenu; 242 - (void)buildOffTheSideMenu;
238 - (NSMenu*)offTheSideMenu; 243 - (NSMenu*)offTheSideMenu;
239 - (NSButton*)offTheSideButton; 244 - (NSButton*)offTheSideButton;
240 - (NSButton*)otherBookmarksButton; 245 - (NSButton*)otherBookmarksButton;
246 - (BookmarkNode*)nodeFromMenuItem:(id)sender;
241 @end 247 @end
242 248
243 #endif // CHROME_BROWSER_COCOA_BOOKMARK_BAR_CONTROLLER_H_ 249 #endif // CHROME_BROWSER_COCOA_BOOKMARK_BAR_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/app/nibs/BookmarkBar.xib ('k') | chrome/browser/cocoa/bookmark_bar_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698