| 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 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 507 break; | 507 break; |
| 508 case IDC_PRINT: | 508 case IDC_PRINT: |
| 509 Print(browser_); | 509 Print(browser_); |
| 510 break; | 510 break; |
| 511 case IDC_ADVANCED_PRINT: | 511 case IDC_ADVANCED_PRINT: |
| 512 AdvancedPrint(browser_); | 512 AdvancedPrint(browser_); |
| 513 break; | 513 break; |
| 514 case IDC_PRINT_TO_DESTINATION: | 514 case IDC_PRINT_TO_DESTINATION: |
| 515 PrintToDestination(browser_); | 515 PrintToDestination(browser_); |
| 516 break; | 516 break; |
| 517 case IDC_TRANSLATE_PAGE: |
| 518 Translate(browser_); |
| 519 break; |
| 517 case IDC_ENCODING_AUTO_DETECT: | 520 case IDC_ENCODING_AUTO_DETECT: |
| 518 browser_->ToggleEncodingAutoDetect(); | 521 browser_->ToggleEncodingAutoDetect(); |
| 519 break; | 522 break; |
| 520 case IDC_ENCODING_UTF8: | 523 case IDC_ENCODING_UTF8: |
| 521 case IDC_ENCODING_UTF16LE: | 524 case IDC_ENCODING_UTF16LE: |
| 522 case IDC_ENCODING_ISO88591: | 525 case IDC_ENCODING_ISO88591: |
| 523 case IDC_ENCODING_WINDOWS1252: | 526 case IDC_ENCODING_WINDOWS1252: |
| 524 case IDC_ENCODING_GBK: | 527 case IDC_ENCODING_GBK: |
| 525 case IDC_ENCODING_GB18030: | 528 case IDC_ENCODING_GB18030: |
| 526 case IDC_ENCODING_BIG5HKSCS: | 529 case IDC_ENCODING_BIG5HKSCS: |
| (...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1273 | 1276 |
| 1274 BrowserWindow* BrowserCommandController::window() { | 1277 BrowserWindow* BrowserCommandController::window() { |
| 1275 return browser_->window(); | 1278 return browser_->window(); |
| 1276 } | 1279 } |
| 1277 | 1280 |
| 1278 Profile* BrowserCommandController::profile() { | 1281 Profile* BrowserCommandController::profile() { |
| 1279 return browser_->profile(); | 1282 return browser_->profile(); |
| 1280 } | 1283 } |
| 1281 | 1284 |
| 1282 } // namespace chrome | 1285 } // namespace chrome |
| OLD | NEW |