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