OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_COCOA_TABPOSE_WINDOW_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_TABPOSE_WINDOW_H_ |
6 #define CHROME_BROWSER_UI_COCOA_TABPOSE_WINDOW_H_ | 6 #define CHROME_BROWSER_UI_COCOA_TABPOSE_WINDOW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
10 | 10 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 66 |
67 // Manages the state of all layers. | 67 // Manages the state of all layers. |
68 scoped_ptr<tabpose::TileSet> tileSet_; | 68 scoped_ptr<tabpose::TileSet> tileSet_; |
69 | 69 |
70 // The rectangle of the window that contains all layers. This is the | 70 // The rectangle of the window that contains all layers. This is the |
71 // rectangle occupied by |bgLayer_|. | 71 // rectangle occupied by |bgLayer_|. |
72 NSRect containingRect_; | 72 NSRect containingRect_; |
73 | 73 |
74 // Informs us of added/removed/updated tabs. | 74 // Informs us of added/removed/updated tabs. |
75 scoped_ptr<TabStripModelObserverBridge> tabStripModelObserverBridge_; | 75 scoped_ptr<TabStripModelObserverBridge> tabStripModelObserverBridge_; |
| 76 |
| 77 // The icon used for the closebutton layers. |
| 78 base::mac::ScopedCFTypeRef<CGImageRef> closeIcon_; |
| 79 |
| 80 // True if all close layers should be shown (as opposed to just the close |
| 81 // layer of the currently selected thumbnail). |
| 82 BOOL showAllCloseLayers_; |
76 } | 83 } |
77 | 84 |
78 // Shows a TabposeWindow on top of |parent|, with |rect| being the active area. | 85 // Shows a TabposeWindow on top of |parent|, with |rect| being the active area. |
79 // If |slomo| is YES, then the appearance animation is shown in slow motion. | 86 // If |slomo| is YES, then the appearance animation is shown in slow motion. |
80 // The window blocks all keyboard and mouse events and releases itself when | 87 // The window blocks all keyboard and mouse events and releases itself when |
81 // closed. | 88 // closed. |
82 + (id)openTabposeFor:(NSWindow*)parent | 89 + (id)openTabposeFor:(NSWindow*)parent |
83 rect:(NSRect)rect | 90 rect:(NSRect)rect |
84 slomo:(BOOL)slomo | 91 slomo:(BOOL)slomo |
85 tabStripModel:(TabStripModel*)tabStripModel; | 92 tabStripModel:(TabStripModel*)tabStripModel; |
86 @end | 93 @end |
87 | 94 |
88 @interface TabposeWindow (TestingAPI) | 95 @interface TabposeWindow (TestingAPI) |
89 - (void)selectTileAtIndexWithoutAnimation:(int)newIndex; | 96 - (void)selectTileAtIndexWithoutAnimation:(int)newIndex; |
90 - (NSUInteger)thumbnailLayerCount; | 97 - (NSUInteger)thumbnailLayerCount; |
91 - (int)selectedIndex; | 98 - (int)selectedIndex; |
92 @end | 99 @end |
93 | 100 |
94 #endif // CHROME_BROWSER_UI_COCOA_TABPOSE_WINDOW_H_ | 101 #endif // CHROME_BROWSER_UI_COCOA_TABPOSE_WINDOW_H_ |
OLD | NEW |