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

Side by Side Diff: chrome/browser/ui/cocoa/browser_window_cocoa.mm

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/cocoa/browser_window_cocoa.h" 5 #include "chrome/browser/ui/cocoa/browser_window_cocoa.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #import "base/mac/sdk_forward_declarations.h" 10 #import "base/mac/sdk_forward_declarations.h"
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 updated_info.open_as_window = [open_as_window_checkbox state] == NSOnState; 622 updated_info.open_as_window = [open_as_window_checkbox state] == NSOnState;
623 updated_info.title = TrimText([app_title stringValue]); 623 updated_info.title = TrimText([app_title stringValue]);
624 624
625 callback.Run(true, updated_info); 625 callback.Run(true, updated_info);
626 return; 626 return;
627 } 627 }
628 628
629 callback.Run(false, web_app_info); 629 callback.Run(false, web_app_info);
630 } 630 }
631 631
632 autofill::SaveCardBubbleView* BrowserWindowCocoa::ShowSaveCreditCardBubble(
633 content::WebContents* web_contents,
634 autofill::SaveCardBubbleController* controller) {
635 NOTIMPLEMENTED();
636 return nullptr;
637 }
638
632 void BrowserWindowCocoa::ShowTranslateBubble( 639 void BrowserWindowCocoa::ShowTranslateBubble(
633 content::WebContents* contents, 640 content::WebContents* contents,
634 translate::TranslateStep step, 641 translate::TranslateStep step,
635 translate::TranslateErrors::Type error_type, 642 translate::TranslateErrors::Type error_type,
636 bool is_user_gesture) { 643 bool is_user_gesture) {
637 ChromeTranslateClient* chrome_translate_client = 644 ChromeTranslateClient* chrome_translate_client =
638 ChromeTranslateClient::FromWebContents(contents); 645 ChromeTranslateClient::FromWebContents(contents);
639 translate::LanguageState& language_state = 646 translate::LanguageState& language_state =
640 chrome_translate_client->GetLanguageState(); 647 chrome_translate_client->GetLanguageState();
641 language_state.SetTranslateEnabled(true); 648 language_state.SetTranslateEnabled(true);
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
855 void BrowserWindowCocoa::UnhideDownloadShelf() { 862 void BrowserWindowCocoa::UnhideDownloadShelf() {
856 GetDownloadShelf()->Unhide(); 863 GetDownloadShelf()->Unhide();
857 } 864 }
858 865
859 void BrowserWindowCocoa::HideDownloadShelf() { 866 void BrowserWindowCocoa::HideDownloadShelf() {
860 GetDownloadShelf()->Hide(); 867 GetDownloadShelf()->Hide();
861 StatusBubble* statusBubble = GetStatusBubble(); 868 StatusBubble* statusBubble = GetStatusBubble();
862 if (statusBubble) 869 if (statusBubble)
863 statusBubble->Hide(); 870 statusBubble->Hide();
864 } 871 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_cocoa.h ('k') | chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698