OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 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_INTENTS_WEB_INTENT_PROGRESS_VIEW_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_INTENTS_WEB_INTENT_PROGRESS_VIEW_CONTROLLER_H_ |
| 7 |
| 8 #import <Cocoa/Cocoa.h> |
| 9 |
| 10 #include "base/memory/scoped_nsobject.h" |
| 11 #import "chrome/browser/ui/cocoa/intents/web_intent_view_controller.h" |
| 12 |
| 13 @class SpinnerProgressIndicator; |
| 14 |
| 15 // The progress view shows a progress indicator and a label underneath it. The |
| 16 // label is made by joining the title and the message. |
| 17 @interface WebIntentProgressViewController : NSViewController |
| 18 <WebIntentViewController> { |
| 19 @private |
| 20 scoped_nsobject<NSString> title_; |
| 21 scoped_nsobject<NSString> message_; |
| 22 scoped_nsobject<NSTextField> messageTextField_; |
| 23 scoped_nsobject<SpinnerProgressIndicator> progressIndicator_; |
| 24 } |
| 25 |
| 26 - (SpinnerProgressIndicator*)progressIndicator; |
| 27 - (void)setTitle:(NSString*)title; |
| 28 - (void)setMessage:(NSString*)message; |
| 29 - (void)setPercentDone:(int)percent; |
| 30 |
| 31 @end |
| 32 |
| 33 #endif // CHROME_BROWSER_UI_COCOA_INTENTS_WEB_INTENT_PROGRESS_VIEW_CONTROLLER_H
_ |
OLD | NEW |