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

Side by Side Diff: remoting/host/me2me_preference_pane.h

Issue 10411032: Implement Mac pref-pane UI mockups (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix license header Created 8 years, 7 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
« no previous file with comments | « no previous file | remoting/host/me2me_preference_pane.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #import <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 #import <PreferencePanes/PreferencePanes.h> 6 #import <PreferencePanes/PreferencePanes.h>
7 #import <SecurityInterface/SFAuthorizationView.h> 7 #import <SecurityInterface/SFAuthorizationView.h>
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 19 matching lines...) Expand all
30 30
31 private: 31 private:
32 Json::Value config_; 32 Json::Value config_;
33 std::string filename_; 33 std::string filename_;
34 34
35 DISALLOW_COPY_AND_ASSIGN(JsonHostConfig); 35 DISALLOW_COPY_AND_ASSIGN(JsonHostConfig);
36 }; 36 };
37 37
38 } 38 }
39 39
40 @class Me2MePreferencePaneConfirmPin;
41 @class Me2MePreferencePaneDisable;
42
40 @interface Me2MePreferencePane : NSPreferencePane { 43 @interface Me2MePreferencePane : NSPreferencePane {
44 Me2MePreferencePaneConfirmPin* confirm_pin_view_;
45 Me2MePreferencePaneDisable* disable_view_;
46
41 IBOutlet NSTextField* status_message_; 47 IBOutlet NSTextField* status_message_;
42 IBOutlet NSButton* disable_button_; 48 IBOutlet NSBox* box_;
43 IBOutlet NSTextField* pin_instruction_message_;
44 IBOutlet NSTextField* email_;
45 IBOutlet NSTextField* pin_;
46 IBOutlet NSButton* apply_button_;
47 IBOutlet SFAuthorizationView* authorization_view_; 49 IBOutlet SFAuthorizationView* authorization_view_;
48 50
49 // Holds the new proposed configuration if a temporary config file is 51 // Holds the new proposed configuration if a temporary config file is
50 // present. 52 // present.
51 scoped_ptr<remoting::JsonHostConfig> config_; 53 scoped_ptr<remoting::JsonHostConfig> config_;
52 54
53 NSTimer* service_status_timer_; 55 NSTimer* service_status_timer_;
54 56
55 // These flags determine the UI state. These are computed in the 57 // These flags determine the UI state. These are computed in the
56 // update...Status methods. 58 // update...Status methods.
57 BOOL is_service_running_; 59 BOOL is_service_running_;
58 BOOL is_pane_unlocked_; 60 BOOL is_pane_unlocked_;
59 61
60 // True if a new proposed config file has been loaded into memory. 62 // True if a new proposed config file has been loaded into memory.
61 BOOL have_new_config_; 63 BOOL have_new_config_;
62 } 64 }
63 65
64 - (void)mainViewDidLoad; 66 - (void)mainViewDidLoad;
65 - (void)willSelect; 67 - (void)willSelect;
66 - (void)willUnselect; 68 - (void)willUnselect;
67 - (IBAction)onDisable:(id)sender; 69 - (void)onDisable:(id)sender;
68 - (IBAction)onApply:(id)sender; 70 - (void)applyConfiguration:(id)sender
71 pin:(NSString*)pin;
69 - (void)onNewConfigFile:(NSNotification*)notification; 72 - (void)onNewConfigFile:(NSNotification*)notification;
70 - (void)refreshServiceStatus:(NSTimer*)timer; 73 - (void)refreshServiceStatus:(NSTimer*)timer;
71 - (void)authorizationViewDidAuthorize:(SFAuthorizationView*)view; 74 - (void)authorizationViewDidAuthorize:(SFAuthorizationView*)view;
72 - (void)authorizationViewDidDeauthorize:(SFAuthorizationView*)view; 75 - (void)authorizationViewDidDeauthorize:(SFAuthorizationView*)view;
73 - (void)updateServiceStatus; 76 - (void)updateServiceStatus;
74 - (void)updateAuthorizationStatus; 77 - (void)updateAuthorizationStatus;
75 78
76 // Read any new config file if present. If a config file is successfully read, 79 // Read any new config file if present. If a config file is successfully read,
77 // this deletes the file and keeps the config data loaded in memory. If this 80 // this deletes the file and keeps the config data loaded in memory. If this
78 // method is called a second time (when the file has been deleted), the current 81 // method is called a second time (when the file has been deleted), the current
(...skipping 19 matching lines...) Expand all
98 101
99 // Save the new config to the system, and either start the service or inform 102 // Save the new config to the system, and either start the service or inform
100 // the currently-running service of the new config. 103 // the currently-running service of the new config.
101 - (void)applyNewServiceConfig; 104 - (void)applyNewServiceConfig;
102 105
103 - (BOOL)runHelperAsRootWithCommand:(const char*)command 106 - (BOOL)runHelperAsRootWithCommand:(const char*)command
104 inputData:(const std::string&)input_data; 107 inputData:(const std::string&)input_data;
105 - (BOOL)sendJobControlMessage:(const char*)launch_key; 108 - (BOOL)sendJobControlMessage:(const char*)launch_key;
106 109
107 @end 110 @end
OLDNEW
« no previous file with comments | « no previous file | remoting/host/me2me_preference_pane.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698