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_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_SAVE_CARD_BUBBLE_VIEW_H_ |
6 #define CHROME_BROWSER_UI_AUTOFILL_SAVE_CARD_BUBBLE_VIEW_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_SAVE_CARD_BUBBLE_VIEW_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 | 9 |
10 namespace autofill { | 10 namespace autofill { |
11 | 11 |
12 // The cross-platform UI interface which displays the "Save credit card?" | 12 // The cross-platform UI interface which displays the "Save credit card?" |
13 // bubble. This object is responsible for its own lifetime. | 13 // bubble. This object is responsible for its own lifetime. |
14 class SaveCardBubbleView { | 14 class SaveCardBubbleView { |
15 public: | 15 public: |
16 virtual void Show() = 0; | 16 // Called to close the bubble and prevent future callbacks into the |
17 virtual void Close() = 0; | 17 // controller. |
18 virtual void ControllerGone() = 0; | 18 virtual void Hide() = 0; |
19 | |
20 protected: | |
21 SaveCardBubbleView() {} | |
22 virtual ~SaveCardBubbleView() {} | |
23 | |
24 private: | |
25 DISALLOW_COPY_AND_ASSIGN(SaveCardBubbleView); | |
26 }; | 19 }; |
27 | 20 |
28 } // namespace autofill | 21 } // namespace autofill |
29 | 22 |
30 #endif // CHROME_BROWSER_UI_AUTOFILL_SAVE_CARD_BUBBLE_VIEW_H_ | 23 #endif // CHROME_BROWSER_UI_AUTOFILL_SAVE_CARD_BUBBLE_VIEW_H_ |
OLD | NEW |