Index: remoting/host/me2me_preference_pane_confirm_pin.mm |
diff --git a/remoting/host/me2me_preference_pane_confirm_pin.mm b/remoting/host/me2me_preference_pane_confirm_pin.mm |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1c091c9d0b72834ae50262dee6a9bbcab50b8568 |
--- /dev/null |
+++ b/remoting/host/me2me_preference_pane_confirm_pin.mm |
@@ -0,0 +1,44 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#import "me2me_preference_pane_confirm_pin.h" |
+ |
+@implementation Me2MePreferencePaneConfirmPin |
+ |
+@synthesize delegate = delegate_; |
+ |
+- (id)init { |
+ self = [super initWithNibName:@"me2me_preference_pane_confirm_pin" |
+ bundle:[NSBundle bundleForClass:[self class]]]; |
+ return self; |
+} |
+ |
+- (void)dealloc { |
+ [delegate_ release]; |
+ [super dealloc]; |
+} |
+ |
+- (void)setEmail:(NSString*)email { |
+ [email_ setStringValue:email]; |
+} |
+ |
+- (void)setButtonText:(NSString*)text { |
+ [apply_button_ setTitle:text]; |
+} |
+ |
+- (void)setEnabled:(BOOL)enabled { |
+ [apply_button_ setEnabled:enabled]; |
+ [pin_ setEnabled:enabled]; |
+} |
+ |
+- (void)resetPin { |
+ [pin_ setStringValue:@""]; |
+} |
+ |
+- (void)onApply:(id)sender { |
+ [delegate_ applyConfiguration:self |
+ pin:[pin_ stringValue]]; |
+} |
+ |
+@end |