diff options
author | jrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-23 23:56:19 +0000 |
---|---|---|
committer | jrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-23 23:56:19 +0000 |
commit | cb514b8024f425b974c680b06dcace135b32de39 (patch) | |
tree | 79a1530164118302eee0562b6bdf58f3a022f880 /chrome/app | |
parent | b1e8cb31f85869171dcb383c7ec5e8176833ec04 (diff) | |
download | chromium_src-cb514b8024f425b974c680b06dcace135b32de39.zip chromium_src-cb514b8024f425b974c680b06dcace135b32de39.tar.gz chromium_src-cb514b8024f425b974c680b06dcace135b32de39.tar.bz2 |
Added menus for bookmark bar folders. This is NOT based on the Cole
prototype; it is an attempt to get something functional in the short
term, and have a visual baseline before doing something new.
Added folder icons for bookmark bar folder buttons. Added an "off the
side" button/menu for bookmark buttons which don't fit on the bar.
Updated "Add page..." item to allow creating bookmarks in the folders
(if selected over a folder button).
BUG=http://crbug.com/8381
TEST=Here we go:
1) Make sure bookmark bar folders have the "folder" icon.
2) Right click on a folder --> Add Page, and add a bookmark.
Make sure bookmark is now in the folder, not at the top level.
3) (Oh, you just implicitly verified you can open bookmark folders!)
4) Add 5 bookmarks then shrink the window thinner so all bookmark
buttons don't fit. Make sure "off the right" button gets enabled
(on right side of bar) and shows bookmarks in a pop-up menu (when
clicked) that don't completely fit on the bar.
5) Make it super-wide so the all fit and make sure "off the right"
button is disabled.
6) Add a bunch of bookmarks to a folder; make sure they all work.
7) Add nested folders (by editing the bookmark pref file and restarting
Chrome) and make sure bookmark folder buttons have nested/cascading
menus.
Review URL: http://codereview.chromium.org/159286
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21479 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app')
-rw-r--r-- | chrome/app/nibs/BookmarkBar.xib | 147 |
1 files changed, 115 insertions, 32 deletions
diff --git a/chrome/app/nibs/BookmarkBar.xib b/chrome/app/nibs/BookmarkBar.xib index e719a99..cc39ec8 100644 --- a/chrome/app/nibs/BookmarkBar.xib +++ b/chrome/app/nibs/BookmarkBar.xib @@ -39,9 +39,42 @@ <object class="NSCustomView" id="620641226"> <reference key="NSNextResponder"/> <int key="NSvFlags">-2147483358</int> - <string key="NSFrameSize">{468, 65}</string> + <object class="NSMutableArray" key="NSSubviews"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSCustomView" id="610146462"> + <reference key="NSNextResponder" ref="620641226"/> + <int key="NSvFlags">274</int> + <string key="NSFrameSize">{584, 144}</string> + <reference key="NSSuperview" ref="620641226"/> + <string key="NSClassName">NSView</string> + </object> + <object class="NSButton" id="1071220197"> + <reference key="NSNextResponder" ref="620641226"/> + <int key="NSvFlags">305</int> + <string key="NSFrame">{{586, 2}, {14, 28}}</string> + <reference key="NSSuperview" ref="620641226"/> + <bool key="NSEnabled">YES</bool> + <object class="NSButtonCell" key="NSCell" id="1055451269"> + <int key="NSCellFlags">67239424</int> + <int key="NSCellFlags2">134217728</int> + <string key="NSContents"/> + <reference key="NSControlView" ref="1071220197"/> + <int key="NSButtonFlags">-2042347265</int> + <int key="NSButtonFlags2">134</int> + <object class="NSCustomResource" key="NSNormalImage"> + <string key="NSClassName">NSImage</string> + <string key="NSResourceName">chevron</string> + </object> + <string key="NSAlternateContents"/> + <string key="NSKeyEquivalent"/> + <int key="NSPeriodicDelay">400</int> + <int key="NSPeriodicInterval">75</int> + </object> + </object> + </object> + <string key="NSFrameSize">{600, 144}</string> <reference key="NSSuperview"/> - <string key="NSClassName">BookmarkBarView</string> + <string key="NSClassName">NSView</string> </object> <object class="NSMenu" id="183701277"> <string key="NSTitle"/> @@ -283,14 +316,6 @@ </object> <object class="IBConnectionRecord"> <object class="IBOutletConnection" key="connection"> - <string key="label">barContextualMenu_</string> - <reference key="source" ref="620641226"/> - <reference key="destination" ref="183701277"/> - </object> - <int key="connectionID">17</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> <string key="label">buttonContextMenu_</string> <reference key="source" ref="1001"/> <reference key="destination" ref="672481054"/> @@ -441,6 +466,46 @@ </object> <int key="connectionID">61</int> </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">buttonView_</string> + <reference key="source" ref="1001"/> + <reference key="destination" ref="610146462"/> + </object> + <int key="connectionID">65</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">offTheSideButton_</string> + <reference key="source" ref="1001"/> + <reference key="destination" ref="1071220197"/> + </object> + <int key="connectionID">66</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">openOffTheSideMenuFromButton:</string> + <reference key="source" ref="1001"/> + <reference key="destination" ref="1071220197"/> + </object> + <int key="connectionID">69</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">menu</string> + <reference key="source" ref="610146462"/> + <reference key="destination" ref="183701277"/> + </object> + <int key="connectionID">70</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">menu</string> + <reference key="source" ref="620641226"/> + <reference key="destination" ref="183701277"/> + </object> + <int key="connectionID">71</int> + </object> </object> <object class="IBMutableOrderedSet" key="objectRecords"> <object class="NSArray" key="orderedObjects"> @@ -474,6 +539,11 @@ <object class="IBObjectRecord"> <int key="objectID">1</int> <reference key="object" ref="620641226"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="610146462"/> + <reference ref="1071220197"/> + </object> <reference key="parent" ref="1002"/> </object> <object class="IBObjectRecord"> @@ -638,6 +708,25 @@ <reference key="object" ref="1071747565"/> <reference key="parent" ref="672481054"/> </object> + <object class="IBObjectRecord"> + <int key="objectID">62</int> + <reference key="object" ref="610146462"/> + <reference key="parent" ref="620641226"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">63</int> + <reference key="object" ref="1071220197"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="1055451269"/> + </object> + <reference key="parent" ref="620641226"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">64</int> + <reference key="object" ref="1055451269"/> + <reference key="parent" ref="1071220197"/> + </object> </object> </object> <object class="NSMutableDictionary" key="flattenedProperties"> @@ -674,6 +763,9 @@ <string>4.IBPluginDependency</string> <string>5.IBPluginDependency</string> <string>6.IBPluginDependency</string> + <string>62.IBPluginDependency</string> + <string>63.IBPluginDependency</string> + <string>64.IBPluginDependency</string> <string>7.IBPluginDependency</string> <string>8.IBPluginDependency</string> <string>9.IBPluginDependency</string> @@ -683,7 +775,7 @@ <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>{{519, 625}, {468, 65}}</string> + <string>{{519, 546}, {600, 144}}</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> @@ -713,6 +805,9 @@ <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> </object> </object> <object class="NSMutableDictionary" key="unlocalizedProperties"> @@ -735,20 +830,12 @@ </object> </object> <nil key="sourceID"/> - <int key="maxID">61</int> + <int key="maxID">71</int> </object> <object class="IBClassDescriber" key="IBDocument.Classes"> <object class="NSMutableArray" key="referencedPartialClassDescriptions"> <bool key="EncodedWithXMLCoder">YES</bool> <object class="IBPartialClassDescription"> - <string key="className">BackgroundGradientView</string> - <string key="superclassName">NSView</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBProjectSource</string> - <string key="minorKey">browser/cocoa/background_gradient_view.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> <string key="className">BookmarkBarController</string> <string key="superclassName">NSViewController</string> <object class="NSMutableDictionary" key="actions"> @@ -764,6 +851,8 @@ <string>openBookmarkInIncognitoWindow:</string> <string>openBookmarkInNewForegroundTab:</string> <string>openBookmarkInNewWindow:</string> + <string>openFolderMenuFromButton:</string> + <string>openOffTheSideMenuFromButton:</string> </object> <object class="NSMutableArray" key="dict.values"> <bool key="EncodedWithXMLCoder">YES</bool> @@ -776,6 +865,8 @@ <string>id</string> <string>id</string> <string>id</string> + <string>id</string> + <string>id</string> </object> </object> <object class="NSMutableDictionary" key="outlets"> @@ -783,12 +874,16 @@ <object class="NSMutableArray" key="dict.sortedKeys"> <bool key="EncodedWithXMLCoder">YES</bool> <string>buttonContextMenu_</string> + <string>buttonView_</string> <string>delegate_</string> + <string>offTheSideButton_</string> </object> <object class="NSMutableArray" key="dict.values"> <bool key="EncodedWithXMLCoder">YES</bool> <string>NSMenu</string> + <string>NSView</string> <string>id</string> + <string>NSButton</string> </object> </object> <object class="IBClassDescriptionSource" key="sourceIdentifier"> @@ -797,18 +892,6 @@ </object> </object> <object class="IBPartialClassDescription"> - <string key="className">BookmarkBarView</string> - <string key="superclassName">BackgroundGradientView</string> - <object class="NSMutableDictionary" key="outlets"> - <string key="NS.key.0">barContextualMenu_</string> - <string key="NS.object.0">NSMenu</string> - </object> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBProjectSource</string> - <string key="minorKey">browser/cocoa/bookmark_bar_view.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> <string key="className">NSObject</string> <object class="IBClassDescriptionSource" key="sourceIdentifier"> <string key="majorKey">IBProjectSource</string> |