OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/ui/autofill/credit_card_scanner_view.h" | 5 #include "chrome/browser/ui/autofill/credit_card_scanner_view.h" |
6 | 6 |
7 namespace autofill { | 7 namespace autofill { |
8 | 8 |
9 // Not implemented on other platforms yet. | 9 // Not implemented on other platforms yet. |
10 #if !defined(OS_ANDROID) | 10 #if !defined(OS_ANDROID) || defined(USE_AURA) |
11 // static | 11 // static |
12 bool CreditCardScannerView::CanShow() { | 12 bool CreditCardScannerView::CanShow() { |
13 return false; | 13 return false; |
14 } | 14 } |
15 | 15 |
16 // static | 16 // static |
17 scoped_ptr<CreditCardScannerView> CreditCardScannerView::Create( | 17 scoped_ptr<CreditCardScannerView> CreditCardScannerView::Create( |
18 const base::WeakPtr<CreditCardScannerViewDelegate>& delegate, | 18 const base::WeakPtr<CreditCardScannerViewDelegate>& delegate, |
19 content::WebContents* web_contents) { | 19 content::WebContents* web_contents) { |
20 return scoped_ptr<CreditCardScannerView>(); | 20 return scoped_ptr<CreditCardScannerView>(); |
21 } | 21 } |
22 #endif // !defined(OS_ANDROID) | 22 #endif // !defined(OS_ANDROID) |
23 | 23 |
24 } // namespace autofill | 24 } // namespace autofill |
OLD | NEW |