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

Unified Diff: ui/display/manager/chromeos/touch_transform_setter.h

Issue 2887413004: chromeos: moves setting of touch state to a separate class (Closed)
Patch Set: merge Created 3 years, 7 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: ui/display/manager/chromeos/touch_transform_setter.h
diff --git a/ui/display/manager/chromeos/touch_transform_setter.h b/ui/display/manager/chromeos/touch_transform_setter.h
new file mode 100644
index 0000000000000000000000000000000000000000..4e87b079c4c99ef9c24467483d08c145b262ac60
--- /dev/null
+++ b/ui/display/manager/chromeos/touch_transform_setter.h
@@ -0,0 +1,33 @@
+// Copyright 2017 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 UI_DISPLAY_MANAGER_CHROMEOS_TOUCH_TRANSFORM_SETTER_H_
+#define UI_DISPLAY_MANAGER_CHROMEOS_TOUCH_TRANSFORM_SETTER_H_
+
+#include <map>
+#include <vector>
+
+#include "base/macros.h"
+#include "ui/display/manager/display_manager_export.h"
+
+namespace display {
+
+struct TouchDeviceTransform;
+
+// TouchTransformSetter is used by TouchTransformController to apply the actual
+// settings.
+class DISPLAY_MANAGER_EXPORT TouchTransformSetter {
+ public:
+ virtual ~TouchTransformSetter() {}
+
+ // |scales| maps from the touch device id to the touch radius scale and
+ // |transforms| contains the transform for each device and display pair.
+ virtual void ConfigureTouchDevices(
+ const std::map<int32_t, double>& scales,
+ const std::vector<TouchDeviceTransform>& transforms) = 0;
+};
+
+} // namespace display
+
+#endif // UI_DISPLAY_MANAGER_CHROMEOS_TOUCH_TRANSFORM_SETTER_H_

Powered by Google App Engine
This is Rietveld 408576698