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

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

Issue 6046009: Move base/mac_util.h to base/mac and use the base::mac namespace.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 months 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #import "importer_lock_dialog.h" 7 #import "importer_lock_dialog.h"
8 8
9 #include "app/l10n_util_mac.h" 9 #include "app/l10n_util_mac.h"
10 #include "base/mac_util.h"
11 #include "base/message_loop.h" 10 #include "base/message_loop.h"
12 #include "base/scoped_nsobject.h" 11 #include "base/scoped_nsobject.h"
13 #include "chrome/browser/importer/importer.h" 12 #include "chrome/browser/importer/importer.h"
14 #include "grit/chromium_strings.h" 13 #include "grit/chromium_strings.h"
15 #include "grit/generated_resources.h" 14 #include "grit/generated_resources.h"
16 15
17 void ImportLockDialogCocoa::ShowWarning(ImporterHost* importer) { 16 void ImportLockDialogCocoa::ShowWarning(ImporterHost* importer) {
18 scoped_nsobject<NSAlert> lock_alert([[NSAlert alloc] init]); 17 scoped_nsobject<NSAlert> lock_alert([[NSAlert alloc] init]);
19 [lock_alert addButtonWithTitle:l10n_util::GetNSStringWithFixup( 18 [lock_alert addButtonWithTitle:l10n_util::GetNSStringWithFixup(
20 IDS_IMPORTER_LOCK_OK)]; 19 IDS_IMPORTER_LOCK_OK)];
21 [lock_alert addButtonWithTitle:l10n_util::GetNSStringWithFixup( 20 [lock_alert addButtonWithTitle:l10n_util::GetNSStringWithFixup(
22 IDS_IMPORTER_LOCK_CANCEL)]; 21 IDS_IMPORTER_LOCK_CANCEL)];
23 [lock_alert setInformativeText:l10n_util::GetNSStringWithFixup( 22 [lock_alert setInformativeText:l10n_util::GetNSStringWithFixup(
24 IDS_IMPORTER_LOCK_TEXT)]; 23 IDS_IMPORTER_LOCK_TEXT)];
25 [lock_alert setMessageText:l10n_util::GetNSStringWithFixup( 24 [lock_alert setMessageText:l10n_util::GetNSStringWithFixup(
26 IDS_IMPORTER_LOCK_TITLE)]; 25 IDS_IMPORTER_LOCK_TITLE)];
27 26
28 if ([lock_alert runModal] == NSAlertFirstButtonReturn) { 27 if ([lock_alert runModal] == NSAlertFirstButtonReturn) {
29 MessageLoop::current()->PostTask(FROM_HERE, NewRunnableMethod( 28 MessageLoop::current()->PostTask(FROM_HERE, NewRunnableMethod(
30 importer, &ImporterHost::OnLockViewEnd, true)); 29 importer, &ImporterHost::OnLockViewEnd, true));
31 } else { 30 } else {
32 MessageLoop::current()->PostTask(FROM_HERE, NewRunnableMethod( 31 MessageLoop::current()->PostTask(FROM_HERE, NewRunnableMethod(
33 importer, &ImporterHost::OnLockViewEnd, false)); 32 importer, &ImporterHost::OnLockViewEnd, false));
34 } 33 }
35 } 34 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/import_settings_dialog.mm ('k') | chrome/browser/ui/cocoa/infobar_container_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698