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

Unified Diff: ash/touch/touchscreen_util.h

Issue 336863002: Moving input device hotplug event processing outside of ui/display (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove TouchscreenDelegate references from display_unittests Created 6 years, 3 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.cc ('k') | ash/touch/touchscreen_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/touch/touchscreen_util.h
diff --git a/ash/touch/touchscreen_util.h b/ash/touch/touchscreen_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..e580f6c96ab2c9c94f5e9db234aa676255999eb5
--- /dev/null
+++ b/ash/touch/touchscreen_util.h
@@ -0,0 +1,24 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_TOUCH_TOUCHSCREEN_UTIL_H_
+#define ASH_TOUCH_TOUCHSCREEN_UTIL_H_
+
+#include <vector>
+
+#include "ash/ash_export.h"
+#include "ash/display/display_info.h"
+#include "ui/events/touchscreen_device.h"
+
+namespace ash {
+
+// Given a list of displays and a list of touchscreens, associate them. The
+// information in |displays| will be updated to reflect the mapping.
+ASH_EXPORT void AssociateTouchscreens(
+ std::vector<DisplayInfo>* displays,
+ const std::vector<ui::TouchscreenDevice>& touchscreens);
+
+} // namespace ash
+
+#endif // ASH_TOUCH_TOUCHSCREEN_UTIL_H_
« no previous file with comments | « ash/touch/touch_transformer_controller.cc ('k') | ash/touch/touchscreen_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698