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.
5 #include "ui/events/devices/input_device.h"
12 const int InputDevice::kInvalidId
= 0;
14 InputDevice::InputDevice()
15 : id(kInvalidId
), type(InputDeviceType::INPUT_DEVICE_UNKNOWN
) {
18 InputDevice::InputDevice(int id
, InputDeviceType type
, const std::string
& name
)
19 : id(id
), type(type
), name(name
), vendor_id(0), product_id(0) {
22 InputDevice::InputDevice(int id
,
24 const std::string
& name
,
27 : id(id
), type(type
), name(name
), vendor_id(vendor
), product_id(product
) {
30 InputDevice::~InputDevice() {