OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.h" |
| 6 #include "chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_tester_cocoa.
h" |
| 7 |
| 8 namespace autofill { |
| 9 |
| 10 scoped_ptr<CardUnmaskPromptViewTester> CardUnmaskPromptViewTester::For( |
| 11 CardUnmaskPromptView* view) { |
| 12 return scoped_ptr<CardUnmaskPromptViewTester>( |
| 13 new CardUnmaskPromptViewTesterCocoa( |
| 14 static_cast<CardUnmaskPromptViewBridge*>(view))); |
| 15 } |
| 16 |
| 17 CardUnmaskPromptViewTesterCocoa::CardUnmaskPromptViewTesterCocoa( |
| 18 CardUnmaskPromptViewBridge* bridge) |
| 19 : bridge_(bridge) { |
| 20 } |
| 21 |
| 22 CardUnmaskPromptViewTesterCocoa::~CardUnmaskPromptViewTesterCocoa() { |
| 23 } |
| 24 |
| 25 void CardUnmaskPromptViewTesterCocoa::CancelForTesting() { |
| 26 bridge_->PerformClose(); |
| 27 } |
| 28 |
| 29 } // namespace autofill |
OLD | NEW |