diff options
author | asanka@chromium.org <asanka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-01 17:29:17 +0000 |
---|---|---|
committer | asanka@chromium.org <asanka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-01 17:29:17 +0000 |
commit | 6fab1034a3107da93cd23e64ab133ef9b5936d01 (patch) | |
tree | f9bbed251fc487a4054af6b7f0ed8f106e7d1d48 /chrome/app/nibs | |
parent | 8f96cef7e737970b9e16c97de788daaa5fb3181a (diff) | |
download | chromium_src-6fab1034a3107da93cd23e64ab133ef9b5936d01.zip chromium_src-6fab1034a3107da93cd23e64ab133ef9b5936d01.tar.gz chromium_src-6fab1034a3107da93cd23e64ab133ef9b5936d01.tar.bz2 |
[Mac] DownloadShelf should be notified when autoclosing.
If the download shelf is already hidden, then the autoclosing
logic on Mac wouldn't notify the DownloadShelf. If the shelf was
hidden temporarily due to the browser entering fullscreen mode,
then the shelf would be restored on exiting fullscreen mode.
Also fix UMA logging of download shelf closures on Mac and
assorted cleanup.
XIB changes:
* Connect close button to |-handleClose:| instead of |-hide:|.
BUG=222360
TEST=(1) Download something that is marked for opening
automatically (e.g. a browser extension).
(2) Enter fullscreen mode before download completes.
(3) Wait for download to complete.
(4) Exit fullscreen mode. The download shelf should be hidden.
Review URL: https://chromiumcodereview.appspot.com/12995025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191618 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app/nibs')
-rw-r--r-- | chrome/app/nibs/DownloadShelf.xib | 77 |
1 files changed, 21 insertions, 56 deletions
diff --git a/chrome/app/nibs/DownloadShelf.xib b/chrome/app/nibs/DownloadShelf.xib index e354904..639b1965 100644 --- a/chrome/app/nibs/DownloadShelf.xib +++ b/chrome/app/nibs/DownloadShelf.xib @@ -2,10 +2,10 @@ <archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.10"> <data> <int key="IBDocument.SystemTarget">1050</int> - <string key="IBDocument.SystemVersion">12B19</string> + <string key="IBDocument.SystemVersion">12D78</string> <string key="IBDocument.InterfaceBuilderVersion">2549</string> - <string key="IBDocument.AppKitVersion">1187</string> - <string key="IBDocument.HIToolboxVersion">624.00</string> + <string key="IBDocument.AppKitVersion">1187.37</string> + <string key="IBDocument.HIToolboxVersion">626.00</string> <object class="NSMutableDictionary" key="IBDocument.PluginVersions"> <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string> <string key="NS.object.0">2549</string> @@ -181,14 +181,6 @@ <object class="NSMutableArray" key="connectionRecords"> <bool key="EncodedWithXMLCoder">YES</bool> <object class="IBConnectionRecord"> - <object class="IBActionConnection" key="connection"> - <string key="label">hide:</string> - <reference key="source" ref="1001"/> - <reference key="destination" ref="538957441"/> - </object> - <int key="connectionID">6</int> - </object> - <object class="IBConnectionRecord"> <object class="IBOutletConnection" key="connection"> <string key="label">view</string> <reference key="source" ref="1001"/> @@ -221,6 +213,14 @@ <int key="connectionID">40</int> </object> <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">handleClose:</string> + <reference key="source" ref="1001"/> + <reference key="destination" ref="538957441"/> + </object> + <int key="connectionID">42</int> + </object> + <object class="IBConnectionRecord"> <object class="IBOutletConnection" key="connection"> <string key="label">delegate_</string> <reference key="source" ref="1005"/> @@ -409,7 +409,7 @@ <reference key="dict.values" ref="0"/> </object> <nil key="sourceID"/> - <int key="maxID">41</int> + <int key="maxID">42</int> </object> <object class="IBClassDescriber" key="IBDocument.Classes"> <object class="NSMutableArray" key="referencedPartialClassDescriptions"> @@ -418,35 +418,14 @@ <string key="className">AnimatableView</string> <string key="superclassName">BackgroundGradientView</string> <object class="NSMutableDictionary" key="outlets"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>delegate_</string> - <string>resizeDelegate_</string> - </object> - <object class="NSArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>id</string> - <string>id</string> - </object> + <string key="NS.key.0">delegate_</string> + <string key="NS.object.0">id</string> </object> <object class="NSMutableDictionary" key="toOneOutletInfosByName"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>delegate_</string> - <string>resizeDelegate_</string> - </object> - <object class="NSArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="IBToOneOutletInfo"> - <string key="name">delegate_</string> - <string key="candidateClassName">id</string> - </object> - <object class="IBToOneOutletInfo"> - <string key="name">resizeDelegate_</string> - <string key="candidateClassName">id</string> - </object> + <string key="NS.key.0">delegate_</string> + <object class="IBToOneOutletInfo" key="NS.object.0"> + <string key="name">delegate_</string> + <string key="candidateClassName">id</string> </object> </object> <object class="IBClassDescriptionSource" key="sourceIdentifier"> @@ -477,33 +456,26 @@ <bool key="EncodedWithXMLCoder">YES</bool> <object class="NSArray" key="dict.sortedKeys"> <bool key="EncodedWithXMLCoder">YES</bool> - <string>hide:</string> - <string>show:</string> + <string>handleClose:</string> <string>showDownloadsTab:</string> </object> <object class="NSArray" key="dict.values"> <bool key="EncodedWithXMLCoder">YES</bool> <string>id</string> <string>id</string> - <string>id</string> </object> </object> <object class="NSMutableDictionary" key="actionInfosByName"> <bool key="EncodedWithXMLCoder">YES</bool> <object class="NSArray" key="dict.sortedKeys"> <bool key="EncodedWithXMLCoder">YES</bool> - <string>hide:</string> - <string>show:</string> + <string>handleClose:</string> <string>showDownloadsTab:</string> </object> <object class="NSArray" key="dict.values"> <bool key="EncodedWithXMLCoder">YES</bool> <object class="IBActionInfo"> - <string key="name">hide:</string> - <string key="candidateClassName">id</string> - </object> - <object class="IBActionInfo"> - <string key="name">show:</string> + <string key="name">handleClose:</string> <string key="candidateClassName">id</string> </object> <object class="IBActionInfo"> @@ -518,13 +490,11 @@ <bool key="EncodedWithXMLCoder">YES</bool> <string>hoverCloseButton_</string> <string>itemContainerView_</string> - <string>resizeDelegate_</string> </object> <object class="NSArray" key="dict.values"> <bool key="EncodedWithXMLCoder">YES</bool> <string>HoverButton</string> <string>NSView</string> - <string>id</string> </object> </object> <object class="NSMutableDictionary" key="toOneOutletInfosByName"> @@ -533,7 +503,6 @@ <bool key="EncodedWithXMLCoder">YES</bool> <string>hoverCloseButton_</string> <string>itemContainerView_</string> - <string>resizeDelegate_</string> </object> <object class="NSArray" key="dict.values"> <bool key="EncodedWithXMLCoder">YES</bool> @@ -545,10 +514,6 @@ <string key="name">itemContainerView_</string> <string key="candidateClassName">NSView</string> </object> - <object class="IBToOneOutletInfo"> - <string key="name">resizeDelegate_</string> - <string key="candidateClassName">id</string> - </object> </object> </object> <object class="IBClassDescriptionSource" key="sourceIdentifier"> |