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

Unified Diff: ui/events/test/motion_event_test_utils.h

Issue 502993004: Remove abstract Clone and Cancel methods from MotionEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Owner for BUILD.gn 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 | « ui/events/test/mock_motion_event.cc ('k') | ui/events/test/motion_event_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/test/motion_event_test_utils.h
diff --git a/ui/events/test/motion_event_test_utils.h b/ui/events/test/motion_event_test_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..707c5cbae26717146b79dd8b411a14285103eacc
--- /dev/null
+++ b/ui/events/test/motion_event_test_utils.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 UI_EVENTS_TEST_MOTION_EVENT_TEST_UTILS_H_
+#define UI_EVENTS_TEST_MOTION_EVENT_TEST_UTILS_H_
+
+#include <ostream>
+#include <string>
+
+namespace ui {
+
+class MotionEvent;
+
+// The methods below are explicitly not defined in production code as they can
+// be relatively expensive and, in the case of equality, contextually confusing.
+
+bool operator==(const MotionEvent& lhs, const MotionEvent& rhs);
sky 2014/10/22 00:01:04 I would rather you have add an explicit ToString f
jdduke (slow) 2014/10/22 00:15:56 Sure, that's the behavior I had in PS7 but changed
+
+std::ostream& operator<<(std::ostream& os, const MotionEvent& event);
+
+} // namespace ui
+
+#endif // UI_EVENTS_TEST_EVENTS_TEST_UTILS_H_
« no previous file with comments | « ui/events/test/mock_motion_event.cc ('k') | ui/events/test/motion_event_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698