OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_FAST_RESIZE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_FAST_RESIZE_VIEW_H_ |
6 #define CHROME_BROWSER_UI_COCOA_FAST_RESIZE_VIEW_H_ | 6 #define CHROME_BROWSER_UI_COCOA_FAST_RESIZE_VIEW_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 @class CAShapeLayer; | |
11 | |
12 // A Cocoa view originally created to support fast re-painting to white on | 10 // A Cocoa view originally created to support fast re-painting to white on |
13 // resize. This is done by CoreAnimation now, so this view remains only as the | 11 // resize. This is done by CoreAnimation now, so this view remains only as the |
14 // first opaque ancestor of accelerated web contents views. | 12 // first opaque ancestor of accelerated web contents views. |
15 @interface FastResizeView : NSView { | 13 @interface FastResizeView : NSView |
16 @private | |
17 // Whether the bottom corners should be rounded. | |
18 BOOL roundedBottomCorners_; | |
19 | |
20 // Weak reference to the mask of the hosted layer. | |
21 CAShapeLayer* layerMask_; | |
22 } | |
23 | |
24 // Changes whether the bottom two corners are rounded. | |
25 - (void)setRoundedBottomCorners:(BOOL)roundedBottomCorners; | |
26 | 14 |
27 @end | 15 @end |
28 | 16 |
29 #endif // CHROME_BROWSER_UI_COCOA_FAST_RESIZE_VIEW_H_ | 17 #endif // CHROME_BROWSER_UI_COCOA_FAST_RESIZE_VIEW_H_ |
OLD | NEW |