OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 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_AUTOFILL_AUTOFILL_LOADING_SHIELD_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_LOADING_SHIELD_CONTROLLER_H_ |
| 7 |
| 8 #import <Cocoa/Cocoa.h> |
| 9 |
| 10 #include "base/mac/scoped_nsobject.h" |
| 11 #include "base/memory/scoped_ptr.h" |
| 12 #import "chrome/browser/ui/cocoa/autofill/autofill_layout.h" |
| 13 |
| 14 class AutofillLoadingAnimationBridge; |
| 15 |
| 16 @interface AutofillLoadingShieldController : NSViewController<AutofillLayout> { |
| 17 @private |
| 18 // The main label for the shield. |
| 19 base::scoped_nsobject<NSTextField> message_; |
| 20 // The animate dots that follow the |message_|. |
| 21 base::scoped_nsobject<NSArray> dots_; |
| 22 |
| 23 // C++ bridge class for animating the dots. |
| 24 scoped_ptr<AutofillLoadingAnimationBridge> animationDriver_; |
| 25 } |
| 26 |
| 27 // Designated initializer. |
| 28 - (id)init; |
| 29 |
| 30 // Returns the current |message_|. |
| 31 - (NSString*)message; |
| 32 |
| 33 // Updates the |message_| to |message|. |
| 34 - (void)setMessage:(NSString*)message; |
| 35 |
| 36 @end |
| 37 |
| 38 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_LOADING_SHIELD_CONTROLLER_H
_ |
OLD | NEW |