Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Side by Side Diff: chrome/browser/ui/autofill/test_autofill_credit_card_bubble.h

Issue 21668003: Implement newly saved card bubble for realz and update generated card bubble to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698