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

Unified Diff: chrome/browser/ui/cocoa/autofill/autofill_loading_shield_controller.h

Issue 73723002: [rAc OSX] Animate the dots in the "Loading ..." message. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clean up new files Created 7 years, 1 month 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/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_

Powered by Google App Engine
This is Rietveld 408576698