Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(513)

Unified Diff: chrome/browser/cocoa/tabpose_window.h

Issue 2976008: Bar (Closed)
Patch Set: '' Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/cocoa/tab_strip_controller.h ('k') | chrome/browser/cocoa/tabpose_window.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
-
« no previous file with comments | « chrome/browser/cocoa/tab_strip_controller.h ('k') | chrome/browser/cocoa/tabpose_window.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698