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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« 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