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

Side by Side Diff: chrome/browser/ui/cocoa/intents/web_intent_picker_view_controller.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_PICKER_VIEW_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_INTENTS_WEB_INTENT_PICKER_VIEW_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_INTENTS_WEB_INTENT_PICKER_VIEW_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_INTENTS_WEB_INTENT_PICKER_VIEW_CONTROLLER_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 #include "ui/gfx/size.h" 11 #include "ui/gfx/size.h"
12 12
13 class WebIntentPickerCocoa2; 13 class WebIntentPickerCocoa2;
14 @class WebIntentMessageViewController; 14 @class WebIntentMessageViewController;
15 @class WebIntentProgressViewController;
15 16
16 // The different states a picker dialog can be in. 17 // The different states a picker dialog can be in.
17 enum WebIntentPickerState { 18 enum WebIntentPickerState {
19 PICKER_STATE_WAITING,
18 PICKER_STATE_NO_SERVICE, 20 PICKER_STATE_NO_SERVICE,
21 PICKER_STATE_INSTALLING_EXTENSION,
19 }; 22 };
20 23
21 // Manages the web intent picker UI. The view is meant to be embedded in either 24 // Manages the web intent picker UI. The view is meant to be embedded in either
22 // a constrained window or a bubble. 25 // a constrained window or a bubble.
23 @interface WebIntentPickerViewController : NSViewController { 26 @interface WebIntentPickerViewController : NSViewController {
24 @private 27 @private
25 WebIntentPickerCocoa2* picker_; // weak 28 WebIntentPickerCocoa2* picker_; // weak
26 WebIntentPickerState state_; 29 WebIntentPickerState state_;
27 scoped_nsobject<NSButton> closeButton_; 30 scoped_nsobject<NSButton> closeButton_;
28 scoped_nsobject<WebIntentMessageViewController> 31 scoped_nsobject<WebIntentMessageViewController>
29 messageViewController_; 32 messageViewController_;
33 scoped_nsobject<WebIntentProgressViewController>
34 progressViewController_;
30 } 35 }
31 36
32 - (id)initWithPicker:(WebIntentPickerCocoa2*)picker; 37 - (id)initWithPicker:(WebIntentPickerCocoa2*)picker;
33 38
34 - (NSButton*)closeButton; 39 - (NSButton*)closeButton;
35 40
36 // Get the current state. 41 // Get the current state.
37 - (WebIntentPickerState)state; 42 - (WebIntentPickerState)state;
38 43
39 - (WebIntentMessageViewController*)messageViewController; 44 - (WebIntentMessageViewController*)messageViewController;
45 - (WebIntentProgressViewController*)progressViewController;
40 46
41 // Update the dialog state and perform layout. 47 // Update the dialog state and perform layout.
42 - (void)update; 48 - (void)update;
43 49
44 @end 50 @end
45 51
46 #endif // CHROME_BROWSER_UI_COCOA_INTENTS_WEB_INTENT_PICKER_VIEW_CONTROLLER_H_ 52 #endif // CHROME_BROWSER_UI_COCOA_INTENTS_WEB_INTENT_PICKER_VIEW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/download/download_util.cc ('k') | chrome/browser/ui/cocoa/intents/web_intent_picker_view_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698