1 // Copyright 2014 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 #ifndef CHROME_BROWSER_UI_AUTOFILL_CREDIT_CARD_SCANNER_VIEW_DELEGATE_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_CREDIT_CARD_SCANNER_VIEW_DELEGATE_H_
8 #include "base/strings/string16.h"
9 #include "ui/gfx/native_widget_types.h"
13 // Receives notifications when credit card scanner UI is dismissed either due to
14 // user cancelling the scan or successfully completing the scan.
15 class CreditCardScannerViewDelegate
{
17 // Called when user cancelled the scan.
18 virtual void ScanCancelled() = 0;
20 // Called when the scan completed successfully.
21 virtual void ScanCompleted(const base::string16
& card_number
,
23 int expiration_year
) = 0;
26 // Destroys the delegate.
27 virtual ~CreditCardScannerViewDelegate() {}
30 } // namespace autofill
32 #endif // CHROME_BROWSER_UI_AUTOFILL_CREDIT_CARD_SCANNER_VIEW_DELEGATE_H_