instant_opt_in_controller.mm revision 3f50c38dc070f4bb515c1b64450dae14f316474e
1// Copyright (c) 2010 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 "chrome/browser/ui/cocoa/location_bar/instant_opt_in_controller.h" 6 7#include "base/mac/mac_util.h" 8 9@implementation InstantOptInController 10 11- (id)initWithDelegate:(InstantOptInControllerDelegate*)delegate { 12 if ((self = [super initWithNibName:@"InstantOptIn" 13 bundle:base::mac::MainAppBundle()])) { 14 delegate_ = delegate; 15 } 16 return self; 17} 18 19- (void)awakeFromNib { 20 // TODO(rohitrao): Translate and resize strings. 21} 22 23- (IBAction)ok:(id)sender { 24 delegate_->UserPressedOptIn(true); 25} 26 27- (IBAction)cancel:(id)sender { 28 delegate_->UserPressedOptIn(false); 29} 30 31@end 32