BookmarkManager: Fix 'new folder text field size changes on clicking it' issue.
[chromium-blink-merge.git] / chrome / browser / ui / autofill / credit_card_scanner_view_delegate.h
blob48956d232fa64bc417b7cef960a5dfa40ec2805d
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"
11 namespace autofill {
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 {
16 public:
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,
22 int expiration_month,
23 int expiration_year) = 0;
25 protected:
26 // Destroys the delegate.
27 virtual ~CreditCardScannerViewDelegate() {}
30 } // namespace autofill
32 #endif // CHROME_BROWSER_UI_AUTOFILL_CREDIT_CARD_SCANNER_VIEW_DELEGATE_H_