summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/bookmark_menu.h
diff options
context:
space:
mode:
authorjrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-15 19:26:33 +0000
committerjrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-15 19:26:33 +0000
commit9a7e86a71073e1026e053d2a8a00f880cb4c3bd8 (patch)
tree49976fb5356aa419f9f38108e4b7253a1eb0bc70 /chrome/browser/cocoa/bookmark_menu.h
parent809d43de928a6a80723d360d68feafabe3c5071e (diff)
downloadchromium_src-9a7e86a71073e1026e053d2a8a00f880cb4c3bd8.zip
chromium_src-9a7e86a71073e1026e053d2a8a00f880cb4c3bd8.tar.gz
chromium_src-9a7e86a71073e1026e053d2a8a00f880cb4c3bd8.tar.bz2
Fix "open all" on a folder node to open only 'marks in that folder,
not ALL all. Make Delete and Rename enabled for folder context menu (but disabled for "Other Bookmarks"). nib changes (related to the context menus): - Telegate is the bookmark bar controller. - Switched type from NSMenu to BookmarkMenu. TEST=New window. Create folder "empty" with nothing in it. Create folder "two" with 2 bookmarks in it. Create a final bookmark in the top level of the bar. Context menu (right click) over all folders. Make sure Delete and Rename enabled for folders but not "Other Bookmarks". Make sure "Open All" (and friends) disabled over "empty", enabled over "two". "Open All" on "two" --> see 2 opened. "Open All" on the bar itself --> see 3 opened. Ditto for "Open all in new window" and "open all in incognito window". Create a new window. In new window, make sure folders have context menus. BUG=http://crbug.com/27522, http://crbug.com/27529 Review URL: http://codereview.chromium.org/391046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32029 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/bookmark_menu.h')
-rw-r--r--chrome/browser/cocoa/bookmark_menu.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/bookmark_menu.h b/chrome/browser/cocoa/bookmark_menu.h
new file mode 100644
index 0000000..7a5ff25
--- /dev/null
+++ b/chrome/browser/cocoa/bookmark_menu.h
@@ -0,0 +1,18 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#import <Cocoa/Cocoa.h>
+struct BookmarkNode;
+
+// The context menu for bookmark buttons needs to know which
+// BookmarkNode it is talking about. For example, "Open All" is
+// disabled if the bookmark node is a folder and has no children.
+@interface BookmarkMenu : NSMenu {
+ @private
+ const BookmarkNode* node_;
+}
+- (void)setRepresentedObject:(id)object;
+@property const BookmarkNode* node;
+@end
+