OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_NSVIEW_ADDITIONS_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_NSVIEW_ADDITIONS_H_ |
6 #define CHROME_BROWSER_UI_COCOA_NSVIEW_ADDITIONS_H_ | 6 #define CHROME_BROWSER_UI_COCOA_NSVIEW_ADDITIONS_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 @interface NSView (ChromeAdditions) | 10 @interface NSView (ChromeAdditions) |
(...skipping 23 matching lines...) Expand all Loading... | |
34 | 34 |
35 // Set the specified view to have a CoreAnimation layer if CoreAnimation is | 35 // Set the specified view to have a CoreAnimation layer if CoreAnimation is |
36 // enabled at the command line. | 36 // enabled at the command line. |
37 - (void)cr_setWantsLayer:(BOOL)wantsLayer; | 37 - (void)cr_setWantsLayer:(BOOL)wantsLayer; |
38 | 38 |
39 // Set the specified view to have a CoreAnimation layer with all child views | 39 // Set the specified view to have a CoreAnimation layer with all child views |
40 // squashed into this layer. Do not give this view a layer if CoreAnimation is | 40 // squashed into this layer. Do not give this view a layer if CoreAnimation is |
41 // not enabled at the command line, or if the layer squashing API is not | 41 // not enabled at the command line, or if the layer squashing API is not |
42 // availabble. | 42 // availabble. |
43 - (void)cr_setWantsSquashedLayer; | 43 - (void)cr_setWantsSquashedLayer; |
44 | |
45 // Set the specified view to be hosting a solid white CALayer if CoreAnimation | |
46 // is enabled at the command line. This view will no longer have drawRect | |
47 // called after this is set. | |
48 - (void)cr_setHostsSolidWhiteLayer; | |
Avi (use Gerrit)
2014/03/05 03:19:28
This is only used once; why does it get its own he
ccameron
2014/03/05 07:59:31
I had a vague preference for consolidating all of
| |
49 | |
44 @end | 50 @end |
45 | 51 |
46 #endif // CHROME_BROWSER_UI_COCOA_NSVIEW_ADDITIONS_H_ | 52 #endif // CHROME_BROWSER_UI_COCOA_NSVIEW_ADDITIONS_H_ |
OLD | NEW |