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

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: Sky's review (2) Created 7 years, 2 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
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 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 break; 528 break;
529 case IDC_PRINT: 529 case IDC_PRINT:
530 Print(browser_); 530 Print(browser_);
531 break; 531 break;
532 case IDC_ADVANCED_PRINT: 532 case IDC_ADVANCED_PRINT:
533 AdvancedPrint(browser_); 533 AdvancedPrint(browser_);
534 break; 534 break;
535 case IDC_PRINT_TO_DESTINATION: 535 case IDC_PRINT_TO_DESTINATION:
536 PrintToDestination(browser_); 536 PrintToDestination(browser_);
537 break; 537 break;
538 case IDC_TRANSLATE_PAGE:
539 Translate(browser_);
540 break;
538 case IDC_ENCODING_AUTO_DETECT: 541 case IDC_ENCODING_AUTO_DETECT:
539 browser_->ToggleEncodingAutoDetect(); 542 browser_->ToggleEncodingAutoDetect();
540 break; 543 break;
541 case IDC_ENCODING_UTF8: 544 case IDC_ENCODING_UTF8:
542 case IDC_ENCODING_UTF16LE: 545 case IDC_ENCODING_UTF16LE:
543 case IDC_ENCODING_ISO88591: 546 case IDC_ENCODING_ISO88591:
544 case IDC_ENCODING_WINDOWS1252: 547 case IDC_ENCODING_WINDOWS1252:
545 case IDC_ENCODING_GBK: 548 case IDC_ENCODING_GBK:
546 case IDC_ENCODING_GB18030: 549 case IDC_ENCODING_GB18030:
547 case IDC_ENCODING_BIG5HKSCS: 550 case IDC_ENCODING_BIG5HKSCS:
(...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after
1298 1301
1299 BrowserWindow* BrowserCommandController::window() { 1302 BrowserWindow* BrowserCommandController::window() {
1300 return browser_->window(); 1303 return browser_->window();
1301 } 1304 }
1302 1305
1303 Profile* BrowserCommandController::profile() { 1306 Profile* BrowserCommandController::profile() {
1304 return browser_->profile(); 1307 return browser_->profile();
1305 } 1308 }
1306 1309
1307 } // namespace chrome 1310 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698