• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2011 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 #include "base/memory/scoped_ptr.h"
8 #import "chrome/browser/ui/cocoa/chrome_event_processing_window.h"
9 
10 class AppNotificationBridge;
11 
12 // A rounded window with an arrow used for example when you click on the STAR
13 // button or that pops up within our first-run UI.
14 @interface InfoBubbleWindow : ChromeEventProcessingWindow {
15  @private
16   // Is self in the process of closing.
17   BOOL closing_;
18   // If NO the window will close immediately instead of fading out.
19   // Default YES.
20   BOOL delayOnClose_;
21   // Bridge to proxy Chrome notifications to the window.
22   scoped_ptr<AppNotificationBridge> notificationBridge_;
23 }
24 
25 @property(nonatomic) BOOL delayOnClose;
26 
27 // Returns YES if the window is in the process of closing.
28 // Can't use "windowWillClose" notification because that will be sent
29 // after the closing animation has completed.
30 - (BOOL)isClosing;
31 
32 @end
33