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

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

Issue 469003006: Remove --disable-core-animation flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@erikchen_patch
Patch Set: Rebase Created 6 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
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 14 matching lines...) Expand all
25 - (void)cr_ensureSubview:(NSView*)subview 25 - (void)cr_ensureSubview:(NSView*)subview
26 isPositioned:(NSWindowOrderingMode)place 26 isPositioned:(NSWindowOrderingMode)place
27 relativeTo:(NSView *)otherView; 27 relativeTo:(NSView *)otherView;
28 28
29 // Return best color for keyboard focus ring. 29 // Return best color for keyboard focus ring.
30 - (NSColor*)cr_keyboardFocusIndicatorColor; 30 - (NSColor*)cr_keyboardFocusIndicatorColor;
31 31
32 // Set needsDisplay for this view and all descendants. 32 // Set needsDisplay for this view and all descendants.
33 - (void)cr_recursivelySetNeedsDisplay:(BOOL)flag; 33 - (void)cr_recursivelySetNeedsDisplay:(BOOL)flag;
34 34
35 // Set the specified view to have a CoreAnimation layer if CoreAnimation is
36 // enabled at the command line.
37 - (void)cr_setWantsLayer:(BOOL)wantsLayer;
38
39 // Draw using ancestorView's drawRect function into this view's rect. Do any 35 // Draw using ancestorView's drawRect function into this view's rect. Do any
40 // required translating or flipping to transform between the two coordinate 36 // required translating or flipping to transform between the two coordinate
41 // systems. 37 // systems.
42 - (void)cr_drawUsingAncestor:(NSView*)ancestorView inRect:(NSRect)rect; 38 - (void)cr_drawUsingAncestor:(NSView*)ancestorView inRect:(NSRect)rect;
43 39
44 // Used by ancestorView in the above draw call, to look up the child view that 40 // Used by ancestorView in the above draw call, to look up the child view that
45 // it is actually drawing to. 41 // it is actually drawing to.
46 - (NSView*)cr_viewBeingDrawnTo; 42 - (NSView*)cr_viewBeingDrawnTo;
47 43
48 @end 44 @end
49 45
50 #endif // CHROME_BROWSER_UI_COCOA_NSVIEW_ADDITIONS_H_ 46 #endif // CHROME_BROWSER_UI_COCOA_NSVIEW_ADDITIONS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/fullscreen_mode_controller.mm ('k') | chrome/browser/ui/cocoa/nsview_additions.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698