Commit a7746302 authored by koz@chromium.org's avatar koz@chromium.org

Make the shadow for the fullscreen exit bubble for mac more prominent.

xib changes: Add padding to the sides of the view to accommodate rendering a thick shadow around the edges of the fullscreen exit bubble.

BUG=100879

Review URL: http://codereview.chromium.org/8425007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109991 0039d316-1c4b-4281-b951-d872f2087c98
parent 488b4204
...@@ -2,17 +2,17 @@ ...@@ -2,17 +2,17 @@
<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.10"> <archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.10">
<data> <data>
<int key="IBDocument.SystemTarget">1050</int> <int key="IBDocument.SystemTarget">1050</int>
<string key="IBDocument.SystemVersion">10J567</string> <string key="IBDocument.SystemVersion">10K549</string>
<string key="IBDocument.InterfaceBuilderVersion">851</string> <string key="IBDocument.InterfaceBuilderVersion">788</string>
<string key="IBDocument.AppKitVersion">1038.35</string> <string key="IBDocument.AppKitVersion">1038.36</string>
<string key="IBDocument.HIToolboxVersion">462.00</string> <string key="IBDocument.HIToolboxVersion">461.00</string>
<object class="NSMutableDictionary" key="IBDocument.PluginVersions"> <object class="NSMutableDictionary" key="IBDocument.PluginVersions">
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string> <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="NS.object.0">851</string> <string key="NS.object.0">788</string>
</object> </object>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs"> <object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
<integer value="20"/> <integer value="2"/>
</object> </object>
<object class="NSArray" key="IBDocument.PluginDependencies"> <object class="NSArray" key="IBDocument.PluginDependencies">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
<object class="NSWindowTemplate" id="1005"> <object class="NSWindowTemplate" id="1005">
<int key="NSWindowStyleMask">15</int> <int key="NSWindowStyleMask">15</int>
<int key="NSWindowBacking">2</int> <int key="NSWindowBacking">2</int>
<string key="NSWindowRect">{{427, 647}, {499, 39}}</string> <string key="NSWindowRect">{{427, 577}, {629, 109}}</string>
<int key="NSWTFlags">536873984</int> <int key="NSWTFlags">536873984</int>
<string key="NSWindowTitle">Window</string> <string key="NSWindowTitle">Window</string>
<string key="NSWindowClass">InfoBubbleWindow</string> <string key="NSWindowClass">InfoBubbleWindow</string>
...@@ -63,138 +63,148 @@ ...@@ -63,138 +63,148 @@
<int key="NSvFlags">274</int> <int key="NSvFlags">274</int>
<object class="NSMutableArray" key="NSSubviews"> <object class="NSMutableArray" key="NSSubviews">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSCustomView" id="1031271207"> <object class="NSCustomView" id="619977">
<reference key="NSNextResponder" ref="124264346"/> <reference key="NSNextResponder" ref="124264346"/>
<int key="NSvFlags">265</int> <int key="NSvFlags">274</int>
<object class="NSMutableArray" key="NSSubviews"> <object class="NSMutableArray" key="NSSubviews">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSButton" id="436635720"> <object class="NSCustomView" id="1031271207">
<reference key="NSNextResponder" ref="1031271207"/> <reference key="NSNextResponder" ref="619977"/>
<int key="NSvFlags">268</int> <int key="NSvFlags">265</int>
<string key="NSFrame">{{27, 1}, {125, 32}}</string> <object class="NSMutableArray" key="NSSubviews">
<reference key="NSSuperview" ref="1031271207"/> <bool key="EncodedWithXMLCoder">YES</bool>
<bool key="NSEnabled">YES</bool> <object class="NSButton" id="436635720">
<object class="NSButtonCell" key="NSCell" id="39119561"> <reference key="NSNextResponder" ref="1031271207"/>
<int key="NSCellFlags">67239424</int> <int key="NSvFlags">268</int>
<int key="NSCellFlags2">134217728</int> <string key="NSFrame">{{27, 1}, {125, 32}}</string>
<string key="NSContents">^IDS_FULLSCREEN_EXIT_FULLSCREEN</string> <reference key="NSSuperview" ref="1031271207"/>
<object class="NSFont" key="NSSupport" id="199487396"> <bool key="NSEnabled">YES</bool>
<string key="NSName">LucidaGrande</string> <object class="NSButtonCell" key="NSCell" id="39119561">
<double key="NSSize">13</double> <int key="NSCellFlags">67239424</int>
<int key="NSfFlags">1044</int> <int key="NSCellFlags2">134217728</int>
<string key="NSContents">^IDS_FULLSCREEN_EXIT_FULLSCREEN</string>
<object class="NSFont" key="NSSupport" id="199487396">
<string key="NSName">LucidaGrande</string>
<double key="NSSize">13</double>
<int key="NSfFlags">1044</int>
</object>
<reference key="NSControlView" ref="436635720"/>
<int key="NSButtonFlags">-2038284033</int>
<int key="NSButtonFlags2">129</int>
<string key="NSAlternateContents"/>
<string key="NSKeyEquivalent"/>
<int key="NSPeriodicDelay">200</int>
<int key="NSPeriodicInterval">25</int>
</object>
</object>
<object class="NSButton" id="292228158">
<reference key="NSNextResponder" ref="1031271207"/>
<int key="NSvFlags">268</int>
<string key="NSFrame">{{152, 1}, {75, 32}}</string>
<reference key="NSSuperview" ref="1031271207"/>
<bool key="NSEnabled">YES</bool>
<object class="NSButtonCell" key="NSCell" id="1040089538">
<int key="NSCellFlags">67239424</int>
<int key="NSCellFlags2">134217728</int>
<string key="NSContents">^IDS_FULLSCREEN_ALLOW</string>
<reference key="NSSupport" ref="199487396"/>
<reference key="NSControlView" ref="292228158"/>
<int key="NSButtonFlags">-2033303297</int>
<int key="NSButtonFlags2">129</int>
<string key="NSAlternateContents"/>
<string key="NSKeyEquivalent"/>
<int key="NSPeriodicDelay">200</int>
<int key="NSPeriodicInterval">25</int>
</object>
</object> </object>
<reference key="NSControlView" ref="436635720"/>
<int key="NSButtonFlags">-2038284033</int>
<int key="NSButtonFlags2">129</int>
<string key="NSAlternateContents"/>
<string key="NSKeyEquivalent"/>
<int key="NSPeriodicDelay">200</int>
<int key="NSPeriodicInterval">25</int>
</object>
</object>
<object class="NSButton" id="292228158">
<reference key="NSNextResponder" ref="1031271207"/>
<int key="NSvFlags">268</int>
<string key="NSFrame">{{152, 1}, {75, 32}}</string>
<reference key="NSSuperview" ref="1031271207"/>
<bool key="NSEnabled">YES</bool>
<object class="NSButtonCell" key="NSCell" id="1040089538">
<int key="NSCellFlags">67239424</int>
<int key="NSCellFlags2">134217728</int>
<string key="NSContents">^IDS_FULLSCREEN_ALLOW</string>
<reference key="NSSupport" ref="199487396"/>
<reference key="NSControlView" ref="292228158"/>
<int key="NSButtonFlags">-2033303297</int>
<int key="NSButtonFlags2">129</int>
<string key="NSAlternateContents"/>
<string key="NSKeyEquivalent"/>
<int key="NSPeriodicDelay">200</int>
<int key="NSPeriodicInterval">25</int>
</object>
</object>
</object>
<string key="NSFrame">{{265, 0}, {234, 39}}</string>
<reference key="NSSuperview" ref="124264346"/>
<string key="NSClassName">GTMWidthBasedTweaker</string>
</object>
<object class="NSTextField" id="661293467">
<reference key="NSNextResponder" ref="124264346"/>
<int key="NSvFlags">-2147483383</int>
<string key="NSFrame">{{395, 11}, {94, 17}}</string>
<reference key="NSSuperview" ref="124264346"/>
<bool key="NSEnabled">YES</bool>
<object class="NSTextFieldCell" key="NSCell" id="809008073">
<int key="NSCellFlags">-2079195584</int>
<int key="NSCellFlags2">71304192</int>
<string key="NSContents">Exit fullscreen</string>
<reference key="NSSupport" ref="199487396"/>
<reference key="NSControlView" ref="661293467"/>
<object class="NSColor" key="NSBackgroundColor">
<int key="NSColorSpace">6</int>
<string key="NSCatalogName">System</string>
<string key="NSColorName">textBackgroundColor</string>
<object class="NSColor" key="NSColor">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MQA</bytes>
</object>
</object>
<object class="NSColor" key="NSTextColor">
<int key="NSColorSpace">6</int>
<string key="NSCatalogName">System</string>
<string key="NSColorName">textColor</string>
<object class="NSColor" key="NSColor" id="853051032">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MAA</bytes>
</object> </object>
<string key="NSFrame">{{295, 0}, {234, 39}}</string>
<reference key="NSSuperview" ref="619977"/>
<string key="NSClassName">GTMWidthBasedTweaker</string>
</object> </object>
</object> <object class="NSTextField" id="661293467">
</object> <reference key="NSNextResponder" ref="619977"/>
<object class="NSCustomView" id="514080172"> <int key="NSvFlags">-2147483383</int>
<reference key="NSNextResponder" ref="124264346"/> <string key="NSFrame">{{425, 11}, {94, 17}}</string>
<int key="NSvFlags">268</int> <reference key="NSSuperview" ref="619977"/>
<object class="NSMutableArray" key="NSSubviews">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSTextField" id="478354727">
<reference key="NSNextResponder" ref="514080172"/>
<int key="NSvFlags">290</int>
<string key="NSFrame">{{12, 11}, {208, 17}}</string>
<reference key="NSSuperview" ref="514080172"/>
<bool key="NSEnabled">YES</bool> <bool key="NSEnabled">YES</bool>
<object class="NSTextFieldCell" key="NSCell" id="925678034"> <object class="NSTextFieldCell" key="NSCell" id="809008073">
<int key="NSCellFlags">67239488</int> <int key="NSCellFlags">-2079195584</int>
<int key="NSCellFlags2">272631808</int> <int key="NSCellFlags2">71304192</int>
<string key="NSContents">google.com has gone full screen</string> <string key="NSContents">Exit fullscreen</string>
<reference key="NSSupport" ref="199487396"/> <reference key="NSSupport" ref="199487396"/>
<reference key="NSControlView" ref="478354727"/> <reference key="NSControlView" ref="661293467"/>
<object class="NSColor" key="NSBackgroundColor"> <object class="NSColor" key="NSBackgroundColor">
<int key="NSColorSpace">6</int> <int key="NSColorSpace">6</int>
<string key="NSCatalogName">System</string> <string key="NSCatalogName">System</string>
<string key="NSColorName">controlColor</string> <string key="NSColorName">textBackgroundColor</string>
<object class="NSColor" key="NSColor"> <object class="NSColor" key="NSColor">
<int key="NSColorSpace">3</int> <int key="NSColorSpace">3</int>
<bytes key="NSWhite">MC42NjY2NjY2NjY3AA</bytes> <bytes key="NSWhite">MQA</bytes>
</object> </object>
</object> </object>
<object class="NSColor" key="NSTextColor"> <object class="NSColor" key="NSTextColor">
<int key="NSColorSpace">6</int> <int key="NSColorSpace">6</int>
<string key="NSCatalogName">System</string> <string key="NSCatalogName">System</string>
<string key="NSColorName">controlTextColor</string> <string key="NSColorName">textColor</string>
<reference key="NSColor" ref="853051032"/> <object class="NSColor" key="NSColor" id="853051032">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MAA</bytes>
</object>
</object>
</object>
</object>
<object class="NSCustomView" id="514080172">
<reference key="NSNextResponder" ref="619977"/>
<int key="NSvFlags">268</int>
<object class="NSMutableArray" key="NSSubviews">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSTextField" id="478354727">
<reference key="NSNextResponder" ref="514080172"/>
<int key="NSvFlags">290</int>
<string key="NSFrame">{{12, 11}, {208, 17}}</string>
<reference key="NSSuperview" ref="514080172"/>
<bool key="NSEnabled">YES</bool>
<object class="NSTextFieldCell" key="NSCell" id="925678034">
<int key="NSCellFlags">67239488</int>
<int key="NSCellFlags2">272631808</int>
<string key="NSContents">google.com has gone full screen</string>
<reference key="NSSupport" ref="199487396"/>
<reference key="NSControlView" ref="478354727"/>
<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">MC42NjY2NjY2NjY3AA</bytes>
</object>
</object>
<object class="NSColor" key="NSTextColor">
<int key="NSColorSpace">6</int>
<string key="NSCatalogName">System</string>
<string key="NSColorName">controlTextColor</string>
<reference key="NSColor" ref="853051032"/>
</object>
</object>
</object> </object>
</object> </object>
<string key="NSFrameSize">{237, 39}</string>
<reference key="NSSuperview" ref="619977"/>
<string key="NSClassName">GTMWidthBasedTweaker</string>
</object> </object>
</object> </object>
<string key="NSFrameSize">{237, 39}</string> <string key="NSFrame">{{50, 50}, {529, 39}}</string>
<reference key="NSSuperview" ref="124264346"/> <reference key="NSSuperview" ref="124264346"/>
<string key="NSClassName">GTMWidthBasedTweaker</string> <string key="NSClassName">NSView</string>
</object> </object>
</object> </object>
<string key="NSFrameSize">{499, 39}</string> <string key="NSFrameSize">{629, 109}</string>
<reference key="NSSuperview" ref="1006"/> <reference key="NSSuperview" ref="1006"/>
<string key="NSClassName">InfoBubbleView</string> <string key="NSClassName">FullscreenExitBubbleView</string>
</object> </object>
</object> </object>
<string key="NSFrameSize">{499, 39}</string> <string key="NSFrameSize">{629, 109}</string>
<reference key="NSSuperview"/> <reference key="NSSuperview"/>
</object> </object>
<string key="NSScreenRect">{{0, 0}, {2560, 1578}}</string> <string key="NSScreenRect">{{0, 0}, {2560, 1578}}</string>
...@@ -252,14 +262,6 @@ ...@@ -252,14 +262,6 @@
</object> </object>
<int key="connectionID">18</int> <int key="connectionID">18</int>
</object> </object>
<object class="IBConnectionRecord">
<object class="IBOutletConnection" key="connection">
<string key="label">bubble_</string>
<reference key="source" ref="1001"/>
<reference key="destination" ref="124264346"/>
</object>
<int key="connectionID">19</int>
</object>
<object class="IBConnectionRecord"> <object class="IBConnectionRecord">
<object class="IBOutletConnection" key="connection"> <object class="IBOutletConnection" key="connection">
<string key="label">localizer_</string> <string key="label">localizer_</string>
...@@ -359,52 +361,10 @@ ...@@ -359,52 +361,10 @@
<reference key="object" ref="124264346"/> <reference key="object" ref="124264346"/>
<object class="NSMutableArray" key="children"> <object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="1031271207"/> <reference ref="619977"/>
<reference ref="514080172"/>
<reference ref="661293467"/>
</object> </object>
<reference key="parent" ref="1006"/> <reference key="parent" ref="1006"/>
</object> </object>
<object class="IBObjectRecord">
<int key="objectID">20</int>
<reference key="object" ref="1031271207"/>
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="436635720"/>
<reference ref="292228158"/>
</object>
<reference key="parent" ref="124264346"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">4</int>
<reference key="object" ref="292228158"/>
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="1040089538"/>
</object>
<reference key="parent" ref="1031271207"/>
<string key="objectName">Allow</string>
</object>
<object class="IBObjectRecord">
<int key="objectID">5</int>
<reference key="object" ref="1040089538"/>
<reference key="parent" ref="292228158"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">6</int>
<reference key="object" ref="436635720"/>
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="39119561"/>
</object>
<reference key="parent" ref="1031271207"/>
<string key="objectName">Exit full screen</string>
</object>
<object class="IBObjectRecord">
<int key="objectID">7</int>
<reference key="object" ref="39119561"/>
<reference key="parent" ref="436635720"/>
</object>
<object class="IBObjectRecord"> <object class="IBObjectRecord">
<int key="objectID">21</int> <int key="objectID">21</int>
<reference key="object" ref="505725325"/> <reference key="object" ref="505725325"/>
...@@ -415,6 +375,17 @@ ...@@ -415,6 +375,17 @@
<reference key="object" ref="904099127"/> <reference key="object" ref="904099127"/>
<reference key="parent" ref="0"/> <reference key="parent" ref="0"/>
</object> </object>
<object class="IBObjectRecord">
<int key="objectID">44</int>
<reference key="object" ref="619977"/>
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="1031271207"/>
<reference ref="661293467"/>
<reference ref="514080172"/>
</object>
<reference key="parent" ref="124264346"/>
</object>
<object class="IBObjectRecord"> <object class="IBObjectRecord">
<int key="objectID">28</int> <int key="objectID">28</int>
<reference key="object" ref="514080172"/> <reference key="object" ref="514080172"/>
...@@ -422,7 +393,7 @@ ...@@ -422,7 +393,7 @@
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="478354727"/> <reference ref="478354727"/>
</object> </object>
<reference key="parent" ref="124264346"/> <reference key="parent" ref="619977"/>
</object> </object>
<object class="IBObjectRecord"> <object class="IBObjectRecord">
<int key="objectID">41</int> <int key="objectID">41</int>
...@@ -446,7 +417,7 @@ ...@@ -446,7 +417,7 @@
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="809008073"/> <reference ref="809008073"/>
</object> </object>
<reference key="parent" ref="124264346"/> <reference key="parent" ref="619977"/>
<string key="objectName">Exit info placeholder</string> <string key="objectName">Exit info placeholder</string>
</object> </object>
<object class="IBObjectRecord"> <object class="IBObjectRecord">
...@@ -454,6 +425,46 @@ ...@@ -454,6 +425,46 @@
<reference key="object" ref="809008073"/> <reference key="object" ref="809008073"/>
<reference key="parent" ref="661293467"/> <reference key="parent" ref="661293467"/>
</object> </object>
<object class="IBObjectRecord">
<int key="objectID">20</int>
<reference key="object" ref="1031271207"/>
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="292228158"/>
<reference ref="436635720"/>
</object>
<reference key="parent" ref="619977"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">4</int>
<reference key="object" ref="292228158"/>
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="1040089538"/>
</object>
<reference key="parent" ref="1031271207"/>
<string key="objectName">Allow</string>
</object>
<object class="IBObjectRecord">
<int key="objectID">6</int>
<reference key="object" ref="436635720"/>
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="39119561"/>
</object>
<reference key="parent" ref="1031271207"/>
<string key="objectName">Exit full screen</string>
</object>
<object class="IBObjectRecord">
<int key="objectID">7</int>
<reference key="object" ref="39119561"/>
<reference key="parent" ref="436635720"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">5</int>
<reference key="object" ref="1040089538"/>
<reference key="parent" ref="292228158"/>
</object>
</object> </object>
</object> </object>
<object class="NSMutableDictionary" key="flattenedProperties"> <object class="NSMutableDictionary" key="flattenedProperties">
...@@ -487,6 +498,7 @@ ...@@ -487,6 +498,7 @@
<string>41.IBPluginDependency</string> <string>41.IBPluginDependency</string>
<string>41.IBViewBoundsToFrameTransform</string> <string>41.IBViewBoundsToFrameTransform</string>
<string>42.IBPluginDependency</string> <string>42.IBPluginDependency</string>
<string>44.IBPluginDependency</string>
<string>5.IBPluginDependency</string> <string>5.IBPluginDependency</string>
<string>6.IBPluginDependency</string> <string>6.IBPluginDependency</string>
<string>6.IBViewBoundsToFrameTransform</string> <string>6.IBViewBoundsToFrameTransform</string>
...@@ -497,10 +509,10 @@ ...@@ -497,10 +509,10 @@
<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>{{802, 1395}, {499, 39}}</string> <string>{{802, 1325}, {629, 109}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<boolean value="YES"/> <boolean value="YES"/>
<string>{{802, 1395}, {499, 39}}</string> <string>{{802, 1325}, {629, 109}}</string>
<boolean value="NO"/> <boolean value="NO"/>
<string>{196, 240}</string> <string>{196, 240}</string>
<string>{{357, 418}, {480, 270}}</string> <string>{{357, 418}, {480, 270}}</string>
...@@ -531,6 +543,7 @@ ...@@ -531,6 +543,7 @@
<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 class="NSAffineTransform"> <object class="NSAffineTransform">
<bytes key="NSTransformStruct">P4AAAL+AAABB2AAAwfgAAA</bytes> <bytes key="NSTransformStruct">P4AAAL+AAABB2AAAwfgAAA</bytes>
</object> </object>
...@@ -553,7 +566,7 @@ ...@@ -553,7 +566,7 @@
</object> </object>
</object> </object>
<nil key="sourceID"/> <nil key="sourceID"/>
<int key="maxID">43</int> <int key="maxID">44</int>
</object> </object>
<object class="IBClassDescriber" key="IBDocument.Classes"> <object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions"> <object class="NSMutableArray" key="referencedPartialClassDescriptions">
...@@ -614,7 +627,6 @@ ...@@ -614,7 +627,6 @@
<object class="NSArray" key="dict.sortedKeys"> <object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
<string>allowButton_</string> <string>allowButton_</string>
<string>bubble_</string>
<string>denyButton_</string> <string>denyButton_</string>
<string>exitLabelPlaceholder_</string> <string>exitLabelPlaceholder_</string>
<string>messageLabel_</string> <string>messageLabel_</string>
...@@ -623,7 +635,6 @@ ...@@ -623,7 +635,6 @@
<object class="NSMutableArray" key="dict.values"> <object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
<string>NSButton</string> <string>NSButton</string>
<string>InfoBubbleView</string>
<string>NSButton</string> <string>NSButton</string>
<string>NSTextField</string> <string>NSTextField</string>
<string>NSTextField</string> <string>NSTextField</string>
...@@ -635,7 +646,6 @@ ...@@ -635,7 +646,6 @@
<object class="NSArray" key="dict.sortedKeys"> <object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
<string>allowButton_</string> <string>allowButton_</string>
<string>bubble_</string>
<string>denyButton_</string> <string>denyButton_</string>
<string>exitLabelPlaceholder_</string> <string>exitLabelPlaceholder_</string>
<string>messageLabel_</string> <string>messageLabel_</string>
...@@ -647,10 +657,6 @@ ...@@ -647,10 +657,6 @@
<string key="name">allowButton_</string> <string key="name">allowButton_</string>
<string key="candidateClassName">NSButton</string> <string key="candidateClassName">NSButton</string>
</object> </object>
<object class="IBToOneOutletInfo">
<string key="name">bubble_</string>
<string key="candidateClassName">InfoBubbleView</string>
</object>
<object class="IBToOneOutletInfo"> <object class="IBToOneOutletInfo">
<string key="name">denyButton_</string> <string key="name">denyButton_</string>
<string key="candidateClassName">NSButton</string> <string key="candidateClassName">NSButton</string>
...@@ -674,6 +680,14 @@ ...@@ -674,6 +680,14 @@
<string key="minorKey">browser/ui/cocoa/fullscreen_exit_bubble_controller.h</string> <string key="minorKey">browser/ui/cocoa/fullscreen_exit_bubble_controller.h</string>
</object> </object>
</object> </object>
<object class="IBPartialClassDescription">
<string key="className">FullscreenExitBubbleView</string>
<string key="superclassName">NSView</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">browser/ui/cocoa/fullscreen_exit_bubble_view.h</string>
</object>
</object>
<object class="IBPartialClassDescription"> <object class="IBPartialClassDescription">
<string key="className">GTMUILocalizer</string> <string key="className">GTMUILocalizer</string>
<string key="superclassName">NSObject</string> <string key="superclassName">NSObject</string>
...@@ -812,14 +826,6 @@ ...@@ -812,14 +826,6 @@
</object> </object>
<reference key="sourceIdentifier" ref="246069200"/> <reference key="sourceIdentifier" ref="246069200"/>
</object> </object>
<object class="IBPartialClassDescription">
<string key="className">InfoBubbleView</string>
<string key="superclassName">NSView</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">browser/ui/cocoa/info_bubble_view.h</string>
</object>
</object>
<object class="IBPartialClassDescription"> <object class="IBPartialClassDescription">
<string key="className">InfoBubbleWindow</string> <string key="className">InfoBubbleWindow</string>
<string key="superclassName">ChromeEventProcessingWindow</string> <string key="superclassName">ChromeEventProcessingWindow</string>
...@@ -1433,6 +1439,48 @@ ...@@ -1433,6 +1439,48 @@
<string key="minorKey">Print.framework/Headers/PDEPluginInterface.h</string> <string key="minorKey">Print.framework/Headers/PDEPluginInterface.h</string>
</object> </object>
</object> </object>
<object class="IBPartialClassDescription">
<string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">QTKit.framework/Headers/QTCaptureDecompressedVideoOutput.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">QTKit.framework/Headers/QTCaptureFileOutput.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">QTKit.framework/Headers/QTCaptureVideoPreviewOutput.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">QTKit.framework/Headers/QTCaptureView.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">QTKit.framework/Headers/QTMovie.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">QTKit.framework/Headers/QTMovieView.h</string>
</object>
</object>
<object class="IBPartialClassDescription"> <object class="IBPartialClassDescription">
<string key="className">NSObject</string> <string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier"> <object class="IBClassDescriptionSource" key="sourceIdentifier">
......
...@@ -13,7 +13,6 @@ class TabContentsWrapper; ...@@ -13,7 +13,6 @@ class TabContentsWrapper;
@class BrowserWindowController; @class BrowserWindowController;
class Browser; class Browser;
@class GTMUILocalizerAndLayoutTweaker; @class GTMUILocalizerAndLayoutTweaker;
@class InfoBubbleView;
// The FullscreenExitBubbleController manages the bubble that tells the user // The FullscreenExitBubbleController manages the bubble that tells the user
// how to escape fullscreen mode. The bubble only appears when a tab requests // how to escape fullscreen mode. The bubble only appears when a tab requests
...@@ -32,7 +31,6 @@ class Browser; ...@@ -32,7 +31,6 @@ class Browser;
IBOutlet NSTextField* messageLabel_; IBOutlet NSTextField* messageLabel_;
IBOutlet NSButton* allowButton_; IBOutlet NSButton* allowButton_;
IBOutlet NSButton* denyButton_; IBOutlet NSButton* denyButton_;
IBOutlet InfoBubbleView* bubble_;
IBOutlet GTMUILocalizerAndLayoutTweaker* tweaker_; IBOutlet GTMUILocalizerAndLayoutTweaker* tweaker_;
// Text fields don't work as well with embedded links as text views, but // Text fields don't work as well with embedded links as text views, but
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
namespace { namespace {
const int kBubbleOffsetY = 10;
const float kInitialDelay = 3.8; const float kInitialDelay = 3.8;
const float kHideDuration = 0.7; const float kHideDuration = 0.7;
} // namespace } // namespace
...@@ -110,7 +109,6 @@ const float kHideDuration = 0.7; ...@@ -110,7 +109,6 @@ const float kHideDuration = 0.7;
- (void)showWindow { - (void)showWindow {
// Completes nib load. // Completes nib load.
InfoBubbleWindow* info_bubble = static_cast<InfoBubbleWindow*>([self window]); InfoBubbleWindow* info_bubble = static_cast<InfoBubbleWindow*>([self window]);
[bubble_ setArrowLocation:info_bubble::kNoArrow];
[info_bubble setCanBecomeKeyWindow:NO]; [info_bubble setCanBecomeKeyWindow:NO];
if (!fullscreen_bubble::ShowButtonsForType(bubbleType_)) { if (!fullscreen_bubble::ShowButtonsForType(bubbleType_)) {
[self showButtons:NO]; [self showButtons:NO];
...@@ -137,7 +135,6 @@ const float kHideDuration = 0.7; ...@@ -137,7 +135,6 @@ const float kHideDuration = 0.7;
NSPoint origin; NSPoint origin;
origin.x = (int)(maxWidth/2 - NSWidth(windowFrame)/2); origin.x = (int)(maxWidth/2 - NSWidth(windowFrame)/2);
origin.y = maxY - NSHeight(windowFrame); origin.y = maxY - NSHeight(windowFrame);
origin.y -= kBubbleOffsetY;
[[self window] setFrameOrigin:origin]; [[self window] setFrameOrigin:origin];
} }
......
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_COCOA_FULLSCREEN_EXIT_BUBBLE_VIEW_H_
#define CHROME_BROWSER_UI_COCOA_FULLSCREEN_EXIT_BUBBLE_VIEW_H_
#pragma once
#import <Cocoa/Cocoa.h>
// A view that handles painting the background for the Fullscreen Exit Bubble.
@interface FullscreenExitBubbleView : NSView
@end
#endif // CHROME_BROWSER_UI_COCOA_FULLSCREEN_EXIT_BUBBLE_VIEW_H_
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import "chrome/browser/ui/cocoa/fullscreen_exit_bubble_view.h"
#include "base/memory/scoped_nsobject.h"
#include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h"
namespace {
const CGFloat kShadowTop = 20;
const CGFloat kShadowBottom = 50;
const CGFloat kShadowLeft = 50;
const CGFloat kShadowRight = 50;
const CGFloat kShadowBlurRadius = 290;
const CGFloat kShadowAlpha = 0.5;
const CGFloat kBubbleCornerRadius = 8.0;
}
@implementation FullscreenExitBubbleView
- (void)drawRect:(NSRect)rect {
// Make room for the border to be seen.
NSRect bounds = [self bounds];
bounds.size.width -= kShadowLeft + kShadowRight;
bounds.size.height -= kShadowTop + kShadowBottom;
bounds.origin.x += kShadowLeft;
bounds.origin.y += kShadowBottom;
NSBezierPath* bezier = [NSBezierPath bezierPath];
CGFloat radius = kBubbleCornerRadius;
// Start with a rounded rectangle.
[bezier appendBezierPathWithRoundedRect:bounds
xRadius:radius
yRadius:radius];
[bezier closePath];
[[NSColor whiteColor] set];
gfx::ScopedNSGraphicsContextSaveGState scoped_g_state;
scoped_nsobject<NSShadow> shadow([[NSShadow alloc] init]);
[shadow setShadowBlurRadius:kShadowBlurRadius];
[shadow setShadowColor:[[NSColor blackColor]
colorWithAlphaComponent:kShadowAlpha]];
[shadow set];
[bezier fill];
}
@end
...@@ -2633,6 +2633,8 @@ ...@@ -2633,6 +2633,8 @@
'browser/ui/cocoa/framed_browser_window.mm', 'browser/ui/cocoa/framed_browser_window.mm',
'browser/ui/cocoa/fullscreen_exit_bubble_controller.h', 'browser/ui/cocoa/fullscreen_exit_bubble_controller.h',
'browser/ui/cocoa/fullscreen_exit_bubble_controller.mm', 'browser/ui/cocoa/fullscreen_exit_bubble_controller.mm',
'browser/ui/cocoa/fullscreen_exit_bubble_view.h',
'browser/ui/cocoa/fullscreen_exit_bubble_view.mm',
'browser/ui/cocoa/fullscreen_window.h', 'browser/ui/cocoa/fullscreen_window.h',
'browser/ui/cocoa/fullscreen_window.mm', 'browser/ui/cocoa/fullscreen_window.mm',
'browser/ui/cocoa/global_error_bubble_controller.h', 'browser/ui/cocoa/global_error_bubble_controller.h',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment