| Index: chrome/browser/extensions/api/document_scan/document_scan_interface_nonchromeos.cc
|
| diff --git a/chrome/browser/extensions/api/document_scan/document_scan_interface_nonchromeos.cc b/chrome/browser/extensions/api/document_scan/document_scan_interface_nonchromeos.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a4b9af9abb1c5722ad84a9b353dfb838fbb87d71
|
| --- /dev/null
|
| +++ b/chrome/browser/extensions/api/document_scan/document_scan_interface_nonchromeos.cc
|
| @@ -0,0 +1,51 @@
|
| +// Copyright 2014 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/extensions/api/document_scan/document_scan_interface.h"
|
| +
|
| +using std::string;
|
| +using std::vector;
|
| +
|
| +namespace {
|
| +
|
| +const char kScanFunctionNotImplementedError[] = "Scan function not implemented";
|
| +
|
| +} // namespace
|
| +
|
| +namespace extensions {
|
| +
|
| +namespace api {
|
| +
|
| +class DocumentScanInterfaceImpl : public DocumentScanInterface {
|
| + public:
|
| + DocumentScanInterfaceImpl() {}
|
| + virtual ~DocumentScanInterfaceImpl() {}
|
| +
|
| + virtual void ListScanners(
|
| + const ListScannersResultsCallback& callback) OVERRIDE {
|
| + callback.Run(vector<ScannerDescription> (), "");
|
| + }
|
| + virtual void Scan(const string& scanner_name,
|
| + ScanMode mode,
|
| + int resolution_dpi,
|
| + const ScanResultsCallback& callback) OVERRIDE {
|
| + callback.Run("", kScanFunctionNotImplementedError);
|
| + }
|
| +
|
| + virtual string GetImageMimeType() const OVERRIDE {
|
| + return "";
|
| + }
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(DocumentScanInterfaceImpl);
|
| +};
|
| +
|
| +// static
|
| +DocumentScanInterface *DocumentScanInterface::CreateInstance() {
|
| + return new DocumentScanInterfaceImpl();
|
| +}
|
| +
|
| +} // namespace api
|
| +
|
| +} // namespace extensions
|
|
|