| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/browser/ui/browser_command_controller.h" | 5 #include "chrome/browser/ui/browser_command_controller.h" |
| 6 | 6 |
| 7 #include "base/prefs/pref_service.h" | 7 #include "base/prefs/pref_service.h" |
| 8 #include "chrome/app/chrome_command_ids.h" | 8 #include "chrome/app/chrome_command_ids.h" |
| 9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/chrome_notification_types.h" | 10 #include "chrome/browser/chrome_notification_types.h" |
| (...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 break; | 529 break; |
| 530 case IDC_PRINT: | 530 case IDC_PRINT: |
| 531 Print(browser_); | 531 Print(browser_); |
| 532 break; | 532 break; |
| 533 case IDC_ADVANCED_PRINT: | 533 case IDC_ADVANCED_PRINT: |
| 534 AdvancedPrint(browser_); | 534 AdvancedPrint(browser_); |
| 535 break; | 535 break; |
| 536 case IDC_PRINT_TO_DESTINATION: | 536 case IDC_PRINT_TO_DESTINATION: |
| 537 PrintToDestination(browser_); | 537 PrintToDestination(browser_); |
| 538 break; | 538 break; |
| 539 case IDC_TRANSLATE_PAGE: |
| 540 Translate(browser_); |
| 541 break; |
| 539 case IDC_ENCODING_AUTO_DETECT: | 542 case IDC_ENCODING_AUTO_DETECT: |
| 540 browser_->ToggleEncodingAutoDetect(); | 543 browser_->ToggleEncodingAutoDetect(); |
| 541 break; | 544 break; |
| 542 case IDC_ENCODING_UTF8: | 545 case IDC_ENCODING_UTF8: |
| 543 case IDC_ENCODING_UTF16LE: | 546 case IDC_ENCODING_UTF16LE: |
| 544 case IDC_ENCODING_ISO88591: | 547 case IDC_ENCODING_ISO88591: |
| 545 case IDC_ENCODING_WINDOWS1252: | 548 case IDC_ENCODING_WINDOWS1252: |
| 546 case IDC_ENCODING_GBK: | 549 case IDC_ENCODING_GBK: |
| 547 case IDC_ENCODING_GB18030: | 550 case IDC_ENCODING_GB18030: |
| 548 case IDC_ENCODING_BIG5HKSCS: | 551 case IDC_ENCODING_BIG5HKSCS: |
| (...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1304 | 1307 |
| 1305 BrowserWindow* BrowserCommandController::window() { | 1308 BrowserWindow* BrowserCommandController::window() { |
| 1306 return browser_->window(); | 1309 return browser_->window(); |
| 1307 } | 1310 } |
| 1308 | 1311 |
| 1309 Profile* BrowserCommandController::profile() { | 1312 Profile* BrowserCommandController::profile() { |
| 1310 return browser_->profile(); | 1313 return browser_->profile(); |
| 1311 } | 1314 } |
| 1312 | 1315 |
| 1313 } // namespace chrome | 1316 } // namespace chrome |
| OLD | NEW |