| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #import "chrome/browser/ui/cocoa/instant_confirm_window_controller.h" | 5 #import "chrome/browser/ui/cocoa/instant_confirm_window_controller.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/mac_util.h" | 8 #include "base/mac_util.h" |
| 9 #include "chrome/browser/instant/instant_confirm_dialog.h" | 9 #include "chrome/browser/instant/instant_confirm_dialog.h" |
| 10 #include "chrome/browser/instant/instant_controller.h" | 10 #include "chrome/browser/instant/instant_controller.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 NSRect frame = [[self window] frame]; | 53 NSRect frame = [[self window] frame]; |
| 54 frame.size.height += delta; | 54 frame.size.height += delta; |
| 55 [[self window] setFrame:frame display:YES]; | 55 [[self window] setFrame:frame display:YES]; |
| 56 } | 56 } |
| 57 | 57 |
| 58 - (void)windowWillClose:(NSNotification*)notif { | 58 - (void)windowWillClose:(NSNotification*)notif { |
| 59 [self autorelease]; | 59 [self autorelease]; |
| 60 } | 60 } |
| 61 | 61 |
| 62 - (IBAction)learnMore:(id)sender { | 62 - (IBAction)learnMore:(id)sender { |
| 63 browser::ShowOptionsURL(profile_, GURL(browser::kInstantLearnMoreURL)); | 63 browser::ShowOptionsURL(profile_, browser::InstantLearnMoreURL()); |
| 64 } | 64 } |
| 65 | 65 |
| 66 - (IBAction)ok:(id)sender { | 66 - (IBAction)ok:(id)sender { |
| 67 InstantController::Enable(profile_); | 67 InstantController::Enable(profile_); |
| 68 [self cancel:sender]; | 68 [self cancel:sender]; |
| 69 } | 69 } |
| 70 | 70 |
| 71 - (IBAction)cancel:(id)sender { | 71 - (IBAction)cancel:(id)sender { |
| 72 [NSApp endSheet:[self window]]; | 72 [NSApp endSheet:[self window]]; |
| 73 [[self window] close]; | 73 [[self window] close]; |
| 74 } | 74 } |
| 75 | 75 |
| 76 @end | 76 @end |
| OLD | NEW |