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

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

Issue 2819070: Mac: Add tabpose window (Closed)
Patch Set: mac compile?! 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
(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 #pragma once
8
9 #import <Cocoa/Cocoa.h>
10
11 #include "base/scoped_cftyperef.h"
12
13 // A TabposeWindow shows an overview of open tabs and lets the user select a new
14 // active tab. The window blocks clicks on the tab strip and the download
15 // shelf. Every open browser window has its own overlay, and they are
16 // independent of each other.
17 @interface TabposeWindow : NSWindow {
18 @private
19 // The root layer added to the content view. Covers the whole window.
20 CALayer* rootLayer_; // weak
21
22 // The layer showing the background layer. Covers the whole visible area.
23 CALayer* bgLayer_; // weak
24
25 scoped_cftyperef<CGColorRef> gray_;
26 }
27
28 // Shows a TabposeWindow on top of |parent|, with |rect| being the active area.
29 // If |slomo| is YES, then the appearance animation is shown in slow motion.
30 // The window blocks all keyboard and mouse events and releases itself when
31 // closed.
32 + (id)openTabposeFor:(NSWindow*)parent rect:(NSRect)rect slomo:(BOOL)slomo;
33 @end
34
35 #endif // CHROME_BROWSER_COCOA_TABPOSE_WINDOW_H_
36
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698