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

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

Issue 864123004: [Ozone] Fix InputControllerEvdev::HasTouchpad() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 if (converter.HasTouchscreen()) 423 if (converter.HasTouchscreen())
424 NotifyTouchscreensUpdated(); 424 NotifyTouchscreensUpdated();
425 425
426 if (converter.HasKeyboard()) 426 if (converter.HasKeyboard())
427 NotifyKeyboardsUpdated(); 427 NotifyKeyboardsUpdated();
428 428
429 if (converter.HasMouse()) 429 if (converter.HasMouse())
430 NotifyMouseDevicesUpdated(); 430 NotifyMouseDevicesUpdated();
431 431
432 if (converter.HasTouchpad()) 432 if (converter.HasTouchpad())
433 NotifyMouseDevicesUpdated(); 433 NotifyTouchpadDevicesUpdated();
434 } 434 }
435 435
436 void InputDeviceFactoryEvdev::NotifyTouchscreensUpdated() { 436 void InputDeviceFactoryEvdev::NotifyTouchscreensUpdated() {
437 std::vector<TouchscreenDevice> touchscreens; 437 std::vector<TouchscreenDevice> touchscreens;
438 for (auto it = converters_.begin(); it != converters_.end(); ++it) { 438 for (auto it = converters_.begin(); it != converters_.end(); ++it) {
439 if (it->second->HasTouchscreen()) { 439 if (it->second->HasTouchscreen()) {
440 // TODO(spang): Extract the number of touch-points supported by the 440 // TODO(spang): Extract the number of touch-points supported by the
441 // device. 441 // device.
442 const int touch_points = 11; 442 const int touch_points = 11;
443 touchscreens.push_back(TouchscreenDevice( 443 touchscreens.push_back(TouchscreenDevice(
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 std::vector<int> ids; 510 std::vector<int> ids;
511 gesture_property_provider_->GetDeviceIdsByType(type, &ids); 511 gesture_property_provider_->GetDeviceIdsByType(type, &ids);
512 for (size_t i = 0; i < ids.size(); ++i) { 512 for (size_t i = 0; i < ids.size(); ++i) {
513 SetGestureBoolProperty(gesture_property_provider_.get(), ids[i], name, 513 SetGestureBoolProperty(gesture_property_provider_.get(), ids[i], name,
514 value); 514 value);
515 } 515 }
516 #endif 516 #endif
517 } 517 }
518 518
519 } // namespace ui 519 } // namespace ui
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698