| Index: chrome/browser/cocoa/tabpose_window.h
|
| diff --git a/chrome/browser/cocoa/tabpose_window.h b/chrome/browser/cocoa/tabpose_window.h
|
| index 0efb90cd4ab188f1ea002959247b0313a27eed54..9604b9707b74182a029496f56aea52c5b0b0de16 100644
|
| --- a/chrome/browser/cocoa/tabpose_window.h
|
| +++ b/chrome/browser/cocoa/tabpose_window.h
|
| @@ -10,12 +10,33 @@
|
|
|
| #include "base/scoped_cftyperef.h"
|
|
|
| +#import <Cocoa/Cocoa.h>
|
| +
|
| +#include "base/ref_counted.h"
|
| +#include "base/scoped_nsobject.h"
|
| +#include "base/scoped_vector.h"
|
| +
|
| +enum State {
|
| + kFadingIn,
|
| + kFadedIn,
|
| + kFadingOut,
|
| +};
|
| +
|
| +@class BrowserWindowController;
|
| +class TabposeCallback;
|
| +class TabposeHelper;
|
| +
|
| // A TabposeWindow shows an overview of open tabs and lets the user select a new
|
| // active tab. The window blocks clicks on the tab strip and the download
|
| // shelf. Every open browser window has its own overlay, and they are
|
| // independent of each other.
|
| @interface TabposeWindow : NSWindow {
|
| - @private
|
| + @public // FIXME
|
| + BrowserWindowController* browser_; // weak, "owns" us
|
| + int selectedIndex_;
|
| + CALayer* selectedLayer_;
|
| + State state_;
|
| +
|
| // The root layer added to the content view. Covers the whole window.
|
| CALayer* rootLayer_; // weak
|
|
|
| @@ -23,14 +44,27 @@
|
| CALayer* bgLayer_; // weak
|
|
|
| scoped_cftyperef<CGColorRef> gray_;
|
| +
|
| + int initiallySelectedIndex_;
|
| +
|
| + int nx, ny, last_nx, w, h;
|
| + double dx, dy;
|
| +
|
| + // Stores all preview layers. The order in here matches the order in
|
| + // the tabstrip model.
|
| + scoped_nsobject<NSArray> allLayers_;
|
| +
|
| + scoped_refptr<TabposeHelper> helper_;
|
| +
|
| + ScopedVector<TabposeCallback> callbacks_;
|
| }
|
|
|
| // Shows a TabposeWindow on top of |parent|, with |rect| being the active area.
|
| // If |slomo| is YES, then the appearance animation is shown in slow motion.
|
| // The window blocks all keyboard and mouse events and releases itself when
|
| // closed.
|
| -+ (id)openTabposeFor:(NSWindow*)parent rect:(NSRect)rect slomo:(BOOL)slomo;
|
| ++ (id)openTabposeFor:(NSWindow*)parent rect:(NSRect)rect slomo:(BOOL)slomo
|
| + tempBWC:(BrowserWindowController*)bwc;
|
| @end
|
|
|
| #endif // CHROME_BROWSER_COCOA_TABPOSE_WINDOW_H_
|
| -
|
|
|