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

Side by Side Diff: chrome/browser/ui/cocoa/intents/web_intent_view_controller_progress.h

Issue 11009017: Mac Web Intents Part 11: Progress view (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: a 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_COCOA_INTENTS_WEB_INTENT_VIEW_CONTROLLER_MESSAGE_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_INTENTS_WEB_INTENT_VIEW_CONTROLLER_PROGRESS_H_
6 #define CHROME_BROWSER_UI_COCOA_INTENTS_WEB_INTENT_VIEW_CONTROLLER_MESSAGE_H_ 6 #define CHROME_BROWSER_UI_COCOA_INTENTS_WEB_INTENT_VIEW_CONTROLLER_PROGRESS_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/memory/scoped_nsobject.h" 10 #include "base/memory/scoped_nsobject.h"
11 #import "chrome/browser/ui/cocoa/intents/web_intent_view_controller.h" 11 #import "chrome/browser/ui/cocoa/intents/web_intent_view_controller.h"
12 12
13 // The message view simply shows a title and message. 13 @class SpinnerProgressIndicator;
14 @interface WebIntentViewControllerMessage : NSViewController 14
15 <WebIntentViewControllerProtocol> { 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 WebIntentViewControllerProgress : NSViewController
Nico 2012/10/02 03:47:25 As I mentioned in an earlier CL of this saga, I th
sail 2012/10/10 02:00:10 Done.
18 <WebIntentViewControllerProtocol> {
16 @private 19 @private
17 scoped_nsobject<NSTextField> titleTextField_; 20 scoped_nsobject<NSString> title_;
21 scoped_nsobject<NSString> message_;
18 scoped_nsobject<NSTextField> messageTextField_; 22 scoped_nsobject<NSTextField> messageTextField_;
23 scoped_nsobject<SpinnerProgressIndicator> progressIndicator_;
19 } 24 }
20 25
26 - (SpinnerProgressIndicator*)progressIndicator;
27
21 - (void)setTitle:(NSString*)title; 28 - (void)setTitle:(NSString*)title;
22 - (void)setMessage:(NSString*)message; 29 - (void)setMessage:(NSString*)message;
30 - (void)setPercentDone:(int)percent;
23 31
24 // WebIntentViewControllerProtocol implementation. 32 // WebIntentViewControllerProtocol implementation.
25 - (NSSize)minimumSizeForInnerWidth:(CGFloat)innerWidth; 33 - (NSSize)minimumSizeForInnerWidth:(CGFloat)innerWidth;
26 - (void)layoutWithInnerFrame:(NSRect)innerFrame; 34 - (void)layoutWithInnerFrame:(NSRect)innerFrame;
27 35
28 @end 36 @end
29 37
30 #endif // CHROME_BROWSER_UI_COCOA_INTENTS_WEB_INTENT_VIEW_CONTROLLER_MESSAGE_H_ 38 #endif // CHROME_BROWSER_UI_COCOA_INTENTS_WEB_INTENT_VIEW_CONTROLLER_PROGRESS_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698