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

Unified Diff: ui/display/manager/chromeos/mojo/touch_device_transform_struct_traits.h

Issue 2897863004: Revert of chromeos: adds TouchDeviceServer and wires up in mushrome (Closed)
Patch Set: 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/mojo/touch_device_transform_struct_traits.h
diff --git a/ui/display/manager/chromeos/mojo/touch_device_transform_struct_traits.h b/ui/display/manager/chromeos/mojo/touch_device_transform_struct_traits.h
deleted file mode 100644
index 296ed5092b48e5944870bf19728d5d9c4a0caf35..0000000000000000000000000000000000000000
--- a/ui/display/manager/chromeos/mojo/touch_device_transform_struct_traits.h
+++ /dev/null
@@ -1,43 +0,0 @@
-// 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_MOJO_TOUCH_DEVICE_TRANSFORM_STRUCT_TRAITS_H_
-#define UI_DISPLAY_MANAGER_CHROMEOS_MOJO_TOUCH_DEVICE_TRANSFORM_STRUCT_TRAITS_H_
-
-#include <stdint.h>
-
-#include "ui/display/manager/chromeos/mojo/touch_device_transform.mojom.h"
-#include "ui/display/manager/chromeos/touch_device_transform.h"
-#include "ui/gfx/mojo/transform_struct_traits.h"
-
-namespace mojo {
-
-template <>
-struct StructTraits<display::mojom::TouchDeviceTransformDataView,
- display::TouchDeviceTransform> {
- public:
- static int64_t display_id(const display::TouchDeviceTransform& r) {
- return r.display_id;
- }
- static int32_t device_id(const display::TouchDeviceTransform& r) {
- return r.device_id;
- }
- static const gfx::Transform& transform(
- const display::TouchDeviceTransform& r) {
- return r.transform;
- }
-
- static bool Read(display::mojom::TouchDeviceTransformDataView data,
- display::TouchDeviceTransform* out) {
- out->display_id = data.display_id();
- out->device_id = data.device_id();
- if (!data.ReadTransform(&(out->transform)))
- return false;
- return true;
- }
-};
-
-} // namespace mojo
-
-#endif // UI_DISPLAY_MANAGER_CHROMEOS_MOJO_TOUCH_DEVICE_TRANSFORM_STRUCT_TRAITS_H_

Powered by Google App Engine
This is Rietveld 408576698