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

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

Issue 5960008: Make thumbnails closable in tabpose (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 9 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | chrome/browser/ui/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
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
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_
OLDNEW
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | chrome/browser/ui/cocoa/tabpose_window.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698