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/app_controller_mac.h" | 5 #import "chrome/browser/app_controller_mac.h" |
6 | 6 |
7 #include "app/l10n_util_mac.h" | 7 #include "app/l10n_util_mac.h" |
8 #include "base/auto_reset.h" | 8 #include "base/auto_reset.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/mac_util.h" | 10 #include "base/mac_util.h" |
11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
| 12 #include "base/string_number_conversions.h" |
12 #include "base/sys_string_conversions.h" | 13 #include "base/sys_string_conversions.h" |
13 #include "chrome/app/chrome_dll_resource.h" | 14 #include "chrome/app/chrome_dll_resource.h" |
14 #include "chrome/browser/browser.h" | 15 #include "chrome/browser/browser.h" |
15 #include "chrome/browser/browser_init.h" | 16 #include "chrome/browser/browser_init.h" |
16 #include "chrome/browser/browser_list.h" | 17 #include "chrome/browser/browser_list.h" |
17 #include "chrome/browser/browser_process.h" | 18 #include "chrome/browser/browser_process.h" |
18 #include "chrome/browser/browser_shutdown.h" | 19 #include "chrome/browser/browser_shutdown.h" |
19 #include "chrome/browser/browser_window.h" | 20 #include "chrome/browser/browser_window.h" |
20 #include "chrome/browser/chrome_thread.h" | 21 #include "chrome/browser/chrome_thread.h" |
21 #import "chrome/browser/cocoa/about_window_controller.h" | 22 #import "chrome/browser/cocoa/about_window_controller.h" |
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 exitTitle = l10n_util::GetNSString( | 526 exitTitle = l10n_util::GetNSString( |
526 IDS_SINGLE_DOWNLOAD_REMOVE_CONFIRM_OK_BUTTON_LABEL); | 527 IDS_SINGLE_DOWNLOAD_REMOVE_CONFIRM_OK_BUTTON_LABEL); |
527 | 528 |
528 // Wait for download button text. | 529 // Wait for download button text. |
529 waitTitle = l10n_util::GetNSString( | 530 waitTitle = l10n_util::GetNSString( |
530 IDS_SINGLE_DOWNLOAD_REMOVE_CONFIRM_CANCEL_BUTTON_LABEL); | 531 IDS_SINGLE_DOWNLOAD_REMOVE_CONFIRM_CANCEL_BUTTON_LABEL); |
531 } else { | 532 } else { |
532 // Dialog text: warning and explanation. | 533 // Dialog text: warning and explanation. |
533 warningText = l10n_util::GetNSStringF( | 534 warningText = l10n_util::GetNSStringF( |
534 IDS_MULTIPLE_DOWNLOADS_REMOVE_CONFIRM_WARNING, product_name, | 535 IDS_MULTIPLE_DOWNLOADS_REMOVE_CONFIRM_WARNING, product_name, |
535 IntToString16(downloadCount)); | 536 base::IntToString16(downloadCount)); |
536 explanationText = l10n_util::GetNSStringF( | 537 explanationText = l10n_util::GetNSStringF( |
537 IDS_MULTIPLE_DOWNLOADS_REMOVE_CONFIRM_EXPLANATION, product_name); | 538 IDS_MULTIPLE_DOWNLOADS_REMOVE_CONFIRM_EXPLANATION, product_name); |
538 | 539 |
539 // Cancel downloads and exit button text. | 540 // Cancel downloads and exit button text. |
540 exitTitle = l10n_util::GetNSString( | 541 exitTitle = l10n_util::GetNSString( |
541 IDS_MULTIPLE_DOWNLOADS_REMOVE_CONFIRM_OK_BUTTON_LABEL); | 542 IDS_MULTIPLE_DOWNLOADS_REMOVE_CONFIRM_OK_BUTTON_LABEL); |
542 | 543 |
543 // Wait for downloads button text. | 544 // Wait for downloads button text. |
544 waitTitle = l10n_util::GetNSString( | 545 waitTitle = l10n_util::GetNSString( |
545 IDS_MULTIPLE_DOWNLOADS_REMOVE_CONFIRM_CANCEL_BUTTON_LABEL); | 546 IDS_MULTIPLE_DOWNLOADS_REMOVE_CONFIRM_CANCEL_BUTTON_LABEL); |
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1064 [appController showPreferencesWindow:nil page:page profile:profile]; | 1065 [appController showPreferencesWindow:nil page:page profile:profile]; |
1065 } | 1066 } |
1066 | 1067 |
1067 namespace app_controller_mac { | 1068 namespace app_controller_mac { |
1068 | 1069 |
1069 bool IsOpeningNewWindow() { | 1070 bool IsOpeningNewWindow() { |
1070 return g_is_opening_new_window; | 1071 return g_is_opening_new_window; |
1071 } | 1072 } |
1072 | 1073 |
1073 } // namespace app_controller_mac | 1074 } // namespace app_controller_mac |
OLD | NEW |