| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/ozone/evdev/input_device_factory_evdev.h" | 5 #include "ui/events/ozone/evdev/input_device_factory_evdev.h" |
| 6 | 6 |
| 7 #include <fcntl.h> | 7 #include <fcntl.h> |
| 8 #include <linux/input.h> | 8 #include <linux/input.h> |
| 9 #include <stddef.h> | 9 #include <stddef.h> |
| 10 | 10 |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 if (it->second->HasTouchscreen()) { | 421 if (it->second->HasTouchscreen()) { |
| 422 touchscreens.push_back(TouchscreenDevice(it->second->input_device(), | 422 touchscreens.push_back(TouchscreenDevice(it->second->input_device(), |
| 423 it->second->GetTouchscreenSize(), it->second->GetTouchPoints())); | 423 it->second->GetTouchscreenSize(), it->second->GetTouchPoints())); |
| 424 } | 424 } |
| 425 } | 425 } |
| 426 | 426 |
| 427 dispatcher_->DispatchTouchscreenDevicesUpdated(touchscreens); | 427 dispatcher_->DispatchTouchscreenDevicesUpdated(touchscreens); |
| 428 } | 428 } |
| 429 | 429 |
| 430 void InputDeviceFactoryEvdev::NotifyKeyboardsUpdated() { | 430 void InputDeviceFactoryEvdev::NotifyKeyboardsUpdated() { |
| 431 std::vector<KeyboardDevice> keyboards; | 431 std::vector<InputDevice> keyboards; |
| 432 for (auto it = converters_.begin(); it != converters_.end(); ++it) { | 432 for (auto it = converters_.begin(); it != converters_.end(); ++it) { |
| 433 if (it->second->HasKeyboard()) { | 433 if (it->second->HasKeyboard()) { |
| 434 keyboards.push_back(KeyboardDevice(it->second->input_device())); | 434 keyboards.push_back(InputDevice(it->second->input_device())); |
| 435 } | 435 } |
| 436 } | 436 } |
| 437 | 437 |
| 438 dispatcher_->DispatchKeyboardDevicesUpdated(keyboards); | 438 dispatcher_->DispatchKeyboardDevicesUpdated(keyboards); |
| 439 } | 439 } |
| 440 | 440 |
| 441 void InputDeviceFactoryEvdev::NotifyMouseDevicesUpdated() { | 441 void InputDeviceFactoryEvdev::NotifyMouseDevicesUpdated() { |
| 442 std::vector<InputDevice> mice; | 442 std::vector<InputDevice> mice; |
| 443 for (auto it = converters_.begin(); it != converters_.end(); ++it) { | 443 for (auto it = converters_.begin(); it != converters_.end(); ++it) { |
| 444 if (it->second->HasMouse()) { | 444 if (it->second->HasMouse()) { |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 std::vector<int> ids; | 485 std::vector<int> ids; |
| 486 gesture_property_provider_->GetDeviceIdsByType(type, &ids); | 486 gesture_property_provider_->GetDeviceIdsByType(type, &ids); |
| 487 for (size_t i = 0; i < ids.size(); ++i) { | 487 for (size_t i = 0; i < ids.size(); ++i) { |
| 488 SetGestureBoolProperty(gesture_property_provider_.get(), ids[i], name, | 488 SetGestureBoolProperty(gesture_property_provider_.get(), ids[i], name, |
| 489 value); | 489 value); |
| 490 } | 490 } |
| 491 #endif | 491 #endif |
| 492 } | 492 } |
| 493 | 493 |
| 494 } // namespace ui | 494 } // namespace ui |
| OLD | NEW |