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

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

Issue 1396923003: Autofill: Replace "save credit card" infobar with a bubble (Views only). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: defined(TOOLKIT_VIEWS) -> defined(TOOLKIT_VIEWS) && !defined(OS_MACOSX). Created 5 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
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/command_line.h" 7 #include "base/command_line.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "chrome/app/chrome_command_ids.h" 9 #include "chrome/app/chrome_command_ids.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 break; 543 break;
544 case IDC_VIEW_SOURCE: 544 case IDC_VIEW_SOURCE:
545 ViewSelectedSource(browser_); 545 ViewSelectedSource(browser_);
546 break; 546 break;
547 case IDC_EMAIL_PAGE_LOCATION: 547 case IDC_EMAIL_PAGE_LOCATION:
548 EmailPageLocation(browser_); 548 EmailPageLocation(browser_);
549 break; 549 break;
550 case IDC_PRINT: 550 case IDC_PRINT:
551 Print(browser_); 551 Print(browser_);
552 break; 552 break;
553
553 #if defined(ENABLE_BASIC_PRINTING) 554 #if defined(ENABLE_BASIC_PRINTING)
554 case IDC_BASIC_PRINT: 555 case IDC_BASIC_PRINT:
555 content::RecordAction(base::UserMetricsAction("Accel_Advanced_Print")); 556 content::RecordAction(base::UserMetricsAction("Accel_Advanced_Print"));
556 BasicPrint(browser_); 557 BasicPrint(browser_);
557 break; 558 break;
558 #endif // ENABLE_BASIC_PRINTING 559 #endif // ENABLE_BASIC_PRINTING
560
561 // TODO(bondd): Implement save credit card bubble and icon on Mac.
562 #if defined(TOOLKIT_VIEWS) && !defined(OS_MACOSX)
563 case IDC_SAVE_CREDIT_CARD_FOR_PAGE:
564 SaveCreditCard(browser_);
565 break;
566 #endif
567
559 case IDC_TRANSLATE_PAGE: 568 case IDC_TRANSLATE_PAGE:
560 Translate(browser_); 569 Translate(browser_);
561 break; 570 break;
562 case IDC_MANAGE_PASSWORDS_FOR_PAGE: 571 case IDC_MANAGE_PASSWORDS_FOR_PAGE:
563 ManagePasswordsForPage(browser_); 572 ManagePasswordsForPage(browser_);
564 break; 573 break;
565 574
566 // Page encoding commands 575 // Page encoding commands
567 case IDC_ENCODING_AUTO_DETECT: 576 case IDC_ENCODING_AUTO_DETECT:
568 browser_->ToggleEncodingAutoDetect(); 577 browser_->ToggleEncodingAutoDetect();
(...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after
1373 1382
1374 BrowserWindow* BrowserCommandController::window() { 1383 BrowserWindow* BrowserCommandController::window() {
1375 return browser_->window(); 1384 return browser_->window();
1376 } 1385 }
1377 1386
1378 Profile* BrowserCommandController::profile() { 1387 Profile* BrowserCommandController::profile() {
1379 return browser_->profile(); 1388 return browser_->profile();
1380 } 1389 }
1381 1390
1382 } // namespace chrome 1391 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/save_card_bubble_view.h ('k') | chrome/browser/ui/browser_commands.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698