| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2010 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 #ifndef CHROME_BROWSER_COCOA_TABPOSE_WINDOW_H_ |
| 6 #define CHROME_BROWSER_COCOA_TABPOSE_WINDOW_H_ |
| 7 |
| 8 #import <Cocoa/Cocoa.h> |
| 9 |
| 10 #include "base/ref_counted.h" |
| 11 #include "base/scoped_nsobject.h" |
| 12 #include "base/scoped_vector.h" |
| 13 |
| 14 enum State { |
| 15 kFadingIn, |
| 16 kFadedIn, |
| 17 kFadingOut, |
| 18 }; |
| 19 |
| 20 @class BrowserWindowController; |
| 21 class TabposeCallback; |
| 22 class TabposeHelper; |
| 23 |
| 24 @interface TabposeWindow : NSWindow { |
| 25 @public // FIXME |
| 26 BrowserWindowController* browser_; // weak, "owns" us |
| 27 int selectedIndex_; |
| 28 CALayer* selectedLayer_; |
| 29 CALayer* rootLayer_; |
| 30 CALayer* bgLayer_; |
| 31 |
| 32 State state_; |
| 33 |
| 34 int initiallySelectedIndex_; |
| 35 |
| 36 int nx, ny, last_nx, w, h; |
| 37 double dx, dy; |
| 38 |
| 39 // Stores all preview layers. The order in here matches the order in |
| 40 // the tabstrip model. |
| 41 scoped_nsobject<NSArray> allLayers_; |
| 42 |
| 43 scoped_refptr<TabposeHelper> helper_; |
| 44 |
| 45 ScopedVector<TabposeCallback> callbacks_; |
| 46 } |
| 47 + (void)openTabposeFor:(BrowserWindowController*)browser slomo:(BOOL)slomo; |
| 48 + (void)closeTabpose; |
| 49 @end |
| 50 |
| 51 #endif // CHROME_BROWSER_COCOA_TABPOSE_WINDOW_H_ |
| OLD | NEW |