summaryrefslogtreecommitdiffstats
path: root/remoting/host/me2me_preference_pane_disable.mm
blob: 97bf3556215c094f5e37375814c4f7d0efda6651 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// 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_disable.h"

@implementation Me2MePreferencePaneDisable

@synthesize delegate = delegate_;

- (id)init {
  self = [super initWithNibName:@"me2me_preference_pane_disable"
                         bundle:[NSBundle bundleForClass:[self class]]];
  return self;
}

- (void)dealloc {
  [delegate_ release];
  [super dealloc];
}

- (void)setEnabled:(BOOL)enabled {
  [disable_button_ setEnabled:enabled];
}

- (void)onDisable:(id)sender {
  [delegate_ onDisable:self];
}

@end