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

Side by Side Diff: chrome/browser/cocoa/tabpose_window.h

Issue 3140001: Mac: Highlight selected tile in tabpose. (Closed)
Patch Set: Created 10 years, 4 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
OLDNEW
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_COCOA_TABPOSE_WINDOW_H_ 5 #ifndef CHROME_BROWSER_COCOA_TABPOSE_WINDOW_H_
6 #define CHROME_BROWSER_COCOA_TABPOSE_WINDOW_H_ 6 #define CHROME_BROWSER_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
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 // The layer drawn behind the currently selected tile.
52 CALayer* selectionHighlight_; // weak
53
54 // Colors used by the layers.
51 scoped_cftyperef<CGColorRef> gray_; 55 scoped_cftyperef<CGColorRef> gray_;
56 scoped_cftyperef<CGColorRef> darkBlue_;
52 57
53 TabStripModel* tabStripModel_; // weak 58 TabStripModel* tabStripModel_; // weak
54 59
55 // Stores all preview layers. The order in here matches the order in 60 // Stores all preview layers. The order in here matches the order in
56 // the tabstrip model. 61 // the tabstrip model.
57 scoped_nsobject<NSArray> allLayers_; 62 scoped_nsobject<NSArray> allThumbnailLayers_;
58 63
59 // Manages the state of all layers. 64 // Manages the state of all layers.
60 scoped_ptr<tabpose::TileSet> tileSet_; 65 scoped_ptr<tabpose::TileSet> tileSet_;
61 } 66 }
62 67
63 // Shows a TabposeWindow on top of |parent|, with |rect| being the active area. 68 // Shows a TabposeWindow on top of |parent|, with |rect| being the active area.
64 // If |slomo| is YES, then the appearance animation is shown in slow motion. 69 // If |slomo| is YES, then the appearance animation is shown in slow motion.
65 // The window blocks all keyboard and mouse events and releases itself when 70 // The window blocks all keyboard and mouse events and releases itself when
66 // closed. 71 // closed.
67 + (id)openTabposeFor:(NSWindow*)parent 72 + (id)openTabposeFor:(NSWindow*)parent
68 rect:(NSRect)rect 73 rect:(NSRect)rect
69 slomo:(BOOL)slomo 74 slomo:(BOOL)slomo
70 tabStripModel:(TabStripModel*)tabStripModel; 75 tabStripModel:(TabStripModel*)tabStripModel;
71 @end 76 @end
72 77
73 #endif // CHROME_BROWSER_COCOA_TABPOSE_WINDOW_H_ 78 #endif // CHROME_BROWSER_COCOA_TABPOSE_WINDOW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/cocoa/tabpose_window.mm » ('j') | chrome/browser/cocoa/tabpose_window.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698