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
3 // found in the LICENSE file.
5 #include "chrome/browser/ui/autofill/test_generated_credit_card_bubble_view.h"
7 #include "chrome/browser/ui/autofill/generated_credit_card_bubble_controller.h"
12 base::WeakPtr
<TestGeneratedCreditCardBubbleView
>
13 TestGeneratedCreditCardBubbleView::Create(
14 const base::WeakPtr
<GeneratedCreditCardBubbleController
>& controller
) {
15 return (new TestGeneratedCreditCardBubbleView(controller
))->GetWeakPtr();
18 TestGeneratedCreditCardBubbleView::~TestGeneratedCreditCardBubbleView() {}
20 void TestGeneratedCreditCardBubbleView::Show() {
24 void TestGeneratedCreditCardBubbleView::Hide() {
28 bool TestGeneratedCreditCardBubbleView::IsHiding() const {
32 base::WeakPtr
<TestGeneratedCreditCardBubbleView
>
33 TestGeneratedCreditCardBubbleView::GetWeakPtr() {
34 return weak_ptr_factory_
.GetWeakPtr();
37 TestGeneratedCreditCardBubbleView::TestGeneratedCreditCardBubbleView(
38 const base::WeakPtr
<GeneratedCreditCardBubbleController
>& controller
)
39 : controller_(controller
),
41 weak_ptr_factory_(this) {}
43 } // namespace autofill