OLD | NEW |
---|---|
(Empty) | |
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. | |
4 | |
5 #ifndef CHROME_BROWSER_CHROMEOS_DEVICE_FAKE_INPUT_SERVICE_PROXY_H_ | |
6 #define CHROME_BROWSER_CHROMEOS_DEVICE_FAKE_INPUT_SERVICE_PROXY_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "base/callback.h" | |
11 #include "base/containers/hash_tables.h" | |
12 #include "base/observer_list.h" | |
13 #include "base/threading/thread_checker.h" | |
14 #include "chrome/browser/chromeos/device/input_service_proxy.h" | |
15 | |
16 | |
Nikita (slow)
2015/02/11 14:53:07
nit: drop empty line
merkulova
2015/02/13 10:00:04
Done.
| |
17 namespace chromeos { | |
18 | |
19 class FakeInputServiceProxy : public InputServiceProxy { | |
20 public: | |
21 FakeInputServiceProxy(); | |
22 ~FakeInputServiceProxy() override; | |
23 | |
24 // InputServiceProxy overrides: | |
25 static void WarmUp(); | |
26 void GetDevices(const GetDevicesCallback& callback) override; | |
27 void GetDeviceInfo(const std::string& id, | |
28 const GetDeviceInfoCallback& callback) override; | |
29 | |
30 void AddDevice(InputDeviceInfo& info); | |
31 void RemoveDevice(const std::string& id); | |
32 | |
33 private: | |
34 | |
35 typedef base::hash_map<std::string, InputDeviceInfo> DeviceMap; | |
36 | |
37 DeviceMap devices_; | |
38 | |
39 DISALLOW_COPY_AND_ASSIGN(FakeInputServiceProxy); | |
40 }; | |
41 | |
42 } // namespace chromeos | |
43 | |
44 #endif // CHROME_BROWSER_CHROMEOS_DEVICE_FAKE_INPUT_SERVICE_PROXY_H_ | |
OLD | NEW |