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

Unified Diff: ash/touch/touchscreen_util.cc

Issue 618283003: Adds special support to the device manager for keyboards devices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change in ozone. Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: ash/touch/touchscreen_util.cc
diff --git a/ash/touch/touchscreen_util.cc b/ash/touch/touchscreen_util.cc
index b7f0b994ae7d2678ca93093858522ece54acbe1d..300d315c0e5730a1868fcb3a5d8dac1906595c24 100644
--- a/ash/touch/touchscreen_util.cc
+++ b/ash/touch/touchscreen_util.cc
@@ -7,6 +7,7 @@
#include <set>
#include "base/logging.h"
+#include "ui/events/input_device.h"
namespace ash {
@@ -15,7 +16,7 @@ void AssociateTouchscreens(std::vector<DisplayInfo>* displays,
std::set<int> no_match_touchscreen;
int internal_touchscreen = -1;
for (size_t i = 0; i < devices.size(); ++i) {
- if (devices[i].is_internal) {
+ if (devices[i].type == ui::InputDeviceType::INTERNAL) {
internal_touchscreen = i;
break;
}

Powered by Google App Engine
This is Rietveld 408576698