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

Unified Diff: chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_tester_cocoa.mm

Issue 904613006: Autofill: First step toward CVC unmask prompt dialog on OSX. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename new files and classes to include word 'View'. Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_tester_cocoa.mm
diff --git a/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_tester_cocoa.mm b/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_tester_cocoa.mm
new file mode 100644
index 0000000000000000000000000000000000000000..793a5cf0a83660e0d23f72a4907a3d637dd44522
--- /dev/null
+++ b/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_tester_cocoa.mm
@@ -0,0 +1,29 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.h"
+#include "chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_tester_cocoa.h"
+
+namespace autofill {
+
+scoped_ptr<CardUnmaskPromptViewTester> CardUnmaskPromptViewTester::For(
+ CardUnmaskPromptView* view) {
+ return scoped_ptr<CardUnmaskPromptViewTester>(
+ new CardUnmaskPromptViewTesterCocoa(
+ static_cast<CardUnmaskPromptViewBridge*>(view)));
+}
+
+CardUnmaskPromptViewTesterCocoa::CardUnmaskPromptViewTesterCocoa(
+ CardUnmaskPromptViewBridge* bridge)
+ : bridge_(bridge) {
+}
+
+CardUnmaskPromptViewTesterCocoa::~CardUnmaskPromptViewTesterCocoa() {
+}
+
+void CardUnmaskPromptViewTesterCocoa::CancelForTesting() {
+ bridge_->PerformClose();
+}
+
+} // namespace autofill

Powered by Google App Engine
This is Rietveld 408576698