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

Side by Side Diff: ui/events/devices/input_device.cc

Issue 2825383003: Fix stylus tools palette. (Closed)
Patch Set: Fix nits. Created 3 years, 7 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
« no previous file with comments | « tools/metrics/histograms/enums.xml ('k') | ui/events/devices/touchscreen_device.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "ui/events/devices/input_device.h" 5 #include "ui/events/devices/input_device.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 namespace ui { 9 namespace ui {
10 10
11 // static 11 // static
12 const int InputDevice::kInvalidId = 0; 12 const int InputDevice::kInvalidId = 0;
13 13
14 InputDevice::InputDevice() 14 InputDevice::InputDevice()
15 : id(kInvalidId), type(InputDeviceType::INPUT_DEVICE_UNKNOWN) { 15 : id(kInvalidId),
16 } 16 type(InputDeviceType::INPUT_DEVICE_UNKNOWN),
17 vendor_id(0),
18 product_id(0) {}
17 19
18 InputDevice::InputDevice(int id, InputDeviceType type, const std::string& name) 20 InputDevice::InputDevice(int id, InputDeviceType type, const std::string& name)
19 : id(id), type(type), name(name), vendor_id(0), product_id(0) { 21 : id(id), type(type), name(name), vendor_id(0), product_id(0) {
20 } 22 }
21 23
22 InputDevice::InputDevice(int id, 24 InputDevice::InputDevice(int id,
23 InputDeviceType type, 25 InputDeviceType type,
24 const std::string& name, 26 const std::string& name,
25 const base::FilePath& sys_path, 27 const base::FilePath& sys_path,
26 uint16_t vendor, 28 uint16_t vendor,
27 uint16_t product) 29 uint16_t product)
28 : id(id), 30 : id(id),
29 type(type), 31 type(type),
30 name(name), 32 name(name),
31 sys_path(sys_path), 33 sys_path(sys_path),
32 vendor_id(vendor), 34 vendor_id(vendor),
33 product_id(product) {} 35 product_id(product) {}
34 36
35 InputDevice::InputDevice(const InputDevice& other) = default; 37 InputDevice::InputDevice(const InputDevice& other) = default;
36 38
37 InputDevice::~InputDevice() { 39 InputDevice::~InputDevice() {
38 } 40 }
39 41
40 } // namespace ui 42 } // namespace ui
OLDNEW
« no previous file with comments | « tools/metrics/histograms/enums.xml ('k') | ui/events/devices/touchscreen_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698