blob: ab23b10fd5e60e40372681f05e2ce9c9bef06f09 [file] [log] [blame]
[email protected]d64f2a02009-11-12 05:18:501// 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]02070432009-11-14 00:56:349@interface InfoBubbleWindow : NSWindow {
10 @private
11 // Is self in the process of closing.
12 BOOL closing_;
[email protected]718eb082009-12-21 20:34:2613 // If NO the window will close immediately instead of fading out.
14 // Default YES.
15 BOOL delayOnClose_;
[email protected]02070432009-11-14 00:56:3416}
[email protected]1f987392009-11-14 16:09:0617
[email protected]718eb082009-12-21 20:34:2618@property BOOL delayOnClose;
19
[email protected]1f987392009-11-14 16:09:0620@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]d64f2a02009-11-12 05:18:5030@end