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

Side by Side Diff: ui/events/ozone/evdev/input_device_factory_evdev.cc

Issue 2019413002: Remove KeyboardDevice class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes for comments. Created 4 years, 6 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
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ui/events/ozone/evdev/event_factory_evdev.cc ('k') | ui/events/ozone/evdev/touch_event_converter_evdev_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698