 Chromium Code Reviews
 Chromium Code Reviews Issue 12315069:
  Mac: Update zoom bubble UI  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src
    
  
    Issue 12315069:
  Mac: Update zoom bubble UI  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src| OLD | NEW | 
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> | 
| 6 | 6 | 
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" | 
| 8 #import "chrome/browser/ui/cocoa/chrome_event_processing_window.h" | 8 #import "chrome/browser/ui/cocoa/chrome_event_processing_window.h" | 
| 9 | 9 | 
| 10 class AppNotificationBridge; | 10 class AppNotificationBridge; | 
| 11 | 11 | 
| 12 // A rounded window with an arrow used for example when you click on the STAR | 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. | 13 // button or that pops up within our first-run UI. | 
| 14 @interface InfoBubbleWindow : ChromeEventProcessingWindow { | 14 @interface InfoBubbleWindow : ChromeEventProcessingWindow { | 
| 15 @private | 15 @private | 
| 16 // Is self in the process of closing. | 16 // Is self in the process of closing. | 
| 17 BOOL closing_; | 17 BOOL closing_; | 
| 18 // If NO the window will close immediately instead of fading out. | 18 // If NO the window will close immediately instead of fading out. | 
| 19 // Default YES. | 19 // Default YES. | 
| 20 BOOL delayOnClose_; | 20 BOOL delayOnClose_; | 
| 21 // If NO the window will never become key. | 21 // If NO the window will never become key. | 
| 22 // Default YES. | 22 // Default YES. | 
| 23 BOOL canBecomeKeyWindow_; | 23 BOOL canBecomeKeyWindow_; | 
| 24 // Bridge to proxy Chrome notifications to the window. | 24 // Bridge to proxy Chrome notifications to the window. | 
| 25 scoped_ptr<AppNotificationBridge> notificationBridge_; | 25 scoped_ptr<AppNotificationBridge> notificationBridge_; | 
| 26 | |
| 27 // If YES then the window will animate in and out. | |
| 28 BOOL enableAnimations_; | |
| 
Robert Sesek
2013/02/26 23:15:16
It's kind of weird how this interacts with delayOn
 
sail
2013/02/27 00:35:34
Done.
 | |
| 26 } | 29 } | 
| 27 | 30 | 
| 28 @property(nonatomic) BOOL delayOnClose; | 31 @property(nonatomic) BOOL delayOnClose; | 
| 29 @property(nonatomic) BOOL canBecomeKeyWindow; | 32 @property(nonatomic) BOOL canBecomeKeyWindow; | 
| 33 @property(nonatomic) BOOL enableAnimations; | |
| 30 | 34 | 
| 31 // Returns YES if the window is in the process of closing. | 35 // Returns YES if the window is in the process of closing. | 
| 32 // Can't use "windowWillClose" notification because that will be sent | 36 // Can't use "windowWillClose" notification because that will be sent | 
| 33 // after the closing animation has completed. | 37 // after the closing animation has completed. | 
| 34 - (BOOL)isClosing; | 38 - (BOOL)isClosing; | 
| 35 | 39 | 
| 36 @end | 40 @end | 
| OLD | NEW |