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

Side by Side Diff: device/gamepad/gamepad_platform_data_fetcher_linux.h

Issue 2808093006: [Device Service] Move Gamepad Blink headers to be part of the Gamepad client library (Closed)
Patch Set: clean up code Created 3 years, 8 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 DEVICE_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_LINUX_H_ 5 #ifndef DEVICE_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_LINUX_H_
6 #define DEVICE_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_LINUX_H_ 6 #define DEVICE_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_LINUX_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 29 matching lines...) Expand all
40 void GetGamepadData(bool devices_changed_hint) override; 40 void GetGamepadData(bool devices_changed_hint) override;
41 41
42 private: 42 private:
43 void OnAddedToProvider() override; 43 void OnAddedToProvider() override;
44 44
45 void RefreshDevice(udev_device* dev); 45 void RefreshDevice(udev_device* dev);
46 void EnumerateDevices(); 46 void EnumerateDevices();
47 void ReadDeviceData(size_t index); 47 void ReadDeviceData(size_t index);
48 48
49 // File descriptor for the /dev/input/js* devices. -1 if not in use. 49 // File descriptor for the /dev/input/js* devices. -1 if not in use.
50 int device_fd_[blink::WebGamepads::kItemsLengthCap]; 50 int device_fd_[Gamepads::kItemsLengthCap];
mattreynolds 2017/04/13 01:53:33 gamepads.h is getting included by gamepad_data_fet
juncai 2017/04/13 23:55:52 Done.
51 51
52 std::unique_ptr<device::UdevLinux> udev_; 52 std::unique_ptr<device::UdevLinux> udev_;
53 53
54 DISALLOW_COPY_AND_ASSIGN(GamepadPlatformDataFetcherLinux); 54 DISALLOW_COPY_AND_ASSIGN(GamepadPlatformDataFetcherLinux);
55 }; 55 };
56 56
57 } // namespace device 57 } // namespace device
58 58
59 #endif // DEVICE_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_LINUX_H_ 59 #endif // DEVICE_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_LINUX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698