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

Side by Side Diff: extensions/browser/api/document_scan/document_scan_interface_chromeos.h

Issue 899523004: Move chrome.documentScan API to extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated DEPS 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 unified diff | Download patch
OLDNEW
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 #ifndef CHROME_BROWSER_EXTENSIONS_API_DOCUMENT_SCAN_DOCUMENT_SCAN_INTERFACE_CHRO MEOS_H_ 5 #ifndef EXTENSIONS_BROWSER_API_DOCUMENT_SCAN_DOCUMENT_SCAN_INTERFACE_CHROMEOS_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_DOCUMENT_SCAN_DOCUMENT_SCAN_INTERFACE_CHRO MEOS_H_ 6 #define EXTENSIONS_BROWSER_API_DOCUMENT_SCAN_DOCUMENT_SCAN_INTERFACE_CHROMEOS_H_
7 7
8 #include "chrome/browser/extensions/api/document_scan/document_scan_interface.h" 8 #include "extensions/browser/api/document_scan/document_scan_interface.h"
9 #include "chromeos/dbus/lorgnette_manager_client.h" 9 #include "chromeos/dbus/lorgnette_manager_client.h"
10 10
11 namespace extensions { 11 namespace extensions {
12 12
13 namespace api { 13 namespace core_api {
14 14
15 class DocumentScanInterfaceChromeos : public DocumentScanInterface { 15 class DocumentScanInterfaceChromeos : public DocumentScanInterface {
16 public: 16 public:
17 DocumentScanInterfaceChromeos(); 17 DocumentScanInterfaceChromeos();
18 ~DocumentScanInterfaceChromeos() override; 18 ~DocumentScanInterfaceChromeos() override;
19 19
20 void ListScanners(const ListScannersResultsCallback& callback) override; 20 void ListScanners(const ListScannersResultsCallback& callback) override;
21 void Scan(const std::string& scanner_name, 21 void Scan(const std::string& scanner_name,
22 ScanMode mode, 22 ScanMode mode,
23 int resolution_dpi, 23 int resolution_dpi,
24 const ScanResultsCallback& callback) override; 24 const ScanResultsCallback& callback) override;
25 25
26 private: 26 private:
27 friend class DocumentScanInterfaceChromeosTest; 27 friend class DocumentScanInterfaceChromeosTest;
28 28
29 void OnScannerListReceived( 29 void OnScannerListReceived(
30 const ListScannersResultsCallback& callback, 30 const ListScannersResultsCallback& callback,
31 bool succeeded, 31 bool succeeded,
32 const chromeos::LorgnetteManagerClient::ScannerTable &scanners); 32 const chromeos::LorgnetteManagerClient::ScannerTable& scanners);
33 void OnScanCompleted(const ScanResultsCallback &callback, 33 void OnScanCompleted(const ScanResultsCallback& callback,
34 bool succeeded, 34 bool succeeded,
35 const std::string& image_data); 35 const std::string& image_data);
36 chromeos::LorgnetteManagerClient* GetLorgnetteManagerClient(); 36 chromeos::LorgnetteManagerClient* GetLorgnetteManagerClient();
37 37
38 // Guaranteed to outlive |this|. 38 // Guaranteed to outlive |this|.
39 chromeos::LorgnetteManagerClient* lorgnette_manager_client_; 39 chromeos::LorgnetteManagerClient* lorgnette_manager_client_;
40 40
41 DISALLOW_COPY_AND_ASSIGN(DocumentScanInterfaceChromeos); 41 DISALLOW_COPY_AND_ASSIGN(DocumentScanInterfaceChromeos);
42 }; 42 };
43 43
44 } // namespace api 44 } // namespace core_api
45 45
46 } // namespace extensions 46 } // namespace extensions
47 47
48 #endif // CHROME_BROWSER_EXTENSIONS_API_DOCUMENT_SCAN_DOCUMENT_SCAN_INTERFACE_C HROMEOS_H_ 48 #endif // EXTENSIONS_BROWSER_API_DOCUMENT_SCAN_DOCUMENT_SCAN_INTERFACE_CHROMEOS _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698