| 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 30 matching lines...) Expand all Loading... |
| 41 @interface TabposeWindow : NSWindow { | 41 @interface TabposeWindow : NSWindow { |
| 42 @private | 42 @private |
| 43 tabpose::WindowState state_; | 43 tabpose::WindowState state_; |
| 44 | 44 |
| 45 // The root layer added to the content view. Covers the whole window. | 45 // The root layer added to the content view. Covers the whole window. |
| 46 CALayer* rootLayer_; // weak | 46 CALayer* rootLayer_; // weak |
| 47 | 47 |
| 48 // The layer showing the background layer. Covers the whole visible area. | 48 // The layer showing the background layer. Covers the whole visible area. |
| 49 CALayer* bgLayer_; // weak | 49 CALayer* bgLayer_; // weak |
| 50 | 50 |
| 51 // Top gradient. |
| 52 CALayer* topGradient_; // weak |
| 53 |
| 51 // The layer drawn behind the currently selected tile. | 54 // The layer drawn behind the currently selected tile. |
| 52 CALayer* selectionHighlight_; // weak | 55 CALayer* selectionHighlight_; // weak |
| 53 | 56 |
| 54 // Colors used by the layers. | 57 // Colors used by the layers. |
| 55 base::mac::ScopedCFTypeRef<CGColorRef> gray_; | 58 base::mac::ScopedCFTypeRef<CGColorRef> gray_; |
| 56 base::mac::ScopedCFTypeRef<CGColorRef> darkBlue_; | 59 base::mac::ScopedCFTypeRef<CGColorRef> darkBlue_; |
| 57 | 60 |
| 58 TabStripModel* tabStripModel_; // weak | 61 TabStripModel* tabStripModel_; // weak |
| 59 | 62 |
| 60 // Stores all preview layers. The order in here matches the order in | 63 // Stores all preview layers. The order in here matches the order in |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 tabStripModel:(TabStripModel*)tabStripModel; | 95 tabStripModel:(TabStripModel*)tabStripModel; |
| 93 @end | 96 @end |
| 94 | 97 |
| 95 @interface TabposeWindow (TestingAPI) | 98 @interface TabposeWindow (TestingAPI) |
| 96 - (void)selectTileAtIndexWithoutAnimation:(int)newIndex; | 99 - (void)selectTileAtIndexWithoutAnimation:(int)newIndex; |
| 97 - (NSUInteger)thumbnailLayerCount; | 100 - (NSUInteger)thumbnailLayerCount; |
| 98 - (int)selectedIndex; | 101 - (int)selectedIndex; |
| 99 @end | 102 @end |
| 100 | 103 |
| 101 #endif // CHROME_BROWSER_UI_COCOA_TABPOSE_WINDOW_H_ | 104 #endif // CHROME_BROWSER_UI_COCOA_TABPOSE_WINDOW_H_ |
| OLD | NEW |