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

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: Rebase to master. 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
« no previous file with comments | « ash/touch/touch_transformer_controller_unittest.cc ('k') | ash/touch/touchscreen_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/touch/touchscreen_util.cc
diff --git a/ash/touch/touchscreen_util.cc b/ash/touch/touchscreen_util.cc
index b7f0b994ae7d2678ca93093858522ece54acbe1d..898c9248a33cd466e244d713bac56a016b25f9a8 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::INPUT_DEVICE_INTERNAL) {
internal_touchscreen = i;
break;
}
« no previous file with comments | « ash/touch/touch_transformer_controller_unittest.cc ('k') | ash/touch/touchscreen_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698