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

Unified Diff: chrome/browser/ui/cocoa/circular_activity_indicator_view.h

Issue 1048733004: Add a Material Design Circular Activity Indicator (Spinner) view for Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698