| 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_TEST_AUTOFILL_CREDIT_CARD_BUBBLE_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_TEST_AUTOFILL_CREDIT_CARD_BUBBLE_H_ |
| 6 #define CHROME_BROWSER_UI_AUTOFILL_TEST_AUTOFILL_CREDIT_CARD_BUBBLE_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_TEST_AUTOFILL_CREDIT_CARD_BUBBLE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 virtual bool IsHiding() const OVERRIDE; | 33 virtual bool IsHiding() const OVERRIDE; |
| 34 | 34 |
| 35 base::WeakPtr<TestAutofillCreditCardBubble> GetWeakPtr(); | 35 base::WeakPtr<TestAutofillCreditCardBubble> GetWeakPtr(); |
| 36 | 36 |
| 37 bool showing() const { return showing_; } | 37 bool showing() const { return showing_; } |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 explicit TestAutofillCreditCardBubble( | 40 explicit TestAutofillCreditCardBubble( |
| 41 const base::WeakPtr<AutofillCreditCardBubbleController>& controller); | 41 const base::WeakPtr<AutofillCreditCardBubbleController>& controller); |
| 42 | 42 |
| 43 // A weak reference to the controller that operates this bubble. |
| 44 base::WeakPtr<AutofillCreditCardBubbleController> controller_; |
| 45 |
| 43 // Whether the bubble is currently showing or not. | 46 // Whether the bubble is currently showing or not. |
| 44 bool showing_; | 47 bool showing_; |
| 45 | 48 |
| 46 base::WeakPtrFactory<TestAutofillCreditCardBubble> weak_ptr_factory_; | 49 base::WeakPtrFactory<TestAutofillCreditCardBubble> weak_ptr_factory_; |
| 47 | 50 |
| 48 DISALLOW_COPY_AND_ASSIGN(TestAutofillCreditCardBubble); | 51 DISALLOW_COPY_AND_ASSIGN(TestAutofillCreditCardBubble); |
| 49 }; | 52 }; |
| 50 | 53 |
| 51 } // namespace autofill | 54 } // namespace autofill |
| 52 | 55 |
| 53 #endif // CHROME_BROWSER_UI_AUTOFILL_TEST_AUTOFILL_CREDIT_CARD_BUBBLE_H_ | 56 #endif // CHROME_BROWSER_UI_AUTOFILL_TEST_AUTOFILL_CREDIT_CARD_BUBBLE_H_ |
| OLD | NEW |