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

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

Issue 2976008: Bar (Closed)
Patch Set: rebase 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
new file mode 100644
index 0000000000000000000000000000000000000000..60a5e38deb29d9d714ae9f6dc4d8323e39cca20d
--- /dev/null
+++ b/chrome/browser/cocoa/tabpose_window.h
@@ -0,0 +1,51 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_COCOA_TABPOSE_WINDOW_H_
+#define CHROME_BROWSER_COCOA_TABPOSE_WINDOW_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;
+
+@interface TabposeWindow : NSWindow {
+ @public // FIXME
+ BrowserWindowController* browser_; // weak, "owns" us
+ int selectedIndex_;
+ CALayer* selectedLayer_;
+ CALayer* rootLayer_;
+ CALayer* bgLayer_;
+
+ State state_;
+
+ 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_;
+}
++ (void)openTabposeFor:(BrowserWindowController*)browser slomo:(BOOL)slomo;
++ (void)closeTabpose;
+@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