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/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 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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( | 632 autofill::SaveCardBubbleView* BrowserWindowCocoa::ShowSaveCreditCardBubble( |
633 content::WebContents* web_contents, | 633 content::WebContents* web_contents, |
634 autofill::SaveCardBubbleController* controller) { | 634 autofill::SaveCardBubbleController* controller, |
| 635 bool user_gesture) { |
635 NOTIMPLEMENTED(); | 636 NOTIMPLEMENTED(); |
636 return nullptr; | 637 return nullptr; |
637 } | 638 } |
638 | 639 |
639 void BrowserWindowCocoa::ShowTranslateBubble( | 640 void BrowserWindowCocoa::ShowTranslateBubble( |
640 content::WebContents* contents, | 641 content::WebContents* contents, |
641 translate::TranslateStep step, | 642 translate::TranslateStep step, |
642 translate::TranslateErrors::Type error_type, | 643 translate::TranslateErrors::Type error_type, |
643 bool is_user_gesture) { | 644 bool is_user_gesture) { |
644 ChromeTranslateClient* chrome_translate_client = | 645 ChromeTranslateClient* chrome_translate_client = |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
862 void BrowserWindowCocoa::UnhideDownloadShelf() { | 863 void BrowserWindowCocoa::UnhideDownloadShelf() { |
863 GetDownloadShelf()->Unhide(); | 864 GetDownloadShelf()->Unhide(); |
864 } | 865 } |
865 | 866 |
866 void BrowserWindowCocoa::HideDownloadShelf() { | 867 void BrowserWindowCocoa::HideDownloadShelf() { |
867 GetDownloadShelf()->Hide(); | 868 GetDownloadShelf()->Hide(); |
868 StatusBubble* statusBubble = GetStatusBubble(); | 869 StatusBubble* statusBubble = GetStatusBubble(); |
869 if (statusBubble) | 870 if (statusBubble) |
870 statusBubble->Hide(); | 871 statusBubble->Hide(); |
871 } | 872 } |
OLD | NEW |