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

Unified Diff: chrome/browser/ui/cocoa/intents/web_intent_progress_view_controller.h

Issue 11009017: Mac Web Intents Part 11: Progress view (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/intents/web_intent_progress_view_controller.h
diff --git a/chrome/browser/ui/cocoa/intents/web_intent_progress_view_controller.h b/chrome/browser/ui/cocoa/intents/web_intent_progress_view_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..ede8f413eca4675312a4e75fe35df1956b2e585b
--- /dev/null
+++ b/chrome/browser/ui/cocoa/intents/web_intent_progress_view_controller.h
@@ -0,0 +1,33 @@
+// Copyright (c) 2012 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_INTENTS_WEB_INTENT_PROGRESS_VIEW_CONTROLLER_H_
+#define CHROME_BROWSER_UI_COCOA_INTENTS_WEB_INTENT_PROGRESS_VIEW_CONTROLLER_H_
+
+#import <Cocoa/Cocoa.h>
+
+#include "base/memory/scoped_nsobject.h"
+#import "chrome/browser/ui/cocoa/intents/web_intent_view_controller.h"
+
+@class SpinnerProgressIndicator;
+
+// The progress view shows a progress indicator and a label underneath it. The
+// label is made by joining the title and the message.
+@interface WebIntentProgressViewController : NSViewController
+ <WebIntentViewController> {
+ @private
+ scoped_nsobject<NSString> title_;
+ scoped_nsobject<NSString> message_;
+ scoped_nsobject<NSTextField> messageTextField_;
+ scoped_nsobject<SpinnerProgressIndicator> progressIndicator_;
+}
+
+- (SpinnerProgressIndicator*)progressIndicator;
+- (void)setTitle:(NSString*)title;
+- (void)setMessage:(NSString*)message;
+- (void)setPercentDone:(int)percent;
+
+@end
+
+#endif // CHROME_BROWSER_UI_COCOA_INTENTS_WEB_INTENT_PROGRESS_VIEW_CONTROLLER_H_

Powered by Google App Engine
This is Rietveld 408576698