• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 DEVICE_HID_HID_SERVICE_WIN_H_
6 #define DEVICE_HID_HID_SERVICE_WIN_H_
7 
8 #include <map>
9 
10 #include "device/hid/hid_device_info.h"
11 #include "device/hid/hid_service.h"
12 
13 namespace device {
14 
15 class HidConnection;
16 
17 class HidServiceWin : public HidService {
18  public:
19   HidServiceWin();
20 
21   virtual void GetDevices(std::vector<HidDeviceInfo>* devices) OVERRIDE;
22 
23   virtual scoped_refptr<HidConnection> Connect(const HidDeviceId& device_id)
24       OVERRIDE;
25 
26  private:
27   virtual ~HidServiceWin();
28 
29   void Enumerate();
30   void PlatformAddDevice(const std::string& device_path);
31   void PlatformRemoveDevice(const std::string& device_path);
32 
33   DISALLOW_COPY_AND_ASSIGN(HidServiceWin);
34 };
35 
36 }  // namespace device
37 
38 #endif  // DEVICE_HID_HID_SERVICE_WIN_H_
39