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

Side by Side Diff: chrome/browser/ui/browser_command_controller.cc

Issue 25373009: Translate: New Bubble UX (for the view toolkit) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bug fix: view id on tests Created 7 years, 1 month 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
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/browser_commands.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/browser_commands.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698