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

Side by Side Diff: device/gamepad/gamepad_platform_data_fetcher_mac.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_MAC_H_ 5 #ifndef DEVICE_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_MAC_H_
6 #define DEVICE_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_MAC_H_ 6 #define DEVICE_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_MAC_H_
7 7
8 #include <CoreFoundation/CoreFoundation.h> 8 #include <CoreFoundation/CoreFoundation.h>
9 #include <IOKit/hid/IOHIDManager.h> 9 #include <IOKit/hid/IOHIDManager.h>
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 void ValueChanged(IOHIDValueRef value); 70 void ValueChanged(IOHIDValueRef value);
71 71
72 void RegisterForNotifications(); 72 void RegisterForNotifications();
73 void UnregisterFromNotifications(); 73 void UnregisterFromNotifications();
74 74
75 // Side-band data that's not passed to the consumer, but we need to maintain 75 // Side-band data that's not passed to the consumer, but we need to maintain
76 // to update data_. 76 // to update data_.
77 struct AssociatedData { 77 struct AssociatedData {
78 int location_id; 78 int location_id;
79 IOHIDDeviceRef device_ref; 79 IOHIDDeviceRef device_ref;
80 IOHIDElementRef button_elements[blink::WebGamepad::kButtonsLengthCap]; 80 IOHIDElementRef button_elements[Gamepad::kButtonsLengthCap];
mattreynolds 2017/04/13 01:53:33 Same here, gamepad.h is included by gamepad_data_f
juncai 2017/04/13 23:55:52 Done.
81 IOHIDElementRef axis_elements[blink::WebGamepad::kAxesLengthCap]; 81 IOHIDElementRef axis_elements[Gamepad::kAxesLengthCap];
82 CFIndex axis_minimums[blink::WebGamepad::kAxesLengthCap]; 82 CFIndex axis_minimums[Gamepad::kAxesLengthCap];
83 CFIndex axis_maximums[blink::WebGamepad::kAxesLengthCap]; 83 CFIndex axis_maximums[Gamepad::kAxesLengthCap];
84 CFIndex axis_report_sizes[blink::WebGamepad::kAxesLengthCap]; 84 CFIndex axis_report_sizes[Gamepad::kAxesLengthCap];
85 }; 85 };
86 AssociatedData associated_[blink::WebGamepads::kItemsLengthCap]; 86 AssociatedData associated_[Gamepads::kItemsLengthCap];
87 87
88 DISALLOW_COPY_AND_ASSIGN(GamepadPlatformDataFetcherMac); 88 DISALLOW_COPY_AND_ASSIGN(GamepadPlatformDataFetcherMac);
89 }; 89 };
90 90
91 } // namespace device 91 } // namespace device
92 92
93 #endif // DEVICE_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_MAC_H_ 93 #endif // DEVICE_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698