summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/location_bar/instant_opt_in_controller.mm
blob: 181dc444f81bbe62e7d1fda2874d44671f4f68f9 (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
31
// Copyright (c) 2010 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 "chrome/browser/cocoa/location_bar/instant_opt_in_controller.h"

#include "base/mac_util.h"

@implementation InstantOptInController

- (id)initWithDelegate:(InstantOptInControllerDelegate*)delegate {
  if ((self = [super initWithNibName:@"InstantOptIn"
                     bundle:mac_util::MainAppBundle()])) {
    delegate_ = delegate;
  }
  return self;
}

- (void)awakeFromNib {
  // TODO(rohitrao): Translate and resize strings.
}

- (IBAction)ok:(id)sender {
  delegate_->UserPressedOptIn(true);
}

- (IBAction)cancel:(id)sender {
  delegate_->UserPressedOptIn(false);
}

@end