summaryrefslogtreecommitdiffstats
path: root/chromeos/dbus/fake_lorgnette_manager_client.h
diff options
context:
space:
mode:
authorpstew@chromium.org <pstew@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-16 05:11:41 +0000
committerpstew@chromium.org <pstew@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-16 05:11:41 +0000
commit1b8509aeeba108f226cbe4fdc00b98b7becd9648 (patch)
tree0379771556f44dace0d5ca2c9658149ed970b88e /chromeos/dbus/fake_lorgnette_manager_client.h
parent922bd4ab867a05ddb6f3a3a6f3d0e8fe14d1696a (diff)
downloadchromium_src-1b8509aeeba108f226cbe4fdc00b98b7becd9648.zip
chromium_src-1b8509aeeba108f226cbe4fdc00b98b7becd9648.tar.gz
chromium_src-1b8509aeeba108f226cbe4fdc00b98b7becd9648.tar.bz2
Add Lorgnette Manager Client
Add a DBus client that can trigger document scanning. BUG=358344 Review URL: https://codereview.chromium.org/234423005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@264118 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/dbus/fake_lorgnette_manager_client.h')
-rw-r--r--chromeos/dbus/fake_lorgnette_manager_client.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/chromeos/dbus/fake_lorgnette_manager_client.h b/chromeos/dbus/fake_lorgnette_manager_client.h
new file mode 100644
index 0000000..7f514f5
--- /dev/null
+++ b/chromeos/dbus/fake_lorgnette_manager_client.h
@@ -0,0 +1,36 @@
+// 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.
+
+#ifndef CHROMEOS_DBUS_FAKE_LORGNETTE_MANAGER_CLIENT_H_
+#define CHROMEOS_DBUS_FAKE_LORGNETTE_MANAGER_CLIENT_H_
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "chromeos/dbus/lorgnette_manager_client.h"
+
+namespace chromeos {
+
+// Lorgnette LorgnetteManagerClient implementation used on Linux desktop,
+// which does nothing.
+class CHROMEOS_EXPORT FakeLorgnetteManagerClient
+ : public LorgnetteManagerClient {
+ public:
+ FakeLorgnetteManagerClient();
+ virtual ~FakeLorgnetteManagerClient();
+
+ virtual void Init(dbus::Bus* bus) OVERRIDE;
+
+ virtual void ListScanners(const ListScannersCallback& callback) OVERRIDE;
+ virtual void ScanImage(std::string device_name,
+ base::PlatformFile file,
+ const ScanProperties& properties,
+ const ScanImageCallback& callback) OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(FakeLorgnetteManagerClient);
+};
+
+} // namespace chromeos
+
+#endif // CHROMEOS_DBUS_FAKE_LORGNETTE_MANAGER_CLIENT_H_