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

Unified Diff: ui/base/events/event_constants.cc

Issue 11364062: ui: Remove TouchStatus in favour of EventResult. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 1 month 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/base/events/event_constants.h ('k') | ui/ui.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/events/event_constants.cc
diff --git a/ui/base/events/event_constants.cc b/ui/base/events/event_constants.cc
deleted file mode 100644
index e4c0b26a09e2d51438172a21e1b3c76593862a2d..0000000000000000000000000000000000000000
--- a/ui/base/events/event_constants.cc
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright (c) 2012 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.
-
-#include "ui/base/events/event_constants.h"
-
-#include "base/logging.h"
-
-namespace ui {
-
-EventResult EventResultFromTouchStatus(TouchStatus status) {
- switch (status) {
- case TOUCH_STATUS_UNKNOWN:
- return ER_UNHANDLED;
-
- case TOUCH_STATUS_START:
- case TOUCH_STATUS_CONTINUE:
- case TOUCH_STATUS_END:
- case TOUCH_STATUS_QUEUED:
- case TOUCH_STATUS_QUEUED_END:
- return ER_CONSUMED;
- }
-
- NOTREACHED();
- return ER_UNHANDLED;
-}
-
-} // namespace ui
« no previous file with comments | « ui/base/events/event_constants.h ('k') | ui/ui.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698