Index: chrome/browser/ui/cocoa/circular_activity_indicator_view.h |
diff --git a/chrome/browser/ui/cocoa/circular_activity_indicator_view.h b/chrome/browser/ui/cocoa/circular_activity_indicator_view.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..aeeff61618d53e7b1662a5d8f66f2883e640dd73 |
--- /dev/null |
+++ b/chrome/browser/ui/cocoa/circular_activity_indicator_view.h |
@@ -0,0 +1,22 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_UI_COCOA_CIRCULAR_ACTIVITY_INDICATOR_VIEW_H_ |
+#define CHROME_BROWSER_UI_COCOA_CIRCULAR_ACTIVITY_INDICATOR_VIEW_H_ |
+ |
+#import <Cocoa/Cocoa.h> |
+#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.
|
+ |
+#include "base/mac/scoped_nsobject.h" |
+ |
+@interface CircularActivityIndicatorView : NSView |
+{ |
+ 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
|
+ 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.
|
+ bool is_animating_; |
+} |
+ |
+@end |
+ |
+#endif // CHROME_BROWSER_UI_COCOA_CIRCULAR_ACTIVITY_INDICATOR_VIEW_H_ |