OLD | NEW |
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 | 6 |
7 @protocol Me2MePreferencePaneConfirmPinHandler <NSObject> | 7 @protocol Me2MePreferencePaneConfirmPinHandler <NSObject> |
8 - (void)applyConfiguration:(id)sender pin:(NSString*)pin; | 8 - (void)applyConfiguration:(id)sender pin:(NSString*)pin; |
9 @end | 9 @end |
10 | 10 |
11 @interface Me2MePreferencePaneConfirmPin : NSViewController { | 11 @interface Me2MePreferencePaneConfirmPin : NSViewController { |
12 IBOutlet NSTextField* email_; | 12 IBOutlet NSTextField* email_; |
13 IBOutlet NSTextField* pin_; | 13 IBOutlet NSTextField* pin_; |
14 IBOutlet NSButton* apply_button_; | 14 IBOutlet NSButton* apply_button_; |
15 id delegate_; | 15 id delegate_; |
16 } | 16 } |
17 | 17 |
18 @property (retain) id delegate; | 18 @property (retain) id delegate; |
19 | 19 |
20 - (void)setEmail:(NSString*)email; | 20 - (void)setEmail:(NSString*)email; |
21 - (void)setButtonText:(NSString*)text; | 21 - (void)setButtonText:(NSString*)text; |
22 - (void)setEnabled:(BOOL)enabled; | 22 - (void)setEnabled:(BOOL)enabled; |
23 - (void)resetPin; | 23 - (void)resetPin; |
24 - (IBAction)onApply:(id)sender; | 24 - (IBAction)onApply:(id)sender; |
25 | 25 |
26 @end | 26 @end |
OLD | NEW |