OLD | NEW |
---|---|
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 Loading... | |
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; | |
Evan Stade
2016/01/12 00:29:00
doesn't need to be here, SaveCardBubbleView doesn'
Justin Donnelly
2016/01/12 00:40:39
Done.
| |
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_ |
OLD | NEW |