OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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_HID_HID_USAGE_AND_PAGE_H_ | 5 #ifndef DEVICE_HID_HID_USAGE_AND_PAGE_H_ |
6 #define DEVICE_HID_HID_USAGE_AND_PAGE_H_ | 6 #define DEVICE_HID_HID_USAGE_AND_PAGE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 | 9 |
10 namespace device { | 10 namespace device { |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
119 kGenericDesktopSystemDisplaySwap = 0xb6, | 119 kGenericDesktopSystemDisplaySwap = 0xb6, |
120 }; | 120 }; |
121 | 121 |
122 HidUsageAndPage(uint16_t usage, Page usage_page) | 122 HidUsageAndPage(uint16_t usage, Page usage_page) |
123 : usage(usage), usage_page(usage_page) {} | 123 : usage(usage), usage_page(usage_page) {} |
124 ~HidUsageAndPage() {} | 124 ~HidUsageAndPage() {} |
125 | 125 |
126 uint16_t usage; | 126 uint16_t usage; |
127 Page usage_page; | 127 Page usage_page; |
128 | 128 |
129 bool operator==(const HidUsageAndPage& other) const; | 129 // Such usages can raise security or privacy concerns. |
Ken Rockot(use gerrit already)
2014/06/06 20:04:44
Function docs should be third-person declarative s
jracle (use Gerrit)
2014/06/07 12:56:22
Got it.
On 2014/06/06 20:04:44, Ken Rockot wrote:
| |
130 bool IsSensitive() const; | |
Ken Rockot(use gerrit already)
2014/06/06 20:04:44
How about IsProtected()
jracle (use Gerrit)
2014/06/07 12:56:22
I'll rename with you proposal. Understand mine is
| |
130 }; | 131 }; |
131 | 132 |
132 } // namespace device | 133 } // namespace device |
133 | 134 |
134 #endif // DEVICE_HID_HID_USAGE_AND_PAGE_H_ | 135 #endif // DEVICE_HID_HID_USAGE_AND_PAGE_H_ |
OLD | NEW |