Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: chrome/browser/ui/cocoa/instant_confirm_window_controller.mm

Issue 5601003: Localize instant string. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/instant/instant_confirm_dialog.cc ('k') | chrome/browser/ui/cocoa/preferences_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698