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

Side by Side 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, 8 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698