diff options
author | bauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-30 08:37:22 +0000 |
---|---|---|
committer | bauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-30 08:37:22 +0000 |
commit | 9435c4c6cd6ef245fd9b5a66dd990400e638ae46 (patch) | |
tree | 1ae625b7104d7a12f0e22bb92837d36856c56362 | |
parent | 82df52ead5f3e27ac2c745b89c3d4e7475d54918 (diff) | |
download | chromium_src-9435c4c6cd6ef245fd9b5a66dd990400e638ae46.zip chromium_src-9435c4c6cd6ef245fd9b5a66dd990400e638ae46.tar.gz chromium_src-9435c4c6cd6ef245fd9b5a66dd990400e638ae46.tar.bz2 |
[Mac] Make exceptions dialog a sheet.
XIB changes (applying to ContentExceptionsWindow.xib and GeolocationExceptionsWindow.xib):
The window is now drawn in Aqua style, with window margins, Aqua buttons and text labels for them.
At the bottom right of the window there is an additional button for closing the sheet, hooked up to the |doneButton_| outlet in the file's owner and with action |closeSheet:|.
The lefthand side buttons are inside a |GTMWidthBasedTweaker|, as is the done button. The actual tweaking is done by a newly added |GTMUILocalizerAndLayoutTweaker|.
BUG=38021
TEST=Preferences > Under the Hood > Content Settings > Exceptions should be a sheet.
Review URL: http://codereview.chromium.org/1760001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46049 0039d316-1c4b-4281-b951-d872f2087c98
8 files changed, 675 insertions, 258 deletions
diff --git a/chrome/app/nibs/ContentExceptionsWindow.xib b/chrome/app/nibs/ContentExceptionsWindow.xib index 1ccb4c4..9e2b30f 100644 --- a/chrome/app/nibs/ContentExceptionsWindow.xib +++ b/chrome/app/nibs/ContentExceptionsWindow.xib @@ -37,13 +37,13 @@ <object class="NSWindowTemplate" id="1005"> <int key="NSWindowStyleMask">15</int> <int key="NSWindowBacking">2</int> - <string key="NSWindowRect">{{477, 301}, {480, 285}}</string> + <string key="NSWindowRect">{{477, 138}, {533, 448}}</string> <int key="NSWTFlags">536870912</int> <string key="NSWindowTitle">Title set by controller</string> <string key="NSWindowClass">NSWindow</string> <nil key="NSViewClass"/> <string key="NSWindowContentMaxSize">{3.40282e+38, 3.40282e+38}</string> - <string key="NSWindowContentMinSize">{200, 100}</string> + <string key="NSWindowContentMinSize">{425, 131}</string> <object class="NSView" key="NSWindowView" id="1006"> <reference key="NSNextResponder"/> <int key="NSvFlags">256</int> @@ -62,13 +62,13 @@ <object class="NSTableView" id="178750169"> <reference key="NSNextResponder" ref="854753160"/> <int key="NSvFlags">256</int> - <string key="NSFrameSize">{480, 233}</string> + <string key="NSFrameSize">{491, 351}</string> <reference key="NSSuperview" ref="854753160"/> <bool key="NSEnabled">YES</bool> <object class="NSTableHeaderView" key="NSHeaderView" id="1052514209"> <reference key="NSNextResponder" ref="522115304"/> <int key="NSvFlags">256</int> - <string key="NSFrameSize">{480, 17}</string> + <string key="NSFrameSize">{491, 17}</string> <reference key="NSSuperview" ref="522115304"/> <reference key="NSTableView" ref="178750169"/> </object> @@ -82,7 +82,7 @@ <bool key="EncodedWithXMLCoder">YES</bool> <object class="NSTableColumn" id="20203331"> <string key="NSIdentifier">pattern</string> - <double key="NSWidth">3.020000e+02</double> + <double key="NSWidth">3.120000e+02</double> <double key="NSMinWidth">4.000000e+01</double> <double key="NSMaxWidth">1.000000e+03</double> <object class="NSTableHeaderCell" key="NSHeaderCell"> @@ -141,7 +141,7 @@ </object> <object class="NSTableColumn" id="332085935"> <string key="NSIdentifier">action</string> - <double key="NSWidth">1.720000e+02</double> + <double key="NSWidth">1.730000e+02</double> <double key="NSMinWidth">4.000000e+01</double> <double key="NSMaxWidth">1.000000e+03</double> <object class="NSTableHeaderCell" key="NSHeaderCell"> @@ -223,7 +223,7 @@ <bool key="NSAllowsTypeSelect">YES</bool> </object> </object> - <string key="NSFrame">{{1, 17}, {480, 233}}</string> + <string key="NSFrame">{{1, 17}, {491, 351}}</string> <reference key="NSSuperview" ref="832680793"/> <reference key="NSNextKeyView" ref="178750169"/> <reference key="NSDocView" ref="178750169"/> @@ -233,22 +233,21 @@ <object class="NSScroller" id="984908608"> <reference key="NSNextResponder" ref="832680793"/> <int key="NSvFlags">-2147483392</int> - <string key="NSFrame">{{466, 17}, {15, 218}}</string> + <string key="NSFrame">{{368, 17}, {15, 327}}</string> <reference key="NSSuperview" ref="832680793"/> <reference key="NSTarget" ref="832680793"/> <string key="NSAction">_doScroller:</string> - <double key="NSCurValue">1.000000e+00</double> - <double key="NSPercent">9.356223e-01</double> + <double key="NSPercent">9.941860e-01</double> </object> <object class="NSScroller" id="689783017"> <reference key="NSNextResponder" ref="832680793"/> <int key="NSvFlags">-2147483392</int> - <string key="NSFrame">{{1, 235}, {465, 15}}</string> + <string key="NSFrame">{{1, 344}, {367, 15}}</string> <reference key="NSSuperview" ref="832680793"/> <int key="NSsFlags">1</int> <reference key="NSTarget" ref="832680793"/> <string key="NSAction">_doScroller:</string> - <double key="NSPercent">9.979210e-01</double> + <double key="NSPercent">9.973890e-01</double> </object> <object class="NSClipView" id="522115304"> <reference key="NSNextResponder" ref="832680793"/> @@ -257,7 +256,7 @@ <bool key="EncodedWithXMLCoder">YES</bool> <reference ref="1052514209"/> </object> - <string key="NSFrame">{{1, 0}, {480, 17}}</string> + <string key="NSFrame">{{1, 0}, {491, 17}}</string> <reference key="NSSuperview" ref="832680793"/> <reference key="NSNextKeyView" ref="1052514209"/> <reference key="NSDocView" ref="1052514209"/> @@ -266,7 +265,7 @@ </object> <reference ref="274818157"/> </object> - <string key="NSFrame">{{-1, 35}, {482, 251}}</string> + <string key="NSFrame">{{20, 59}, {493, 369}}</string> <reference key="NSSuperview" ref="1006"/> <reference key="NSNextKeyView" ref="854753160"/> <int key="NSsFlags">562</int> @@ -277,85 +276,124 @@ <reference key="NSCornerView" ref="274818157"/> <bytes key="NSScrollAmts">QSAAAEEgAABBmAAAQZgAAA</bytes> </object> - <object class="NSButton" id="232729973"> + <object class="NSCustomView" id="864465341"> <reference key="NSNextResponder" ref="1006"/> <int key="NSvFlags">292</int> - <string key="NSFrame">{{7, 5}, {25, 25}}</string> - <reference key="NSSuperview" ref="1006"/> - <bool key="NSEnabled">YES</bool> - <object class="NSButtonCell" key="NSCell" id="723955339"> - <int key="NSCellFlags">-2080244224</int> - <int key="NSCellFlags2">134217728</int> - <string key="NSContents"/> - <reference key="NSSupport" ref="22228631"/> - <reference key="NSControlView" ref="232729973"/> - <int key="NSButtonFlags">-2033958657</int> - <int key="NSButtonFlags2">163</int> - <object class="NSCustomResource" key="NSNormalImage"> - <string key="NSClassName">NSImage</string> - <string key="NSResourceName">NSAddTemplate</string> + <object class="NSMutableArray" key="NSSubviews"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSButton" id="947861542"> + <reference key="NSNextResponder" ref="864465341"/> + <int key="NSvFlags">292</int> + <string key="NSFrame">{{14, 12}, {79, 32}}</string> + <reference key="NSSuperview" ref="864465341"/> + <bool key="NSEnabled">YES</bool> + <object class="NSButtonCell" key="NSCell" id="557322662"> + <int key="NSCellFlags">67239424</int> + <int key="NSCellFlags2">134217728</int> + <string key="NSContents">^IDS_EXCEPTIONS_ADD_BUTTON</string> + <reference key="NSSupport" ref="22228631"/> + <reference key="NSControlView" ref="947861542"/> + <int key="NSButtonFlags">-2038021889</int> + <int key="NSButtonFlags2">129</int> + <reference key="NSAlternateImage" ref="22228631"/> + <string key="NSAlternateContents"/> + <string key="NSKeyEquivalent"/> + <int key="NSPeriodicDelay">400</int> + <int key="NSPeriodicInterval">75</int> + </object> + </object> + <object class="NSButton" id="392278592"> + <reference key="NSNextResponder" ref="864465341"/> + <int key="NSvFlags">292</int> + <string key="NSFrame">{{93, 12}, {90, 32}}</string> + <reference key="NSSuperview" ref="864465341"/> + <bool key="NSEnabled">YES</bool> + <object class="NSButtonCell" key="NSCell" id="1025786806"> + <int key="NSCellFlags">-2080244224</int> + <int key="NSCellFlags2">134217728</int> + <string key="NSContents">^IDS_EXCEPTIONS_REMOVE_BUTTON</string> + <reference key="NSSupport" ref="22228631"/> + <reference key="NSControlView" ref="392278592"/> + <int key="NSButtonFlags">-2038021889</int> + <int key="NSButtonFlags2">129</int> + <reference key="NSAlternateImage" ref="22228631"/> + <string key="NSAlternateContents"/> + <string key="NSKeyEquivalent"/> + <int key="NSPeriodicDelay">400</int> + <int key="NSPeriodicInterval">75</int> + </object> + </object> + <object class="NSButton" id="189525473"> + <reference key="NSNextResponder" ref="864465341"/> + <int key="NSvFlags">292</int> + <string key="NSFrame">{{183, 12}, {124, 32}}</string> + <reference key="NSSuperview" ref="864465341"/> + <bool key="NSEnabled">YES</bool> + <object class="NSButtonCell" key="NSCell" id="1002841272"> + <int key="NSCellFlags">-2080244224</int> + <int key="NSCellFlags2">134217728</int> + <string key="NSContents">^IDS_EXCEPTIONS_REMOVEALL_BUTTON</string> + <reference key="NSSupport" ref="22228631"/> + <reference key="NSControlView" ref="189525473"/> + <int key="NSButtonFlags">-2038021889</int> + <int key="NSButtonFlags2">129</int> + <reference key="NSAlternateImage" ref="22228631"/> + <string key="NSAlternateContents"/> + <string key="NSKeyEquivalent"/> + <int key="NSPeriodicDelay">400</int> + <int key="NSPeriodicInterval">75</int> + </object> </object> - <string key="NSAlternateContents"/> - <string key="NSKeyEquivalent"/> - <int key="NSPeriodicDelay">400</int> - <int key="NSPeriodicInterval">75</int> </object> + <string key="NSFrameSize">{307, 51}</string> + <reference key="NSSuperview" ref="1006"/> + <string key="NSClassName">GTMWidthBasedTweaker</string> </object> - <object class="NSButton" id="297568762"> + <object class="NSCustomView" id="2487133"> <reference key="NSNextResponder" ref="1006"/> - <int key="NSvFlags">292</int> - <string key="NSFrame">{{40, 5}, {25, 25}}</string> - <reference key="NSSuperview" ref="1006"/> - <bool key="NSEnabled">YES</bool> - <object class="NSButtonCell" key="NSCell" id="655968889"> - <int key="NSCellFlags">-2080244224</int> - <int key="NSCellFlags2">134217728</int> - <string key="NSContents"/> - <reference key="NSSupport" ref="22228631"/> - <reference key="NSControlView" ref="297568762"/> - <int key="NSButtonFlags">-2033958657</int> - <int key="NSButtonFlags2">163</int> - <object class="NSCustomResource" key="NSNormalImage"> - <string key="NSClassName">NSImage</string> - <string key="NSResourceName">NSRemoveTemplate</string> + <int key="NSvFlags">289</int> + <object class="NSMutableArray" key="NSSubviews"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSButton" id="899975008"> + <reference key="NSNextResponder" ref="2487133"/> + <int key="NSvFlags">289</int> + <string key="NSFrame">{{0, 12}, {73, 32}}</string> + <reference key="NSSuperview" ref="2487133"/> + <bool key="NSEnabled">YES</bool> + <object class="NSButtonCell" key="NSCell" id="284149949"> + <int key="NSCellFlags">-2080244224</int> + <int key="NSCellFlags2">134217728</int> + <string key="NSContents">^IDS_DONE</string> + <reference key="NSSupport" ref="22228631"/> + <reference key="NSControlView" ref="899975008"/> + <int key="NSButtonFlags">-2038021889</int> + <int key="NSButtonFlags2">129</int> + <reference key="NSAlternateImage" ref="22228631"/> + <string key="NSAlternateContents"/> + <string key="NSKeyEquivalent"/> + <int key="NSPeriodicDelay">400</int> + <int key="NSPeriodicInterval">75</int> + </object> </object> - <string key="NSAlternateContents"/> - <string key="NSKeyEquivalent"/> - <int key="NSPeriodicDelay">400</int> - <int key="NSPeriodicInterval">75</int> </object> - </object> - <object class="NSButton" id="882966747"> - <reference key="NSNextResponder" ref="1006"/> - <int key="NSvFlags">292</int> - <string key="NSFrame">{{73, 5}, {96, 25}}</string> + <string key="NSFrame">{{446, 0}, {87, 51}}</string> <reference key="NSSuperview" ref="1006"/> - <bool key="NSEnabled">YES</bool> - <object class="NSButtonCell" key="NSCell" id="1032008525"> - <int key="NSCellFlags">-2080244224</int> - <int key="NSCellFlags2">134217728</int> - <string key="NSContents">^IDS_EXCEPTIONS_PAGE_VIEW_REMOVE_ALL_BUTTON</string> - <reference key="NSSupport" ref="22228631"/> - <reference key="NSControlView" ref="882966747"/> - <int key="NSButtonFlags">-2038152961</int> - <int key="NSButtonFlags2">163</int> - <string key="NSAlternateContents"/> - <string key="NSKeyEquivalent"/> - <int key="NSPeriodicDelay">400</int> - <int key="NSPeriodicInterval">75</int> - </object> + <string key="NSClassName">GTMWidthBasedTweaker</string> </object> </object> - <string key="NSFrameSize">{480, 285}</string> + <string key="NSFrameSize">{533, 448}</string> <reference key="NSSuperview"/> </object> <string key="NSScreenRect">{{0, 0}, {1440, 878}}</string> - <string key="NSMinSize">{200, 122}</string> + <string key="NSMinSize">{425, 153}</string> <string key="NSMaxSize">{3.40282e+38, 3.40282e+38}</string> </object> <object class="NSCustomObject" id="792052397"> <string key="NSClassName">ChromeUILocalizer</string> </object> + <object class="NSCustomObject" id="985169067"> + <string key="NSClassName">GTMUILocalizerAndLayoutTweaker</string> + </object> </object> <object class="IBObjectContainer" key="IBDocument.Objects"> <object class="NSMutableArray" key="connectionRecords"> @@ -386,30 +424,6 @@ </object> <object class="IBConnectionRecord"> <object class="IBOutletConnection" key="connection"> - <string key="label">addButton_</string> - <reference key="source" ref="1001"/> - <reference key="destination" ref="232729973"/> - </object> - <int key="connectionID">22</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">removeButton_</string> - <reference key="source" ref="1001"/> - <reference key="destination" ref="297568762"/> - </object> - <int key="connectionID">23</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> - <string key="label">removeAllButton_</string> - <reference key="source" ref="1001"/> - <reference key="destination" ref="882966747"/> - </object> - <int key="connectionID">24</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> <string key="label">tableView_</string> <reference key="source" ref="1001"/> <reference key="destination" ref="178750169"/> @@ -434,27 +448,91 @@ </object> <object class="IBConnectionRecord"> <object class="IBActionConnection" key="connection"> + <string key="label">closeSheet:</string> + <reference key="source" ref="1001"/> + <reference key="destination" ref="899975008"/> + </object> + <int key="connectionID">55</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">removeAllExceptions:</string> + <reference key="source" ref="1001"/> + <reference key="destination" ref="189525473"/> + </object> + <int key="connectionID">56</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> <string key="label">addException:</string> <reference key="source" ref="1001"/> - <reference key="destination" ref="232729973"/> + <reference key="destination" ref="947861542"/> </object> - <int key="connectionID">28</int> + <int key="connectionID">57</int> </object> <object class="IBConnectionRecord"> <object class="IBActionConnection" key="connection"> <string key="label">removeException:</string> <reference key="source" ref="1001"/> - <reference key="destination" ref="297568762"/> + <reference key="destination" ref="392278592"/> </object> - <int key="connectionID">29</int> + <int key="connectionID">58</int> </object> <object class="IBConnectionRecord"> - <object class="IBActionConnection" key="connection"> - <string key="label">removeAllExceptions:</string> + <object class="IBOutletConnection" key="connection"> + <string key="label">addButton_</string> + <reference key="source" ref="1001"/> + <reference key="destination" ref="947861542"/> + </object> + <int key="connectionID">59</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">removeButton_</string> + <reference key="source" ref="1001"/> + <reference key="destination" ref="392278592"/> + </object> + <int key="connectionID">61</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">removeAllButton_</string> + <reference key="source" ref="1001"/> + <reference key="destination" ref="189525473"/> + </object> + <int key="connectionID">62</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">initialFirstResponder</string> + <reference key="source" ref="1005"/> + <reference key="destination" ref="899975008"/> + </object> + <int key="connectionID">63</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">localizer_</string> + <reference key="source" ref="985169067"/> + <reference key="destination" ref="792052397"/> + </object> + <int key="connectionID">65</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">uiObject_</string> + <reference key="source" ref="985169067"/> + <reference key="destination" ref="1005"/> + </object> + <int key="connectionID">66</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">doneButton_</string> <reference key="source" ref="1001"/> - <reference key="destination" ref="882966747"/> + <reference key="destination" ref="899975008"/> </object> - <int key="connectionID">30</int> + <int key="connectionID">67</int> </object> </object> <object class="IBMutableOrderedSet" key="objectRecords"> @@ -501,9 +579,8 @@ <object class="NSMutableArray" key="children"> <bool key="EncodedWithXMLCoder">YES</bool> <reference ref="832680793"/> - <reference ref="232729973"/> - <reference ref="297568762"/> - <reference ref="882966747"/> + <reference ref="864465341"/> + <reference ref="2487133"/> </object> <reference key="parent" ref="1005"/> </object> @@ -568,74 +645,113 @@ <reference key="parent" ref="20203331"/> </object> <object class="IBObjectRecord"> - <int key="objectID">14</int> - <reference key="object" ref="232729973"/> + <int key="objectID">20</int> + <reference key="object" ref="792052397"/> + <reference key="parent" ref="13599172"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">31</int> + <reference key="object" ref="515496406"/> <object class="NSMutableArray" key="children"> <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="723955339"/> + <reference ref="1034662954"/> </object> - <reference key="parent" ref="1006"/> + <reference key="parent" ref="332085935"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">32</int> + <reference key="object" ref="1034662954"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="954294582"/> + </object> + <reference key="parent" ref="515496406"/> </object> <object class="IBObjectRecord"> - <int key="objectID">15</int> - <reference key="object" ref="723955339"/> - <reference key="parent" ref="232729973"/> + <int key="objectID">33</int> + <reference key="object" ref="954294582"/> + <reference key="parent" ref="1034662954"/> </object> <object class="IBObjectRecord"> - <int key="objectID">16</int> - <reference key="object" ref="297568762"/> + <int key="objectID">39</int> + <reference key="object" ref="864465341"/> <object class="NSMutableArray" key="children"> <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="655968889"/> + <reference ref="947861542"/> + <reference ref="392278592"/> + <reference ref="189525473"/> </object> <reference key="parent" ref="1006"/> </object> <object class="IBObjectRecord"> - <int key="objectID">17</int> - <reference key="object" ref="655968889"/> - <reference key="parent" ref="297568762"/> + <int key="objectID">44</int> + <reference key="object" ref="947861542"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="557322662"/> + </object> + <reference key="parent" ref="864465341"/> </object> <object class="IBObjectRecord"> - <int key="objectID">18</int> - <reference key="object" ref="882966747"/> + <int key="objectID">45</int> + <reference key="object" ref="392278592"/> <object class="NSMutableArray" key="children"> <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="1032008525"/> + <reference ref="1025786806"/> </object> - <reference key="parent" ref="1006"/> + <reference key="parent" ref="864465341"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">46</int> + <reference key="object" ref="189525473"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="1002841272"/> + </object> + <reference key="parent" ref="864465341"/> </object> <object class="IBObjectRecord"> - <int key="objectID">19</int> - <reference key="object" ref="1032008525"/> - <reference key="parent" ref="882966747"/> + <int key="objectID">47</int> + <reference key="object" ref="1002841272"/> + <reference key="parent" ref="189525473"/> </object> <object class="IBObjectRecord"> - <int key="objectID">20</int> - <reference key="object" ref="792052397"/> - <reference key="parent" ref="13599172"/> + <int key="objectID">48</int> + <reference key="object" ref="1025786806"/> + <reference key="parent" ref="392278592"/> </object> <object class="IBObjectRecord"> - <int key="objectID">31</int> - <reference key="object" ref="515496406"/> + <int key="objectID">49</int> + <reference key="object" ref="557322662"/> + <reference key="parent" ref="947861542"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">50</int> + <reference key="object" ref="2487133"/> <object class="NSMutableArray" key="children"> <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="1034662954"/> + <reference ref="899975008"/> </object> - <reference key="parent" ref="332085935"/> + <reference key="parent" ref="1006"/> </object> <object class="IBObjectRecord"> - <int key="objectID">32</int> - <reference key="object" ref="1034662954"/> + <int key="objectID">53</int> + <reference key="object" ref="899975008"/> <object class="NSMutableArray" key="children"> <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="954294582"/> + <reference ref="284149949"/> </object> - <reference key="parent" ref="515496406"/> + <reference key="parent" ref="2487133"/> </object> <object class="IBObjectRecord"> - <int key="objectID">33</int> - <reference key="object" ref="954294582"/> - <reference key="parent" ref="1034662954"/> + <int key="objectID">54</int> + <reference key="object" ref="284149949"/> + <reference key="parent" ref="899975008"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">64</int> + <reference key="object" ref="985169067"/> + <reference key="parent" ref="13599172"/> </object> </object> </object> @@ -648,6 +764,7 @@ <string>-3.IBPluginDependency</string> <string>1.IBEditorWindowLastContentRect</string> <string>1.IBPluginDependency</string> + <string>1.IBViewEditorWindowController.showingLayoutRectangles</string> <string>1.IBWindowTemplateEditedContentRect</string> <string>1.NSWindowTemplate.visibleAtLaunch</string> <string>1.WindowOrigin</string> @@ -657,20 +774,23 @@ <string>10.IBPluginDependency</string> <string>11.IBPluginDependency</string> <string>13.IBPluginDependency</string> - <string>14.IBPluginDependency</string> - <string>15.IBPluginDependency</string> - <string>16.IBPluginDependency</string> - <string>17.IBPluginDependency</string> - <string>18.IBPluginDependency</string> - <string>19.IBPluginDependency</string> <string>2.IBPluginDependency</string> <string>20.IBPluginDependency</string> <string>31.IBPluginDependency</string> <string>32.IBEditorWindowLastContentRect</string> <string>32.IBPluginDependency</string> <string>33.IBPluginDependency</string> + <string>44.IBPluginDependency</string> + <string>45.IBPluginDependency</string> + <string>46.IBPluginDependency</string> + <string>47.IBPluginDependency</string> + <string>48.IBPluginDependency</string> + <string>49.IBPluginDependency</string> <string>5.IBPluginDependency</string> + <string>53.IBPluginDependency</string> + <string>54.IBPluginDependency</string> <string>6.IBPluginDependency</string> + <string>64.IBPluginDependency</string> <string>7.IBPluginDependency</string> <string>8.IBPluginDependency</string> <string>9.IBPluginDependency</string> @@ -680,19 +800,24 @@ <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>{{128, 406}, {480, 285}}</string> + <string>{{507, 468}, {533, 448}}</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>{{128, 406}, {480, 285}}</string> - <integer value="1"/> + <boolean value="YES" id="5"/> + <string>{{507, 468}, {533, 448}}</string> + <boolean value="NO"/> <string>{196, 240}</string> <string>{{357, 418}, {480, 270}}</string> - <boolean value="YES"/> - <string>{200, 100}</string> + <reference ref="5"/> + <string>{425, 131}</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>{{13, 491}, {480, 20}}</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> @@ -700,7 +825,6 @@ <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>{{13, 491}, {480, 20}}</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> @@ -730,7 +854,7 @@ </object> </object> <nil key="sourceID"/> - <int key="maxID">33</int> + <int key="maxID">67</int> </object> <object class="IBClassDescriber" key="IBDocument.Classes"> <object class="NSMutableArray" key="referencedPartialClassDescriptions"> @@ -752,6 +876,7 @@ <bool key="EncodedWithXMLCoder">YES</bool> <string>addException:</string> <string>cancel:</string> + <string>closeSheet:</string> <string>removeAllExceptions:</string> <string>removeException:</string> </object> @@ -761,6 +886,7 @@ <string>id</string> <string>id</string> <string>id</string> + <string>id</string> </object> </object> <object class="NSMutableDictionary" key="outlets"> @@ -768,6 +894,7 @@ <object class="NSMutableArray" key="dict.sortedKeys"> <bool key="EncodedWithXMLCoder">YES</bool> <string>addButton_</string> + <string>doneButton_</string> <string>removeAllButton_</string> <string>removeButton_</string> <string>tableView_</string> @@ -777,6 +904,7 @@ <string>NSButton</string> <string>NSButton</string> <string>NSButton</string> + <string>NSButton</string> <string>NSTableView</string> </object> </object> @@ -809,6 +937,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="242892745"> + <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="242892745"/> + </object> + <object class="IBPartialClassDescription"> <string key="className">NSMenuItem</string> <object class="IBClassDescriptionSource" key="sourceIdentifier"> <string key="majorKey">IBProjectSource</string> @@ -819,6 +990,13 @@ <string key="className">NSObject</string> <object class="IBClassDescriptionSource" key="sourceIdentifier"> <string key="majorKey">IBProjectSource</string> + <string key="minorKey">../third_party/GTM/Foundation/GTMNSObject+KeyValueObserving.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBProjectSource</string> <string key="minorKey">browser/cocoa/status_bubble_mac.h</string> </object> </object> diff --git a/chrome/app/nibs/GeolocationExceptionsWindow.xib b/chrome/app/nibs/GeolocationExceptionsWindow.xib index ed6cea4..f3c57aa 100644 --- a/chrome/app/nibs/GeolocationExceptionsWindow.xib +++ b/chrome/app/nibs/GeolocationExceptionsWindow.xib @@ -3,12 +3,12 @@ <data> <int key="IBDocument.SystemTarget">1050</int> <string key="IBDocument.SystemVersion">9L31a</string> - <string key="IBDocument.InterfaceBuilderVersion">677</string> + <string key="IBDocument.InterfaceBuilderVersion">680</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="2"/> + <integer value="1"/> </object> <object class="NSArray" key="IBDocument.PluginDependencies"> <bool key="EncodedWithXMLCoder">YES</bool> @@ -37,7 +37,7 @@ <object class="NSWindowTemplate" id="1005"> <int key="NSWindowStyleMask">15</int> <int key="NSWindowBacking">2</int> - <string key="NSWindowRect">{{477, 301}, {480, 285}}</string> + <string key="NSWindowRect">{{477, 202}, {474, 384}}</string> <int key="NSWTFlags">536870912</int> <string key="NSWindowTitle">^IDS_GEOLOCATION_EXCEPTION_TITLE</string> <string key="NSWindowClass">NSWindow</string> @@ -62,13 +62,13 @@ <object class="NSTableView" id="178750169"> <reference key="NSNextResponder" ref="854753160"/> <int key="NSvFlags">256</int> - <string key="NSFrameSize">{480, 233}</string> + <string key="NSFrameSize">{432, 287}</string> <reference key="NSSuperview" ref="854753160"/> <bool key="NSEnabled">YES</bool> <object class="NSTableHeaderView" key="NSHeaderView" id="1052514209"> <reference key="NSNextResponder" ref="522115304"/> <int key="NSvFlags">256</int> - <string key="NSFrameSize">{480, 17}</string> + <string key="NSFrameSize">{432, 17}</string> <reference key="NSSuperview" ref="522115304"/> <reference key="NSTableView" ref="178750169"/> </object> @@ -82,7 +82,7 @@ <bool key="EncodedWithXMLCoder">YES</bool> <object class="NSTableColumn" id="20203331"> <string key="NSIdentifier">hostname</string> - <double key="NSWidth">3.020000e+02</double> + <double key="NSWidth">2.750000e+02</double> <double key="NSMinWidth">4.000000e+01</double> <double key="NSMaxWidth">1.000000e+03</double> <object class="NSTableHeaderCell" key="NSHeaderCell"> @@ -141,7 +141,7 @@ </object> <object class="NSTableColumn" id="332085935"> <string key="NSIdentifier">action</string> - <double key="NSWidth">1.720000e+02</double> + <double key="NSWidth">1.510000e+02</double> <double key="NSMinWidth">4.000000e+01</double> <double key="NSMaxWidth">1.000000e+03</double> <object class="NSTableHeaderCell" key="NSHeaderCell"> @@ -195,7 +195,7 @@ <bool key="NSAllowsTypeSelect">YES</bool> </object> </object> - <string key="NSFrame">{{1, 17}, {480, 233}}</string> + <string key="NSFrame">{{1, 17}, {432, 287}}</string> <reference key="NSSuperview" ref="832680793"/> <reference key="NSNextKeyView" ref="178750169"/> <reference key="NSDocView" ref="178750169"/> @@ -205,22 +205,21 @@ <object class="NSScroller" id="984908608"> <reference key="NSNextResponder" ref="832680793"/> <int key="NSvFlags">-2147483392</int> - <string key="NSFrame">{{466, 17}, {15, 218}}</string> + <string key="NSFrame">{{509, 17}, {15, 270}}</string> <reference key="NSSuperview" ref="832680793"/> <reference key="NSTarget" ref="832680793"/> <string key="NSAction">_doScroller:</string> - <double key="NSCurValue">1.000000e+00</double> <double key="NSPercent">9.356223e-01</double> </object> <object class="NSScroller" id="689783017"> <reference key="NSNextResponder" ref="832680793"/> <int key="NSvFlags">-2147483392</int> - <string key="NSFrame">{{1, 235}, {465, 15}}</string> + <string key="NSFrame">{{1, 287}, {508, 15}}</string> <reference key="NSSuperview" ref="832680793"/> <int key="NSsFlags">1</int> <reference key="NSTarget" ref="832680793"/> <string key="NSAction">_doScroller:</string> - <double key="NSPercent">9.979210e-01</double> + <double key="NSPercent">9.980916e-01</double> </object> <object class="NSClipView" id="522115304"> <reference key="NSNextResponder" ref="832680793"/> @@ -229,7 +228,7 @@ <bool key="EncodedWithXMLCoder">YES</bool> <reference ref="1052514209"/> </object> - <string key="NSFrame">{{1, 0}, {480, 17}}</string> + <string key="NSFrame">{{1, 0}, {432, 17}}</string> <reference key="NSSuperview" ref="832680793"/> <reference key="NSNextKeyView" ref="1052514209"/> <reference key="NSDocView" ref="1052514209"/> @@ -238,7 +237,7 @@ </object> <reference ref="274818157"/> </object> - <string key="NSFrame">{{-1, 35}, {482, 251}}</string> + <string key="NSFrame">{{20, 59}, {434, 305}}</string> <reference key="NSSuperview" ref="1006"/> <reference key="NSNextKeyView" ref="854753160"/> <int key="NSsFlags">562</int> @@ -249,52 +248,91 @@ <reference key="NSCornerView" ref="274818157"/> <bytes key="NSScrollAmts">QSAAAEEgAABBmAAAQZgAAA</bytes> </object> - <object class="NSButton" id="297568762"> + <object class="NSCustomView" id="351759406"> <reference key="NSNextResponder" ref="1006"/> <int key="NSvFlags">292</int> - <string key="NSFrame">{{7, 5}, {25, 25}}</string> - <reference key="NSSuperview" ref="1006"/> - <bool key="NSEnabled">YES</bool> - <object class="NSButtonCell" key="NSCell" id="655968889"> - <int key="NSCellFlags">-2080244224</int> - <int key="NSCellFlags2">134217728</int> - <string key="NSContents"/> - <reference key="NSSupport" ref="22228631"/> - <reference key="NSControlView" ref="297568762"/> - <int key="NSButtonFlags">-2033958657</int> - <int key="NSButtonFlags2">163</int> - <object class="NSCustomResource" key="NSNormalImage"> - <string key="NSClassName">NSImage</string> - <string key="NSResourceName">NSRemoveTemplate</string> + <object class="NSMutableArray" key="NSSubviews"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSButton" id="882966747"> + <reference key="NSNextResponder" ref="351759406"/> + <int key="NSvFlags">292</int> + <string key="NSFrame">{{106, 12}, {96, 32}}</string> + <reference key="NSSuperview" ref="351759406"/> + <bool key="NSEnabled">YES</bool> + <object class="NSButtonCell" key="NSCell" id="1032008525"> + <int key="NSCellFlags">-2080244224</int> + <int key="NSCellFlags2">134217728</int> + <string key="NSContents">^IDS_EXCEPTIONS_REMOVEALL_BUTTON</string> + <reference key="NSSupport" ref="22228631"/> + <reference key="NSControlView" ref="882966747"/> + <int key="NSButtonFlags">-2038021889</int> + <int key="NSButtonFlags2">129</int> + <reference key="NSAlternateImage" ref="22228631"/> + <string key="NSAlternateContents"/> + <string key="NSKeyEquivalent"/> + <int key="NSPeriodicDelay">400</int> + <int key="NSPeriodicInterval">75</int> + </object> + </object> + <object class="NSButton" id="297568762"> + <reference key="NSNextResponder" ref="351759406"/> + <int key="NSvFlags">292</int> + <string key="NSFrame">{{14, 12}, {92, 32}}</string> + <reference key="NSSuperview" ref="351759406"/> + <bool key="NSEnabled">YES</bool> + <object class="NSButtonCell" key="NSCell" id="655968889"> + <int key="NSCellFlags">-2080244224</int> + <int key="NSCellFlags2">134217728</int> + <string key="NSContents">^IDS_EXCEPTIONS_REMOVE_BUTTON</string> + <reference key="NSSupport" ref="22228631"/> + <reference key="NSControlView" ref="297568762"/> + <int key="NSButtonFlags">-2038021889</int> + <int key="NSButtonFlags2">129</int> + <reference key="NSAlternateImage" ref="22228631"/> + <string key="NSAlternateContents"/> + <string key="NSKeyEquivalent"/> + <int key="NSPeriodicDelay">400</int> + <int key="NSPeriodicInterval">75</int> + </object> </object> - <string key="NSAlternateContents"/> - <string key="NSKeyEquivalent"/> - <int key="NSPeriodicDelay">400</int> - <int key="NSPeriodicInterval">75</int> </object> + <string key="NSFrameSize">{202, 60}</string> + <reference key="NSSuperview" ref="1006"/> + <string key="NSClassName">GTMWidthBasedTweaker</string> </object> - <object class="NSButton" id="882966747"> + <object class="NSCustomView" id="823075211"> <reference key="NSNextResponder" ref="1006"/> - <int key="NSvFlags">292</int> - <string key="NSFrame">{{40, 5}, {96, 25}}</string> - <reference key="NSSuperview" ref="1006"/> - <bool key="NSEnabled">YES</bool> - <object class="NSButtonCell" key="NSCell" id="1032008525"> - <int key="NSCellFlags">-2080244224</int> - <int key="NSCellFlags2">134217728</int> - <string key="NSContents">^IDS_EXCEPTIONS_REMOVEALL_BUTTON</string> - <reference key="NSSupport" ref="22228631"/> - <reference key="NSControlView" ref="882966747"/> - <int key="NSButtonFlags">-2038152961</int> - <int key="NSButtonFlags2">163</int> - <string key="NSAlternateContents"/> - <string key="NSKeyEquivalent"/> - <int key="NSPeriodicDelay">400</int> - <int key="NSPeriodicInterval">75</int> + <int key="NSvFlags">289</int> + <object class="NSMutableArray" key="NSSubviews"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSButton" id="736922088"> + <reference key="NSNextResponder" ref="823075211"/> + <int key="NSvFlags">289</int> + <string key="NSFrame">{{0, 12}, {96, 32}}</string> + <reference key="NSSuperview" ref="823075211"/> + <bool key="NSEnabled">YES</bool> + <object class="NSButtonCell" key="NSCell" id="582003056"> + <int key="NSCellFlags">-2080244224</int> + <int key="NSCellFlags2">134217728</int> + <string key="NSContents">^IDS_DONE</string> + <reference key="NSSupport" ref="22228631"/> + <reference key="NSControlView" ref="736922088"/> + <int key="NSButtonFlags">-2038021889</int> + <int key="NSButtonFlags2">129</int> + <reference key="NSAlternateImage" ref="22228631"/> + <string key="NSAlternateContents"/> + <string key="NSKeyEquivalent"/> + <int key="NSPeriodicDelay">400</int> + <int key="NSPeriodicInterval">75</int> + </object> + </object> </object> + <string key="NSFrame">{{364, 0}, {110, 60}}</string> + <reference key="NSSuperview" ref="1006"/> + <string key="NSClassName">GTMWidthBasedTweaker</string> </object> </object> - <string key="NSFrameSize">{480, 285}</string> + <string key="NSFrameSize">{474, 384}</string> <reference key="NSSuperview"/> </object> <string key="NSScreenRect">{{0, 0}, {1440, 878}}</string> @@ -304,6 +342,9 @@ <object class="NSCustomObject" id="792052397"> <string key="NSClassName">ChromeUILocalizer</string> </object> + <object class="NSCustomObject" id="851102986"> + <string key="NSClassName">GTMUILocalizerAndLayoutTweaker</string> + </object> </object> <object class="IBObjectContainer" key="IBDocument.Objects"> <object class="NSMutableArray" key="connectionRecords"> @@ -388,6 +429,38 @@ </object> <int key="connectionID">37</int> </object> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">closeSheet:</string> + <reference key="source" ref="1001"/> + <reference key="destination" ref="736922088"/> + </object> + <int key="connectionID">41</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">localizer_</string> + <reference key="source" ref="851102986"/> + <reference key="destination" ref="792052397"/> + </object> + <int key="connectionID">45</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">uiObject_</string> + <reference key="source" ref="851102986"/> + <reference key="destination" ref="1005"/> + </object> + <int key="connectionID">46</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">doneButton_</string> + <reference key="source" ref="1001"/> + <reference key="destination" ref="736922088"/> + </object> + <int key="connectionID">47</int> + </object> </object> <object class="IBMutableOrderedSet" key="objectRecords"> <object class="NSArray" key="orderedObjects"> @@ -432,9 +505,9 @@ <reference key="object" ref="1006"/> <object class="NSMutableArray" key="children"> <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="351759406"/> + <reference ref="823075211"/> <reference ref="832680793"/> - <reference ref="297568762"/> - <reference ref="882966747"/> </object> <reference key="parent" ref="1005"/> </object> @@ -499,13 +572,33 @@ <reference key="parent" ref="20203331"/> </object> <object class="IBObjectRecord"> + <int key="objectID">20</int> + <reference key="object" ref="792052397"/> + <reference key="parent" ref="13599172"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">38</int> + <reference key="object" ref="839692131"/> + <reference key="parent" ref="332085935"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">42</int> + <reference key="object" ref="351759406"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="297568762"/> + <reference ref="882966747"/> + </object> + <reference key="parent" ref="1006"/> + </object> + <object class="IBObjectRecord"> <int key="objectID">16</int> <reference key="object" ref="297568762"/> <object class="NSMutableArray" key="children"> <bool key="EncodedWithXMLCoder">YES</bool> <reference ref="655968889"/> </object> - <reference key="parent" ref="1006"/> + <reference key="parent" ref="351759406"/> </object> <object class="IBObjectRecord"> <int key="objectID">17</int> @@ -513,13 +606,36 @@ <reference key="parent" ref="297568762"/> </object> <object class="IBObjectRecord"> + <int key="objectID">43</int> + <reference key="object" ref="823075211"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="736922088"/> + </object> + <reference key="parent" ref="1006"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">39</int> + <reference key="object" ref="736922088"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="582003056"/> + </object> + <reference key="parent" ref="823075211"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">40</int> + <reference key="object" ref="582003056"/> + <reference key="parent" ref="736922088"/> + </object> + <object class="IBObjectRecord"> <int key="objectID">18</int> <reference key="object" ref="882966747"/> <object class="NSMutableArray" key="children"> <bool key="EncodedWithXMLCoder">YES</bool> <reference ref="1032008525"/> </object> - <reference key="parent" ref="1006"/> + <reference key="parent" ref="351759406"/> </object> <object class="IBObjectRecord"> <int key="objectID">19</int> @@ -527,15 +643,10 @@ <reference key="parent" ref="882966747"/> </object> <object class="IBObjectRecord"> - <int key="objectID">20</int> - <reference key="object" ref="792052397"/> + <int key="objectID">44</int> + <reference key="object" ref="851102986"/> <reference key="parent" ref="13599172"/> </object> - <object class="IBObjectRecord"> - <int key="objectID">38</int> - <reference key="object" ref="839692131"/> - <reference key="parent" ref="332085935"/> - </object> </object> </object> <object class="NSMutableDictionary" key="flattenedProperties"> @@ -563,6 +674,9 @@ <string>2.IBPluginDependency</string> <string>20.IBPluginDependency</string> <string>38.IBPluginDependency</string> + <string>39.IBPluginDependency</string> + <string>40.IBPluginDependency</string> + <string>44.IBPluginDependency</string> <string>5.IBPluginDependency</string> <string>6.IBPluginDependency</string> <string>7.IBPluginDependency</string> @@ -574,10 +688,10 @@ <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>{{128, 406}, {480, 285}}</string> + <string>{{125, 434}, {474, 384}}</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>{{128, 406}, {480, 285}}</string> - <integer value="1"/> + <string>{{125, 434}, {474, 384}}</string> + <boolean value="NO"/> <string>{196, 240}</string> <string>{{357, 418}, {480, 270}}</string> <boolean value="YES"/> @@ -597,6 +711,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"> @@ -619,7 +736,7 @@ </object> </object> <nil key="sourceID"/> - <int key="maxID">38</int> + <int key="maxID">47</int> </object> <object class="IBClassDescriber" key="IBDocument.Classes"> <object class="NSMutableArray" key="referencedPartialClassDescriptions"> @@ -656,12 +773,56 @@ </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="917742388"> + <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="917742388"/> + </object> + <object class="IBPartialClassDescription"> <string key="className">GeolocationExceptionsWindowController</string> <string key="superclassName">NSWindowController</string> <object class="NSMutableDictionary" key="actions"> <bool key="EncodedWithXMLCoder">YES</bool> <object class="NSMutableArray" key="dict.sortedKeys"> <bool key="EncodedWithXMLCoder">YES</bool> + <string>closeSheet:</string> <string>removeAllExceptions:</string> <string>removeException:</string> </object> @@ -669,12 +830,14 @@ <bool key="EncodedWithXMLCoder">YES</bool> <string>id</string> <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>doneButton_</string> <string>removeAllButton_</string> <string>removeButton_</string> <string>tableView_</string> @@ -683,6 +846,7 @@ <bool key="EncodedWithXMLCoder">YES</bool> <string>NSButton</string> <string>NSButton</string> + <string>NSButton</string> <string>NSTableView</string> </object> </object> @@ -695,6 +859,13 @@ <string key="className">NSObject</string> <object class="IBClassDescriptionSource" key="sourceIdentifier"> <string key="majorKey">IBProjectSource</string> + <string key="minorKey">../third_party/GTM/Foundation/GTMNSObject+KeyValueObserving.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">NSObject</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBProjectSource</string> <string key="minorKey">browser/cocoa/status_bubble_mac.h</string> </object> </object> diff --git a/chrome/browser/cocoa/content_exceptions_window_controller.h b/chrome/browser/cocoa/content_exceptions_window_controller.h index 91a5b33..1d1bc2a 100644 --- a/chrome/browser/cocoa/content_exceptions_window_controller.h +++ b/chrome/browser/cocoa/content_exceptions_window_controller.h @@ -24,6 +24,7 @@ class UpdatingContentSettingsObserver; IBOutlet NSButton* addButton_; IBOutlet NSButton* removeButton_; IBOutlet NSButton* removeAllButton_; + IBOutlet NSButton* doneButton_; ContentSettingsType settingsType_; HostContentSettingsMap* settingsMap_; // weak @@ -45,14 +46,22 @@ class UpdatingContentSettingsObserver; scoped_ptr<HostContentSettingsMap::PatternSettingPair> newException_; } -// Shows or makes frontmost the content exceptions window for |settingsType|. +// Returns the content exceptions window controller for |settingsType|. // Changes made by the user in the window are persisted in |settingsMap|. -+ (id)showForType:(ContentSettingsType)settingsType - settingsMap:(HostContentSettingsMap*)settingsMap; ++ (id)controllerForType:(ContentSettingsType)settingsType + settingsMap:(HostContentSettingsMap*)settingsMap; + +// Shows the exceptions dialog as a modal sheet attached to |window|. +- (void)attachSheetTo:(NSWindow*)window; + +// Sets the minimum width of the sheet and resizes it if necessary. +- (void)setMinWidth:(CGFloat)minWidth; - (IBAction)addException:(id)sender; - (IBAction)removeException:(id)sender; - (IBAction)removeAllExceptions:(id)sender; +// Closes the sheet and ends the modal loop. +- (IBAction)closeSheet:(id)sender; @end diff --git a/chrome/browser/cocoa/content_exceptions_window_controller.mm b/chrome/browser/cocoa/content_exceptions_window_controller.mm index de51985..0ebcb8e 100644 --- a/chrome/browser/cocoa/content_exceptions_window_controller.mm +++ b/chrome/browser/cocoa/content_exceptions_window_controller.mm @@ -140,14 +140,13 @@ static ContentExceptionsWindowController* @implementation ContentExceptionsWindowController -+ (id)showForType:(ContentSettingsType)settingsType - settingsMap:(HostContentSettingsMap*)settingsMap { ++ (id)controllerForType:(ContentSettingsType)settingsType + settingsMap:(HostContentSettingsMap*)settingsMap { if (!g_exceptionWindows[settingsType]) { g_exceptionWindows[settingsType] = [[ContentExceptionsWindowController alloc] initWithType:settingsType settingsMap:settingsMap]; } - [g_exceptionWindows[settingsType] showWindow:nil]; return g_exceptionWindows[settingsType]; } @@ -179,12 +178,9 @@ static ContentExceptionsWindowController* [[self window] setTitle:GetWindowTitle(settingsType_)]; - // Make sure the button fits its label, but keep it the same height as the - // other two buttons. - [GTMUILocalizerAndLayoutTweaker sizeToFitView:removeAllButton_]; - NSSize size = [removeAllButton_ frame].size; - size.height = NSHeight([addButton_ frame]); - [removeAllButton_ setFrameSize:size]; + CGFloat minWidth = [[addButton_ superview] bounds].size.width + + [[doneButton_ superview] bounds].size.width; + [self setMinWidth:minWidth]; [self adjustEditingButtons]; @@ -203,12 +199,16 @@ static ContentExceptionsWindowController* NSCell* patternCell = [[tableView_ tableColumnWithIdentifier:@"pattern"] dataCell]; [patternCell setFormatter:[[[PatternFormatter alloc] init] autorelease]]; +} - // Give the button bar on the bottom of the window the "iTunes/iChat" look. - [[self window] setAutorecalculatesContentBorderThickness:NO - forEdge:NSMinYEdge]; - [[self window] setContentBorderThickness:kButtonBarHeight - forEdge:NSMinYEdge]; +- (void)setMinWidth:(CGFloat)minWidth { + NSWindow* window = [self window]; + [window setMinSize:NSMakeSize(minWidth, [window minSize].height)]; + if ([window frame].size.width < minWidth) { + NSRect frame = [window frame]; + frame.size.width = minWidth; + [window setFrame:frame display:NO]; + } } - (void)windowWillClose:(NSNotification*)notification { @@ -235,7 +235,7 @@ static ContentExceptionsWindowController* [self removeException:self]; } } else { - [self close]; + [self closeSheet:self]; } } @@ -264,6 +264,21 @@ static ContentExceptionsWindowController* [super keyDown:event]; } +- (void)attachSheetTo:(NSWindow*)window { + [NSApp beginSheet:[self window] + modalForWindow:window + modalDelegate:self + didEndSelector:@selector(sheetDidEnd:returnCode:contextInfo:) + contextInfo:nil]; +} + +- (void)sheetDidEnd:(NSWindow*)sheet + returnCode:(NSInteger)returnCode + contextInfo:(void*)context { + [sheet close]; + [sheet orderOut:self]; +} + - (IBAction)addException:(id)sender { if (newException_.get()) { // The invariant is that |newException_| is non-NULL exactly if the pattern @@ -310,6 +325,10 @@ static ContentExceptionsWindowController* [self modelDidChange]; } +- (IBAction)closeSheet:(id)sender { + [NSApp endSheet:[self window]]; +} + // Table View Data Source ----------------------------------------------------- - (NSInteger)numberOfRowsInTableView:(NSTableView*)table { diff --git a/chrome/browser/cocoa/content_settings_dialog_controller.h b/chrome/browser/cocoa/content_settings_dialog_controller.h index 5f6127a..187f7f8 100644 --- a/chrome/browser/cocoa/content_settings_dialog_controller.h +++ b/chrome/browser/cocoa/content_settings_dialog_controller.h @@ -35,6 +35,9 @@ class Profile; +(id)showContentSettingsForType:(ContentSettingsType)settingsType profile:(Profile*)profile; +// Closes an exceptions sheet, if one is attached. +- (void)closeExceptionsSheet; + - (IBAction)showCookies:(id)sender; - (IBAction)openFlashPlayerSettings:(id)sender; - (IBAction)openPluginsPage:(id)sender; diff --git a/chrome/browser/cocoa/content_settings_dialog_controller.mm b/chrome/browser/cocoa/content_settings_dialog_controller.mm index 88034ff..fcca282 100644 --- a/chrome/browser/cocoa/content_settings_dialog_controller.mm +++ b/chrome/browser/cocoa/content_settings_dialog_controller.mm @@ -135,6 +135,7 @@ class PrefObserverBridge : public NotificationObserver { [g_instance selectTab:settingsType]; [g_instance showWindow:nil]; + [g_instance closeExceptionsSheet]; return g_instance; } @@ -158,6 +159,13 @@ class PrefObserverBridge : public NotificationObserver { return self; } +- (void)closeExceptionsSheet { + NSWindow* attachedSheet = [[self window] attachedSheet]; + if (attachedSheet) { + [NSApp endSheet:attachedSheet]; + } +} + - (void)awakeFromNib { DCHECK([self window]); DCHECK_EQ(self, [[self window] delegate]); @@ -304,13 +312,15 @@ class PrefObserverBridge : public NotificationObserver { - (IBAction)showGeolocationExceptions:(id)sender { GeolocationContentSettingsMap* settingsMap = profile_->GetGeolocationContentSettingsMap(); - [GeolocationExceptionsWindowController showWindowWithSettingsMap:settingsMap]; + [[GeolocationExceptionsWindowController controllerWithSettingsMap:settingsMap] + attachSheetTo:[self window]]; } - (void)showExceptionsForType:(ContentSettingsType)settingsType { HostContentSettingsMap* settingsMap = profile_->GetHostContentSettingsMap(); - [ContentExceptionsWindowController showForType:settingsType - settingsMap:settingsMap]; + [[ContentExceptionsWindowController controllerForType:settingsType + settingsMap:settingsMap] + attachSheetTo:[self window]]; } - (void)setImagesEnabledIndex:(NSInteger)value { diff --git a/chrome/browser/cocoa/geolocation_exceptions_window_controller.h b/chrome/browser/cocoa/geolocation_exceptions_window_controller.h index 9de67a1..f93b9af 100644 --- a/chrome/browser/cocoa/geolocation_exceptions_window_controller.h +++ b/chrome/browser/cocoa/geolocation_exceptions_window_controller.h @@ -20,6 +20,7 @@ class GeolocationObserverBridge; IBOutlet NSTableView* tableView_; IBOutlet NSButton* removeButton_; IBOutlet NSButton* removeAllButton_; + IBOutlet NSButton* doneButton_; GeolocationContentSettingsMap* settingsMap_; // weak scoped_ptr<GeolocationContentSettingsTableModel> model_; @@ -28,7 +29,13 @@ class GeolocationObserverBridge; // Shows or makes frontmost the geolocation exceptions window. // Changes made by the user in the window are persisted in |settingsMap|. -+ (id)showWindowWithSettingsMap:(GeolocationContentSettingsMap*)settingsMap; ++ (id)controllerWithSettingsMap:(GeolocationContentSettingsMap*)settingsMap; + +// Sets the minimum width of the sheet and resizes it if necessary. +- (void)setMinWidth:(CGFloat)minWidth; + +- (void)attachSheetTo:(NSWindow*)window; +- (IBAction)closeSheet:(id)sender; - (IBAction)removeException:(id)sender; - (IBAction)removeAllExceptions:(id)sender; diff --git a/chrome/browser/cocoa/geolocation_exceptions_window_controller.mm b/chrome/browser/cocoa/geolocation_exceptions_window_controller.mm index 02715bb..7c7bee4 100644 --- a/chrome/browser/cocoa/geolocation_exceptions_window_controller.mm +++ b/chrome/browser/cocoa/geolocation_exceptions_window_controller.mm @@ -57,12 +57,11 @@ GeolocationExceptionsWindowController* g_exceptionWindow = nil; @implementation GeolocationExceptionsWindowController -+ (id)showWindowWithSettingsMap:(GeolocationContentSettingsMap*)settingsMap { ++ (id)controllerWithSettingsMap:(GeolocationContentSettingsMap*)settingsMap { if (!g_exceptionWindow) { g_exceptionWindow = [[GeolocationExceptionsWindowController alloc] initWithSettingsMap:settingsMap]; } - [g_exceptionWindow showWindow:nil]; return g_exceptionWindow; } @@ -89,20 +88,22 @@ GeolocationExceptionsWindowController* g_exceptionWindow = nil; DCHECK_EQ(self, [tableView_ dataSource]); DCHECK_EQ(self, [tableView_ delegate]); - // Make sure the button fits its label, but keep it the same height as the - // other two buttons. - [GTMUILocalizerAndLayoutTweaker sizeToFitView:removeAllButton_]; - NSSize size = [removeAllButton_ frame].size; - size.height = NSHeight([removeButton_ frame]); - [removeAllButton_ setFrameSize:size]; + CGFloat minWidth = [[removeButton_ superview] bounds].size.width + + [[doneButton_ superview] bounds].size.width; + [[self window] setMinSize:NSMakeSize(minWidth, + [[self window] minSize].height)]; [self adjustEditingButtons]; +} - // Give the button bar on the bottom of the window the "iTunes/iChat" look. - [[self window] setAutorecalculatesContentBorderThickness:NO - forEdge:NSMinYEdge]; - [[self window] setContentBorderThickness:kButtonBarHeight - forEdge:NSMinYEdge]; +- (void)setMinWidth:(CGFloat)minWidth { + NSWindow* window = [self window]; + [window setMinSize:NSMakeSize(minWidth, [window minSize].height)]; + if ([window frame].size.width < minWidth) { + NSRect frame = [window frame]; + frame.size.width = minWidth; + [window setFrame:frame display:NO]; + } } - (void)windowWillClose:(NSNotification*)notification { @@ -115,7 +116,7 @@ GeolocationExceptionsWindowController* g_exceptionWindow = nil; // Let esc close the window. - (void)cancel:(id)sender { - [self close]; + [self closeSheet:self]; } - (void)keyDown:(NSEvent*)event { @@ -133,6 +134,25 @@ GeolocationExceptionsWindowController* g_exceptionWindow = nil; [super keyDown:event]; } +- (void)attachSheetTo:(NSWindow*)window { + [NSApp beginSheet:[self window] + modalForWindow:window + modalDelegate:self + didEndSelector:@selector(sheetDidEnd:returnCode:contextInfo:) + contextInfo:nil]; +} + +- (void)sheetDidEnd:(NSWindow*)sheet + returnCode:(NSInteger)returnCode + contextInfo:(void*)context { + [sheet close]; + [sheet orderOut:self]; +} + +- (IBAction)closeSheet:(id)sender { + [NSApp endSheet:[self window]]; +} + - (IBAction)removeException:(id)sender { GeolocationContentSettingsTableModel::Rows rows; [self selectedRows:&rows]; |