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_IMPL_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_SAVE_CARD_BUBBLE_CONTROLLER_IMPL_H_ |
6 #define CHROME_BROWSER_UI_AUTOFILL_SAVE_CARD_BUBBLE_CONTROLLER_IMPL_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_SAVE_CARD_BUBBLE_CONTROLLER_IMPL_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/timer/elapsed_timer.h" | 10 #include "base/timer/elapsed_timer.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 63 |
64 // Returns true if Omnibox save credit card icon should be visible. | 64 // Returns true if Omnibox save credit card icon should be visible. |
65 bool IsIconVisible() const; | 65 bool IsIconVisible() const; |
66 | 66 |
67 // Returns nullptr if no bubble is currently shown. | 67 // Returns nullptr if no bubble is currently shown. |
68 SaveCardBubbleView* save_card_bubble_view() const; | 68 SaveCardBubbleView* save_card_bubble_view() const; |
69 | 69 |
70 // SaveCardBubbleController: | 70 // SaveCardBubbleController: |
71 base::string16 GetWindowTitle() const override; | 71 base::string16 GetWindowTitle() const override; |
72 base::string16 GetExplanatoryMessage() const override; | 72 base::string16 GetExplanatoryMessage() const override; |
| 73 void HideBubble() override; |
73 void OnSaveButton() override; | 74 void OnSaveButton() override; |
74 void OnCancelButton() override; | 75 void OnCancelButton() override; |
75 void OnLearnMoreClicked() override; | 76 void OnLearnMoreClicked() override; |
76 void OnLegalMessageLinkClicked(const GURL& url) override; | 77 void OnLegalMessageLinkClicked(const GURL& url) override; |
77 void OnBubbleClosed() override; | 78 void OnBubbleClosed() override; |
78 | 79 |
79 const LegalMessageLines& GetLegalMessageLines() const override; | 80 const LegalMessageLines& GetLegalMessageLines() const override; |
80 | 81 |
81 protected: | 82 protected: |
82 explicit SaveCardBubbleControllerImpl(content::WebContents* web_contents); | 83 explicit SaveCardBubbleControllerImpl(content::WebContents* web_contents); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 // Used to measure the amount of time on a page; if it's less than some | 122 // Used to measure the amount of time on a page; if it's less than some |
122 // reasonable limit, then don't close the bubble upon navigation. | 123 // reasonable limit, then don't close the bubble upon navigation. |
123 scoped_ptr<base::ElapsedTimer> timer_; | 124 scoped_ptr<base::ElapsedTimer> timer_; |
124 | 125 |
125 DISALLOW_COPY_AND_ASSIGN(SaveCardBubbleControllerImpl); | 126 DISALLOW_COPY_AND_ASSIGN(SaveCardBubbleControllerImpl); |
126 }; | 127 }; |
127 | 128 |
128 } // namespace autofill | 129 } // namespace autofill |
129 | 130 |
130 #endif // CHROME_BROWSER_UI_AUTOFILL_SAVE_CARD_BUBBLE_CONTROLLER_IMPL_H_ | 131 #endif // CHROME_BROWSER_UI_AUTOFILL_SAVE_CARD_BUBBLE_CONTROLLER_IMPL_H_ |
OLD | NEW |