Index: chrome/browser/ui/cocoa/autofill/autofill_loading_shield_controller.h |
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_loading_shield_controller.h b/chrome/browser/ui/cocoa/autofill/autofill_loading_shield_controller.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c0afd7bf095cbf3c927739e42e0e0b3389ea29d2 |
--- /dev/null |
+++ b/chrome/browser/ui/cocoa/autofill/autofill_loading_shield_controller.h |
@@ -0,0 +1,38 @@ |
+// Copyright 2013 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_AUTOFILL_AUTOFILL_LOADING_SHIELD_CONTROLLER_H_ |
+#define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_LOADING_SHIELD_CONTROLLER_H_ |
+ |
+#import <Cocoa/Cocoa.h> |
+ |
+#include "base/mac/scoped_nsobject.h" |
+#include "base/memory/scoped_ptr.h" |
+#import "chrome/browser/ui/cocoa/autofill/autofill_layout.h" |
+ |
+class AutofillLoadingAnimationBridge; |
+ |
+@interface AutofillLoadingShieldController : NSViewController<AutofillLayout> { |
+ @private |
+ // The main label for the shield. |
+ base::scoped_nsobject<NSTextField> message_; |
+ // The animate dots that follow the |message_|. |
+ base::scoped_nsobject<NSArray> dots_; |
+ |
+ // C++ bridge class for animating the dots. |
+ scoped_ptr<AutofillLoadingAnimationBridge> animationDriver_; |
+} |
+ |
+// Designated initializer. |
+- (id)init; |
+ |
+// Returns the current |message_|. |
+- (NSString*)message; |
+ |
+// Updates the |message_| to |message|. |
+- (void)setMessage:(NSString*)message; |
+ |
+@end |
+ |
+#endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_LOADING_SHIELD_CONTROLLER_H_ |