[email protected] | d64f2a0 | 2009-11-12 05:18:50 | [diff] [blame] | 1 | // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 | // Use of this source code is governed by a BSD-style license that can be | ||||
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | #import <Cocoa/Cocoa.h> | ||||
6 | |||||
7 | // A rounded window with an arrow used for example when you click on the STAR | ||||
8 | // button or that pops up within our first-run UI. | ||||
[email protected] | 0207043 | 2009-11-14 00:56:34 | [diff] [blame] | 9 | @interface InfoBubbleWindow : NSWindow { |
10 | @private | ||||
11 | // Is self in the process of closing. | ||||
12 | BOOL closing_; | ||||
[email protected] | 718eb08 | 2009-12-21 20:34:26 | [diff] [blame] | 13 | // If NO the window will close immediately instead of fading out. |
14 | // Default YES. | ||||
15 | BOOL delayOnClose_; | ||||
[email protected] | 0207043 | 2009-11-14 00:56:34 | [diff] [blame] | 16 | } |
[email protected] | 1f98739 | 2009-11-14 16:09:06 | [diff] [blame] | 17 | |
[email protected] | 718eb08 | 2009-12-21 20:34:26 | [diff] [blame] | 18 | @property BOOL delayOnClose; |
19 | |||||
[email protected] | 1f98739 | 2009-11-14 16:09:06 | [diff] [blame] | 20 | @end |
21 | |||||
22 | // Methods to only be used by unittests. | ||||
23 | @interface InfoBubbleWindow (UnitTest) | ||||
24 | |||||
25 | // Returns YES if the window is in the process of closing. | ||||
26 | // Can't use "windowWillClose" notification because that will be sent | ||||
27 | // after the closing animation has completed. | ||||
28 | - (BOOL)isClosing; | ||||
29 | |||||
[email protected] | d64f2a0 | 2009-11-12 05:18:50 | [diff] [blame] | 30 | @end |