OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 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_UI_COCOA_CIRCULAR_ACTIVITY_INDICATOR_VIEW_H_ | |
6 #define CHROME_BROWSER_UI_COCOA_CIRCULAR_ACTIVITY_INDICATOR_VIEW_H_ | |
7 | |
8 #import <Cocoa/Cocoa.h> | |
9 #import <QuartzCore/QuartzCore.h> | |
groby-ooo-7-16
2015/03/30 23:28:30
Can you forward-declare @class CAShapeLayer/CAAnim
shrike
2015/03/31 07:05:53
Done.
| |
10 | |
11 #include "base/mac/scoped_nsobject.h" | |
12 | |
13 @interface CircularActivityIndicatorView : NSView | |
14 { | |
15 base::scoped_nsobject<CAAnimationGroup> spinner_animation_; | |
groby-ooo-7-16
2015/03/30 23:28:30
General question: I assume we ruled out using ui/g
groby-ooo-7-16
2015/03/30 23:28:30
Can we move the ivars to the implementation?
shrike
2015/03/31 07:05:53
This class is patterned after sprite_view. I have
shrike
2015/03/31 07:05:53
This appears to be timer-based animation, which wo
| |
16 CAShapeLayer* shape_layer_; | |
groby-ooo-7-16
2015/03/30 23:28:30
Personal nit: I like a // Weak. comment at the end
shrike
2015/03/31 07:05:53
Done.
| |
17 bool is_animating_; | |
18 } | |
19 | |
20 @end | |
21 | |
22 #endif // CHROME_BROWSER_UI_COCOA_CIRCULAR_ACTIVITY_INDICATOR_VIEW_H_ | |
OLD | NEW |