OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_GENERATED_CREDIT_CARD_BUBBLE_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_GENERATED_CREDIT_CARD_BUBBLE_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_AUTOFILL_GENERATED_CREDIT_CARD_BUBBLE_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_GENERATED_CREDIT_CARD_BUBBLE_CONTROLLER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 // Show a bubble to educate the user about generated (fronting) cards and how | 60 // Show a bubble to educate the user about generated (fronting) cards and how |
61 // they are used to bill their original (backing) card. | 61 // they are used to bill their original (backing) card. |
62 static void Show(content::WebContents* contents, | 62 static void Show(content::WebContents* contents, |
63 const base::string16& fronting_card_name, | 63 const base::string16& fronting_card_name, |
64 const base::string16& backing_card_name); | 64 const base::string16& backing_card_name); |
65 | 65 |
66 // content::WebContentsObserver: | 66 // content::WebContentsObserver: |
67 virtual void DidNavigateMainFrame( | 67 virtual void DidNavigateMainFrame( |
68 const content::LoadCommittedDetails& details, | 68 const content::LoadCommittedDetails& details, |
69 const content::FrameNavigateParams& params) OVERRIDE; | 69 const content::FrameNavigateParams& params) override; |
70 | 70 |
71 // Returns whether |bubble_| is currently in the process of hiding. | 71 // Returns whether |bubble_| is currently in the process of hiding. |
72 bool IsHiding() const; | 72 bool IsHiding() const; |
73 | 73 |
74 // Returns the image that should be shown as an icon in the omnibox. | 74 // Returns the image that should be shown as an icon in the omnibox. |
75 gfx::Image AnchorIcon() const; | 75 gfx::Image AnchorIcon() const; |
76 | 76 |
77 // The title of the bubble. | 77 // The title of the bubble. |
78 const base::string16& TitleText() const; | 78 const base::string16& TitleText() const; |
79 | 79 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 | 164 |
165 // A weak pointer factory for |Create()|. | 165 // A weak pointer factory for |Create()|. |
166 base::WeakPtrFactory<GeneratedCreditCardBubbleController> weak_ptr_factory_; | 166 base::WeakPtrFactory<GeneratedCreditCardBubbleController> weak_ptr_factory_; |
167 | 167 |
168 DISALLOW_COPY_AND_ASSIGN(GeneratedCreditCardBubbleController); | 168 DISALLOW_COPY_AND_ASSIGN(GeneratedCreditCardBubbleController); |
169 }; | 169 }; |
170 | 170 |
171 } // namespace autofill | 171 } // namespace autofill |
172 | 172 |
173 #endif // CHROME_BROWSER_UI_AUTOFILL_GENERATED_CREDIT_CARD_BUBBLE_CONTROLLER_H_ | 173 #endif // CHROME_BROWSER_UI_AUTOFILL_GENERATED_CREDIT_CARD_BUBBLE_CONTROLLER_H_ |
OLD | NEW |