Add ICU message format support
[chromium-blink-merge.git] / ui / events / devices / input_device.cc
blob11058e78dca55adb812dc4294cd0434d89827384
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"
7 #include <string>
9 namespace ui {
11 // static
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,
23 InputDeviceType type,
24 const std::string& name,
25 uint16_t vendor,
26 uint16_t product)
27 : id(id), type(type), name(name), vendor_id(vendor), product_id(product) {
30 InputDevice::~InputDevice() {
33 } // namespace ui