OLD | NEW |
(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 |
OLD | NEW |