diff options
author | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-24 20:54:14 +0000 |
---|---|---|
committer | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-24 20:54:14 +0000 |
commit | a8911fe76daddfa7222bec70847a031bbc26bd99 (patch) | |
tree | 8abe19665abb9d8ddeb2461f93b3f7b69651e10b /chrome/app | |
parent | 40362258cc6355f117648ad34ea9374f787609ff (diff) | |
download | chromium_src-a8911fe76daddfa7222bec70847a031bbc26bd99.zip chromium_src-a8911fe76daddfa7222bec70847a031bbc26bd99.tar.gz chromium_src-a8911fe76daddfa7222bec70847a031bbc26bd99.tar.bz2 |
Add "import bookmarks" link to bookmark bar when it is devoid of folders or links.
The link itself was added to the nib as an NSButton; the link and "no bookmarks" text were both embedded in a GTMWidthTweaker to keep them nicely positioned when localized.
BUG= 28753
TEST= create browser with empty profile or remove all bookmarks. Link should appear that creates a dialog box which allows you to import data from other browsers, as in Windows version.
Review URL: http://codereview.chromium.org/1246001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42530 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app')
-rw-r--r-- | chrome/app/nibs/BookmarkBar.xib | 291 |
1 files changed, 208 insertions, 83 deletions
diff --git a/chrome/app/nibs/BookmarkBar.xib b/chrome/app/nibs/BookmarkBar.xib index 5098893..bb73be0 100644 --- a/chrome/app/nibs/BookmarkBar.xib +++ b/chrome/app/nibs/BookmarkBar.xib @@ -2,15 +2,15 @@ <archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.03"> <data> <int key="IBDocument.SystemTarget">1050</int> - <string key="IBDocument.SystemVersion">9L30</string> + <string key="IBDocument.SystemVersion">9L31a</string> <string key="IBDocument.InterfaceBuilderVersion">677</string> <string key="IBDocument.AppKitVersion">949.54</string> <string key="IBDocument.HIToolboxVersion">353.00</string> <object class="NSMutableArray" key="IBDocument.EditedObjectIDs"> <bool key="EncodedWithXMLCoder">YES</bool> - <integer value="4"/> <integer value="18"/> <integer value="1"/> + <integer value="4"/> </object> <object class="NSArray" key="IBDocument.PluginDependencies"> <bool key="EncodedWithXMLCoder">YES</bool> @@ -46,41 +46,71 @@ <int key="NSvFlags">274</int> <object class="NSMutableArray" key="NSSubviews"> <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSTextField" id="1013234954"> + <object class="NSCustomView" id="1023728927"> <reference key="NSNextResponder" ref="610146462"/> - <int key="NSvFlags">-2147483382</int> - <string key="NSFrame">{{5, 123}, {579, 14}}</string> - <reference key="NSSuperview" ref="610146462"/> - <bool key="NSEnabled">YES</bool> - <object class="NSTextFieldCell" key="NSCell" id="458754719"> - <int key="NSCellFlags">605158976</int> - <int key="NSCellFlags2">272761856</int> - <string key="NSContents">^IDS_BOOKMARKS_NO_ITEMS</string> - <object class="NSFont" key="NSSupport"> - <string key="NSName">LucidaGrande</string> - <double key="NSSize">1.100000e+01</double> - <int key="NSfFlags">3100</int> - </object> - <reference key="NSControlView" ref="1013234954"/> - <object class="NSColor" key="NSBackgroundColor"> - <int key="NSColorSpace">6</int> - <string key="NSCatalogName">System</string> - <string key="NSColorName">controlColor</string> - <object class="NSColor" key="NSColor"> - <int key="NSColorSpace">3</int> - <bytes key="NSWhite">MC42NjY2NjY2OQA</bytes> + <int key="NSvFlags">268</int> + <object class="NSMutableArray" key="NSSubviews"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSTextField" id="1013234954"> + <reference key="NSNextResponder" ref="1023728927"/> + <int key="NSvFlags">266</int> + <string key="NSFrame">{{5, 20}, {167, 14}}</string> + <reference key="NSSuperview" ref="1023728927"/> + <bool key="NSEnabled">YES</bool> + <object class="NSTextFieldCell" key="NSCell" id="458754719"> + <int key="NSCellFlags">605158976</int> + <int key="NSCellFlags2">272761856</int> + <string key="NSContents">^IDS_BOOKMARKS_NO_ITEMS</string> + <object class="NSFont" key="NSSupport" id="26"> + <string key="NSName">LucidaGrande</string> + <double key="NSSize">1.100000e+01</double> + <int key="NSfFlags">3100</int> + </object> + <reference key="NSControlView" ref="1013234954"/> + <object class="NSColor" key="NSBackgroundColor"> + <int key="NSColorSpace">6</int> + <string key="NSCatalogName">System</string> + <string key="NSColorName">controlColor</string> + <object class="NSColor" key="NSColor"> + <int key="NSColorSpace">3</int> + <bytes key="NSWhite">MC42NjY2NjY2OQA</bytes> + </object> + </object> + <object class="NSColor" key="NSTextColor"> + <int key="NSColorSpace">6</int> + <string key="NSCatalogName">System</string> + <string key="NSColorName">controlTextColor</string> + <object class="NSColor" key="NSColor"> + <int key="NSColorSpace">3</int> + <bytes key="NSWhite">MAA</bytes> + </object> + </object> </object> </object> - <object class="NSColor" key="NSTextColor"> - <int key="NSColorSpace">6</int> - <string key="NSCatalogName">System</string> - <string key="NSColorName">controlTextColor</string> - <object class="NSColor" key="NSColor"> - <int key="NSColorSpace">3</int> - <bytes key="NSWhite">MAA</bytes> + <object class="NSButton" id="1020224577"> + <reference key="NSNextResponder" ref="1023728927"/> + <int key="NSvFlags">268</int> + <string key="NSFrame">{{177, 20}, {199, 14}}</string> + <reference key="NSSuperview" ref="1023728927"/> + <bool key="NSEnabled">YES</bool> + <object class="NSButtonCell" key="NSCell" id="976310023"> + <int key="NSCellFlags">67239424</int> + <int key="NSCellFlags2">134348800</int> + <string key="NSContents">^IDS_BOOKMARK_BAR_IMPORT_LINK</string> + <reference key="NSSupport" ref="26"/> + <reference key="NSControlView" ref="1020224577"/> + <int key="NSButtonFlags">-2041822977</int> + <int key="NSButtonFlags2">134</int> + <string key="NSAlternateContents"/> + <string key="NSKeyEquivalent"/> + <int key="NSPeriodicDelay">400</int> + <int key="NSPeriodicInterval">75</int> </object> </object> </object> + <string key="NSFrame">{{0, 103}, {596, 41}}</string> + <reference key="NSSuperview" ref="610146462"/> + <string key="NSClassName">GTMWidthBasedTweaker</string> </object> </object> <string key="NSFrame">{{0, -2}, {584, 144}}</string> @@ -366,6 +396,9 @@ <object class="NSCustomObject" id="849863465"> <string key="NSClassName">ChromeUILocalizer</string> </object> + <object class="NSCustomObject" id="191941755"> + <string key="NSClassName">GTMUILocalizerAndLayoutTweaker</string> + </object> </object> <object class="IBObjectContainer" key="IBDocument.Objects"> <object class="NSMutableArray" key="connectionRecords"> @@ -666,6 +699,46 @@ </object> <int key="connectionID">105</int> </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">localizerOwner_</string> + <reference key="source" ref="191941755"/> + <reference key="destination" ref="1001"/> + </object> + <int key="connectionID">111</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">uiObject_</string> + <reference key="source" ref="191941755"/> + <reference key="destination" ref="610146462"/> + </object> + <int key="connectionID">112</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">localizer_</string> + <reference key="source" ref="191941755"/> + <reference key="destination" ref="849863465"/> + </object> + <int key="connectionID">113</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">importBookmarks:</string> + <reference key="source" ref="1001"/> + <reference key="destination" ref="1020224577"/> + </object> + <int key="connectionID">116</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">noItemContainer</string> + <reference key="source" ref="610146462"/> + <reference key="destination" ref="1023728927"/> + </object> + <int key="connectionID">117</int> + </object> </object> <object class="IBMutableOrderedSet" key="objectRecords"> <object class="NSArray" key="orderedObjects"> @@ -874,7 +947,7 @@ <reference key="object" ref="610146462"/> <object class="NSMutableArray" key="children"> <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="1013234954"/> + <reference ref="1023728927"/> </object> <reference key="parent" ref="620641226"/> </object> @@ -913,24 +986,53 @@ <reference key="parent" ref="190917733"/> </object> <object class="IBObjectRecord"> + <int key="objectID">88</int> + <reference key="object" ref="377013426"/> + <reference key="parent" ref="672481054"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">109</int> + <reference key="object" ref="1023728927"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="1013234954"/> + <reference ref="1020224577"/> + </object> + <reference key="parent" ref="610146462"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">106</int> + <reference key="object" ref="1020224577"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="976310023"/> + </object> + <reference key="parent" ref="1023728927"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">107</int> + <reference key="object" ref="976310023"/> + <reference key="parent" ref="1020224577"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">110</int> + <reference key="object" ref="191941755"/> + <reference key="parent" ref="538603655"/> + </object> + <object class="IBObjectRecord"> <int key="objectID">82</int> <reference key="object" ref="1013234954"/> <object class="NSMutableArray" key="children"> <bool key="EncodedWithXMLCoder">YES</bool> <reference ref="458754719"/> </object> - <reference key="parent" ref="610146462"/> + <reference key="parent" ref="1023728927"/> </object> <object class="IBObjectRecord"> <int key="objectID">83</int> <reference key="object" ref="458754719"/> <reference key="parent" ref="1013234954"/> </object> - <object class="IBObjectRecord"> - <int key="objectID">88</int> - <reference key="object" ref="377013426"/> - <reference key="parent" ref="672481054"/> - </object> </object> </object> <object class="NSMutableDictionary" key="flattenedProperties"> @@ -943,7 +1045,11 @@ <string>1.IBEditorWindowLastContentRect</string> <string>1.IBPluginDependency</string> <string>10.IBPluginDependency</string> + <string>106.IBPluginDependency</string> + <string>107.CustomClassName</string> + <string>107.IBPluginDependency</string> <string>11.IBPluginDependency</string> + <string>110.IBPluginDependency</string> <string>12.IBPluginDependency</string> <string>13.IBPluginDependency</string> <string>14.IBPluginDependency</string> @@ -990,7 +1096,11 @@ <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>{{199, 138}, {600, 142}}</string> + <string>{{538, 1287}, {600, 142}}</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>HyperlinkButtonCell</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> @@ -1000,7 +1110,7 @@ <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>BookmarkMenu</string> - <string>{{364, 332}, {365, 233}}</string> + <string>{{199, 226}, {365, 233}}</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> @@ -1015,7 +1125,7 @@ <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>BookmarkMenu</string> - <string>{{21, 637}, {375, 213}}</string> + <string>{{21, 246}, {375, 213}}</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> @@ -1056,7 +1166,7 @@ </object> </object> <nil key="sourceID"/> - <int key="maxID">105</int> + <int key="maxID">117</int> </object> <object class="IBClassDescriber" key="IBDocument.Classes"> <object class="NSMutableArray" key="referencedPartialClassDescriptions"> @@ -1102,14 +1212,15 @@ <string>copyBookmark:</string> <string>deleteBookmark:</string> <string>editBookmark:</string> + <string>importBookmarks:</string> <string>openAllBookmarks:</string> <string>openAllBookmarksIncognitoWindow:</string> <string>openAllBookmarksNewWindow:</string> <string>openBookmark:</string> + <string>openBookmarkFolderFromButton:</string> <string>openBookmarkInIncognitoWindow:</string> <string>openBookmarkInNewForegroundTab:</string> <string>openBookmarkInNewWindow:</string> - <string>openFolderMenuFromButton:</string> </object> <object class="NSMutableArray" key="dict.values"> <bool key="EncodedWithXMLCoder">YES</bool> @@ -1126,6 +1237,7 @@ <string>id</string> <string>id</string> <string>id</string> + <string>id</string> </object> </object> <object class="NSMutableDictionary" key="outlets"> @@ -1172,11 +1284,13 @@ <object class="NSMutableArray" key="dict.sortedKeys"> <bool key="EncodedWithXMLCoder">YES</bool> <string>controller_</string> + <string>noItemContainer</string> <string>noItemTextfield_</string> </object> <object class="NSMutableArray" key="dict.values"> <bool key="EncodedWithXMLCoder">YES</bool> <string>BookmarkBarController</string> + <string>NSView</string> <string>NSTextField</string> </object> </object> @@ -1245,6 +1359,49 @@ </object> </object> <object class="IBPartialClassDescription"> + <string key="className">GTMUILocalizerAndLayoutTweaker</string> + <string key="superclassName">NSObject</string> + <object class="NSMutableDictionary" key="outlets"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSMutableArray" key="dict.sortedKeys"> + <bool key="EncodedWithXMLCoder">YES</bool> + <string>localizerOwner_</string> + <string>localizer_</string> + <string>uiObject_</string> + </object> + <object class="NSMutableArray" key="dict.values"> + <bool key="EncodedWithXMLCoder">YES</bool> + <string>id</string> + <string>GTMUILocalizer</string> + <string>id</string> + </object> + </object> + <object class="IBClassDescriptionSource" key="sourceIdentifier" id="30598627"> + <string key="majorKey">IBProjectSource</string> + <string key="minorKey">../third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">GTMWidthBasedTweaker</string> + <string key="superclassName">NSView</string> + <object class="NSMutableDictionary" key="outlets"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSMutableArray" key="dict.sortedKeys"> + <bool key="EncodedWithXMLCoder">YES</bool> + <string>viewToResize_</string> + <string>viewToSlideAndResize_</string> + <string>viewToSlide_</string> + </object> + <object class="NSMutableArray" key="dict.values"> + <bool key="EncodedWithXMLCoder">YES</bool> + <string>id</string> + <string>NSView</string> + <string>NSView</string> + </object> + </object> + <reference key="sourceIdentifier" ref="30598627"/> + </object> + <object class="IBPartialClassDescription"> <string key="className">GradientButtonCell</string> <string key="superclassName">NSButtonCell</string> <object class="IBClassDescriptionSource" key="sourceIdentifier"> @@ -1253,6 +1410,14 @@ </object> </object> <object class="IBPartialClassDescription"> + <string key="className">HyperlinkButtonCell</string> + <string key="superclassName">NSButtonCell</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBProjectSource</string> + <string key="minorKey">browser/cocoa/hyperlink_button_cell.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> <string key="className">MenuButton</string> <string key="superclassName">NSButton</string> <object class="NSMutableDictionary" key="outlets"> @@ -1285,46 +1450,6 @@ <string key="minorKey">browser/cocoa/tab_strip_model_observer_bridge.h</string> </object> </object> - <object class="IBPartialClassDescription"> - <string key="className">TabController</string> - <string key="superclassName">NSViewController</string> - <object class="NSMutableDictionary" key="actions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSMutableArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>closeTab:</string> - <string>commandDispatch:</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>id</string> - <string>id</string> - </object> - </object> - <object class="NSMutableDictionary" key="outlets"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSMutableArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>closeButton_</string> - <string>contextMenu_</string> - <string>iconView_</string> - <string>target_</string> - <string>titleView_</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>NSButton</string> - <string>NSMenu</string> - <string>NSView</string> - <string>id</string> - <string>NSTextField</string> - </object> - </object> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBProjectSource</string> - <string key="minorKey">browser/cocoa/tab_controller.h</string> - </object> - </object> </object> </object> <int key="IBDocument.localizationMode">0</int> |