diff options
author | pinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-08 16:47:36 +0000 |
---|---|---|
committer | pinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-08 16:47:36 +0000 |
commit | 21fe774256c1c87512a44458efdcf13b5a34abd9 (patch) | |
tree | d3e3a634c8072cee20182e89397513e26d86ee2e /chrome/app | |
parent | 13367f790fdd104e97c91aae5d1cedc331350f73 (diff) | |
download | chromium_src-21fe774256c1c87512a44458efdcf13b5a34abd9.zip chromium_src-21fe774256c1c87512a44458efdcf13b5a34abd9.tar.gz chromium_src-21fe774256c1c87512a44458efdcf13b5a34abd9.tar.bz2 |
Add context menus to tabs.
BUG=14920
TEST=context menus on tabs.
Review URL: http://codereview.chromium.org/155173
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20155 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app')
-rw-r--r-- | chrome/app/nibs/en.lproj/TabView.xib | 310 |
1 files changed, 303 insertions, 7 deletions
diff --git a/chrome/app/nibs/en.lproj/TabView.xib b/chrome/app/nibs/en.lproj/TabView.xib index 9752f4b..c64664f 100644 --- a/chrome/app/nibs/en.lproj/TabView.xib +++ b/chrome/app/nibs/en.lproj/TabView.xib @@ -8,7 +8,7 @@ <string key="IBDocument.HIToolboxVersion">352.00</string> <object class="NSMutableArray" key="IBDocument.EditedObjectIDs"> <bool key="EncodedWithXMLCoder">YES</bool> - <integer value="1"/> + <integer value="59"/> </object> <object class="NSArray" key="IBDocument.PluginDependencies"> <bool key="EncodedWithXMLCoder">YES</bool> @@ -45,6 +45,7 @@ <int key="NSvFlags">274</int> <string key="NSFrameSize">{160, 25}</string> <reference key="NSSuperview" ref="1005"/> + <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSButtonCell" key="NSCell" id="707804163"> <int key="NSCellFlags">-2080244160</int> @@ -81,6 +82,7 @@ </object> <string key="NSFrame">{{5, 46}, {32, 32}}</string> <reference key="NSSuperview" ref="1005"/> + <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSImageCell" key="NSCell" id="601843736"> <int key="NSCellFlags">130560</int> @@ -113,6 +115,7 @@ </object> <string key="NSFrame">{{18, 5}, {16, 16}}</string> <reference key="NSSuperview" ref="1005"/> + <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSImageCell" key="NSCell" id="1061639670"> <int key="NSCellFlags">537001472</int> @@ -133,6 +136,7 @@ <int key="NSvFlags">297</int> <string key="NSFrame">{{131, 5}, {15, 15}}</string> <reference key="NSSuperview" ref="1005"/> + <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSButtonCell" key="NSCell" id="348599947"> <int key="NSCellFlags">67239424</int> @@ -163,8 +167,113 @@ </object> <string key="NSFrameSize">{160, 25}</string> <reference key="NSSuperview"/> + <reference key="NSWindow"/> <string key="NSClassName">TabView</string> </object> + <object class="NSMenu" id="398259350"> + <string key="NSTitle">Context Menu</string> + <object class="NSMutableArray" key="NSMenuItems"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSMenuItem" id="91607659"> + <reference key="NSMenu" ref="398259350"/> + <string key="NSTitle">New Tab</string> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <object class="NSCustomResource" key="NSOnImage" id="530899574"> + <string key="NSClassName">NSImage</string> + <string key="NSResourceName">NSMenuCheckmark</string> + </object> + <object class="NSCustomResource" key="NSMixedImage" id="689949759"> + <string key="NSClassName">NSImage</string> + <string key="NSResourceName">NSMenuMixedState</string> + </object> + <int key="NSTag">1</int> + </object> + <object class="NSMenuItem" id="676489270"> + <reference key="NSMenu" ref="398259350"/> + <bool key="NSIsDisabled">YES</bool> + <bool key="NSIsSeparator">YES</bool> + <string key="NSTitle"/> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="530899574"/> + <reference key="NSMixedImage" ref="689949759"/> + </object> + <object class="NSMenuItem" id="881095412"> + <reference key="NSMenu" ref="398259350"/> + <string key="NSTitle">Reload</string> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="530899574"/> + <reference key="NSMixedImage" ref="689949759"/> + <int key="NSTag">2</int> + </object> + <object class="NSMenuItem" id="851396572"> + <reference key="NSMenu" ref="398259350"/> + <string key="NSTitle">Duplicate</string> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="530899574"/> + <reference key="NSMixedImage" ref="689949759"/> + <int key="NSTag">3</int> + </object> + <object class="NSMenuItem" id="336880767"> + <reference key="NSMenu" ref="398259350"/> + <bool key="NSIsDisabled">YES</bool> + <bool key="NSIsSeparator">YES</bool> + <string key="NSTitle"/> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="530899574"/> + <reference key="NSMixedImage" ref="689949759"/> + </object> + <object class="NSMenuItem" id="287599043"> + <reference key="NSMenu" ref="398259350"/> + <string key="NSTitle">Close Tab</string> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="530899574"/> + <reference key="NSMixedImage" ref="689949759"/> + <int key="NSTag">4</int> + </object> + <object class="NSMenuItem" id="590824484"> + <reference key="NSMenu" ref="398259350"/> + <string key="NSTitle">Close Other Tabs</string> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="530899574"/> + <reference key="NSMixedImage" ref="689949759"/> + <int key="NSTag">5</int> + </object> + <object class="NSMenuItem" id="393128310"> + <reference key="NSMenu" ref="398259350"/> + <string key="NSTitle">Close Tabs To the Right</string> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="530899574"/> + <reference key="NSMixedImage" ref="689949759"/> + <int key="NSTag">6</int> + </object> + <object class="NSMenuItem" id="716790779"> + <reference key="NSMenu" ref="398259350"/> + <string key="NSTitle">Close Tabs Opened By This Tab</string> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="530899574"/> + <reference key="NSMixedImage" ref="689949759"/> + <int key="NSTag">7</int> + </object> + <object class="NSMenuItem" id="1067896488"> + <reference key="NSMenu" ref="398259350"/> + <string key="NSTitle">Reopen Closed Tab</string> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="530899574"/> + <reference key="NSMixedImage" ref="689949759"/> + <int key="NSTag">8</int> + </object> + </object> + </object> </object> <object class="IBObjectContainer" key="IBDocument.Objects"> <object class="NSMutableArray" key="connectionRecords"> @@ -204,7 +313,6 @@ <string key="NSLabel">title: title</string> <string key="NSBinding">title</string> <string key="NSKeyPath">title</string> - <reference key="NSPreviousConnector"/> <int key="NSNibBindingConnectorVersion">2</int> </object> </object> @@ -250,6 +358,86 @@ </object> <int key="connectionID">58</int> </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">contextMenu_</string> + <reference key="source" ref="1001"/> + <reference key="destination" ref="398259350"/> + </object> + <int key="connectionID">63</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">menu</string> + <reference key="source" ref="1005"/> + <reference key="destination" ref="398259350"/> + </object> + <int key="connectionID">65</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">commandDispatch:</string> + <reference key="source" ref="1001"/> + <reference key="destination" ref="91607659"/> + </object> + <int key="connectionID">81</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">commandDispatch:</string> + <reference key="source" ref="1001"/> + <reference key="destination" ref="881095412"/> + </object> + <int key="connectionID">82</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">commandDispatch:</string> + <reference key="source" ref="1001"/> + <reference key="destination" ref="851396572"/> + </object> + <int key="connectionID">83</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">commandDispatch:</string> + <reference key="source" ref="1001"/> + <reference key="destination" ref="287599043"/> + </object> + <int key="connectionID">84</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">commandDispatch:</string> + <reference key="source" ref="1001"/> + <reference key="destination" ref="590824484"/> + </object> + <int key="connectionID">85</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">commandDispatch:</string> + <reference key="source" ref="1001"/> + <reference key="destination" ref="393128310"/> + </object> + <int key="connectionID">86</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">commandDispatch:</string> + <reference key="source" ref="1001"/> + <reference key="destination" ref="716790779"/> + </object> + <int key="connectionID">87</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">commandDispatch:</string> + <reference key="source" ref="1001"/> + <reference key="destination" ref="1067896488"/> + </object> + <int key="connectionID">88</int> + </object> </object> <object class="IBMutableOrderedSet" key="objectRecords"> <object class="NSArray" key="orderedObjects"> @@ -348,6 +536,74 @@ <reference key="object" ref="1061639670"/> <reference key="parent" ref="987403091"/> </object> + <object class="IBObjectRecord"> + <int key="objectID">59</int> + <reference key="object" ref="398259350"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="91607659"/> + <reference ref="881095412"/> + <reference ref="851396572"/> + <reference ref="676489270"/> + <reference ref="336880767"/> + <reference ref="590824484"/> + <reference ref="287599043"/> + <reference ref="1067896488"/> + <reference ref="393128310"/> + <reference ref="716790779"/> + </object> + <reference key="parent" ref="1002"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">60</int> + <reference key="object" ref="91607659"/> + <reference key="parent" ref="398259350"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">61</int> + <reference key="object" ref="881095412"/> + <reference key="parent" ref="398259350"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">62</int> + <reference key="object" ref="851396572"/> + <reference key="parent" ref="398259350"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">66</int> + <reference key="object" ref="676489270"/> + <reference key="parent" ref="398259350"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">67</int> + <reference key="object" ref="336880767"/> + <reference key="parent" ref="398259350"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">68</int> + <reference key="object" ref="590824484"/> + <reference key="parent" ref="398259350"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">69</int> + <reference key="object" ref="287599043"/> + <reference key="parent" ref="398259350"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">70</int> + <reference key="object" ref="1067896488"/> + <reference key="parent" ref="398259350"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">71</int> + <reference key="object" ref="393128310"/> + <reference key="parent" ref="398259350"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">72</int> + <reference key="object" ref="716790779"/> + <reference key="parent" ref="398259350"/> + </object> </object> </object> <object class="NSMutableDictionary" key="flattenedProperties"> @@ -370,6 +626,18 @@ <string>51.IBPluginDependency</string> <string>55.IBPluginDependency</string> <string>56.IBPluginDependency</string> + <string>59.IBEditorWindowLastContentRect</string> + <string>59.IBPluginDependency</string> + <string>60.IBPluginDependency</string> + <string>61.IBPluginDependency</string> + <string>62.IBPluginDependency</string> + <string>66.IBPluginDependency</string> + <string>67.IBPluginDependency</string> + <string>68.IBPluginDependency</string> + <string>69.IBPluginDependency</string> + <string>70.IBPluginDependency</string> + <string>71.IBPluginDependency</string> + <string>72.IBPluginDependency</string> </object> <object class="NSMutableArray" key="dict.values"> <bool key="EncodedWithXMLCoder">YES</bool> @@ -389,6 +657,18 @@ <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>{{400, 795}, {270, 183}}</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> + <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"> @@ -411,12 +691,19 @@ </object> </object> <nil key="sourceID"/> - <int key="maxID">58</int> + <int key="maxID">88</int> </object> <object class="IBClassDescriber" key="IBDocument.Classes"> <object class="NSMutableArray" key="referencedPartialClassDescriptions"> <bool key="EncodedWithXMLCoder">YES</bool> <object class="IBPartialClassDescription"> + <string key="className">FirstResponder</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBUserSource</string> + <string key="minorKey"/> + </object> + </object> + <object class="IBPartialClassDescription"> <string key="className">NSObject</string> <object class="IBClassDescriptionSource" key="sourceIdentifier"> <string key="majorKey">IBProjectSource</string> @@ -435,23 +722,32 @@ <string key="className">TabController</string> <string key="superclassName">NSViewController</string> <object class="NSMutableDictionary" key="actions"> - <string key="NS.key.0">closeTab:</string> - <string key="NS.object.0">id</string> + <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>backgroundButton_</string> + <string>contextMenu_</string> <string>iconView_</string> - <string>progressIndicator_</string> <string>target_</string> </object> <object class="NSMutableArray" key="dict.values"> <bool key="EncodedWithXMLCoder">YES</bool> <string>NSButton</string> + <string>NSMenu</string> <string>NSView</string> - <string>NSProgressIndicator</string> <string>id</string> </object> </object> |