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

Side by Side Diff: chrome/browser/ui/autofill/save_card_bubble_controller.h

Issue 1568983002: Close the save card bubble on tab switch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef CHROME_BROWSER_UI_AUTOFILL_SAVE_CARD_BUBBLE_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_SAVE_CARD_BUBBLE_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_SAVE_CARD_BUBBLE_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_AUTOFILL_SAVE_CARD_BUBBLE_CONTROLLER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 23 matching lines...) Expand all
34 34
35 typedef std::vector<LegalMessageLine> LegalMessageLines; 35 typedef std::vector<LegalMessageLine> LegalMessageLines;
36 36
37 // Returns the title that should be displayed in the bubble. 37 // Returns the title that should be displayed in the bubble.
38 virtual base::string16 GetWindowTitle() const = 0; 38 virtual base::string16 GetWindowTitle() const = 0;
39 39
40 // Returns the explanatory text that should be displayed in the bubble. 40 // Returns the explanatory text that should be displayed in the bubble.
41 // Returns an empty string if no message should be displayed. 41 // Returns an empty string if no message should be displayed.
42 virtual base::string16 GetExplanatoryMessage() const = 0; 42 virtual base::string16 GetExplanatoryMessage() const = 0;
43 43
44 // Hides the bubble if it is currently showing.
45 virtual void HideBubble() = 0;
46
44 // Interaction. 47 // Interaction.
45 virtual void OnSaveButton() = 0; 48 virtual void OnSaveButton() = 0;
46 virtual void OnCancelButton() = 0; 49 virtual void OnCancelButton() = 0;
47 virtual void OnLearnMoreClicked() = 0; 50 virtual void OnLearnMoreClicked() = 0;
48 virtual void OnLegalMessageLinkClicked(const GURL& url) = 0; 51 virtual void OnLegalMessageLinkClicked(const GURL& url) = 0;
49 virtual void OnBubbleClosed() = 0; 52 virtual void OnBubbleClosed() = 0;
50 53
51 // State. 54 // State.
52 55
53 // Returns empty vector if no legal message should be shown. 56 // Returns empty vector if no legal message should be shown.
54 virtual const LegalMessageLines& GetLegalMessageLines() const = 0; 57 virtual const LegalMessageLines& GetLegalMessageLines() const = 0;
55 58
56 protected: 59 protected:
57 SaveCardBubbleController() {} 60 SaveCardBubbleController() {}
58 virtual ~SaveCardBubbleController() {} 61 virtual ~SaveCardBubbleController() {}
59 62
60 DISALLOW_COPY_AND_ASSIGN(SaveCardBubbleController); 63 DISALLOW_COPY_AND_ASSIGN(SaveCardBubbleController);
61 }; 64 };
62 65
63 } // namespace autofill 66 } // namespace autofill
64 67
65 #endif // CHROME_BROWSER_UI_AUTOFILL_SAVE_CARD_BUBBLE_CONTROLLER_H_ 68 #endif // CHROME_BROWSER_UI_AUTOFILL_SAVE_CARD_BUBBLE_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698