forked from sanyaade-mobiledev/chromium.src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chrome.hid: enrich model with report IDs
- add report IDs and max report size - don't expose sensitive usages BUG=364423 R=rockot@chromium.org TESTS=run device_unittests (HidReportDescriptorTest) Review URL: https://codereview.chromium.org/317783010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@281133 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
jracle@logitech.com
committed
Jul 3, 2014
1 parent
5a43fe6
commit 9ff3823
Showing
27 changed files
with
1,257 additions
and
1,106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Copyright 2014 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include "device/hid/hid_collection_info.h" | ||
|
||
namespace device { | ||
|
||
HidCollectionInfo::HidCollectionInfo() | ||
: usage(HidUsageAndPage::kGenericDesktopUndefined, | ||
HidUsageAndPage::kPageUndefined) { | ||
} | ||
|
||
HidCollectionInfo::~HidCollectionInfo() { | ||
} | ||
|
||
} // namespace device |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Copyright 2014 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef DEVICE_HID_HID_COLLECTION_INFO_H_ | ||
#define DEVICE_HID_HID_COLLECTION_INFO_H_ | ||
|
||
#include <set> | ||
|
||
#include "device/hid/hid_usage_and_page.h" | ||
|
||
namespace device { | ||
|
||
struct HidCollectionInfo { | ||
HidCollectionInfo(); | ||
~HidCollectionInfo(); | ||
|
||
// Collection's usage ID. | ||
HidUsageAndPage usage; | ||
|
||
// HID report IDs which belong | ||
// to this collection or to its | ||
// embedded collections. | ||
std::set<int> report_ids; | ||
}; | ||
|
||
} // namespace device" | ||
|
||
#endif // DEVICE_HID_HID_COLLECTION_INFO_H_ |
Oops, something went wrong.