OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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_SPINNER_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_SPINNER_VIEW_H_ |
6 #define CHROME_BROWSER_UI_COCOA_SPINNER_VIEW_H_ | 6 #define CHROME_BROWSER_UI_COCOA_SPINNER_VIEW_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include "base/mac/scoped_nsobject.h" | 10 #import "base/mac/scoped_nsobject.h" |
11 | 11 |
12 @class CAAnimationGroup; | 12 // A view that displays a Material Design Circular Activity Indicator (aka a |
13 @class CAShapeLayer; | 13 // "spinner") for Mac Chrome. To use, create a SpinnerView of the desired size |
14 | 14 // and add to a view hierarchy. SpinnerView uses Core Animation to achieve GPU- |
| 15 // accelerated animation and smooth scaling to any size. |
15 @interface SpinnerView : NSView { | 16 @interface SpinnerView : NSView { |
16 @private | 17 @private |
17 bool is_animating_; | 18 bool isAnimating_; |
18 } | 19 } |
19 | 20 |
20 @end | 21 @end |
21 | 22 |
22 #endif // CHROME_BROWSER_UI_COCOA_SPINNER_VIEW_H_ | 23 #endif // CHROME_BROWSER_UI_COCOA_SPINNER_VIEW_H_ |
OLD | NEW |