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

Unified Diff: ui/events/blink/web_input_event_traits.h

Issue 2240983003: Move |ScopedWebInputEvent| and |WebInputEventTraits| from |content::| to "ui/events/blink" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and ncarter's review Created 4 years, 4 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/blink/scoped_web_input_event.cc ('k') | ui/events/blink/web_input_event_traits.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/blink/web_input_event_traits.h
diff --git a/content/common/input/web_input_event_traits.h b/ui/events/blink/web_input_event_traits.h
similarity index 66%
rename from content/common/input/web_input_event_traits.h
rename to ui/events/blink/web_input_event_traits.h
index df83ca6f44ab30cd43a5abfb431359f191436396..444f17ee3f16870da55211647cd40901a0448b1f 100644
--- a/content/common/input/web_input_event_traits.h
+++ b/ui/events/blink/web_input_event_traits.h
@@ -1,22 +1,17 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
+// Copyright 2016 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 CONTENT_COMMON_INPUT_WEB_INPUT_EVENT_TRAITS_H_
-#define CONTENT_COMMON_INPUT_WEB_INPUT_EVENT_TRAITS_H_
+#ifndef UI_EVENTS_BLINK_WEB_INPUT_EVENT_TRAITS_H_
+#define UI_EVENTS_BLINK_WEB_INPUT_EVENT_TRAITS_H_
-#include <stddef.h>
-#include <stdint.h>
-
-#include <string>
-
-#include "content/common/input/scoped_web_input_event.h"
#include "third_party/WebKit/public/web/WebInputEvent.h"
+#include "ui/events/blink/scoped_web_input_event.h"
-namespace content {
+namespace ui {
// Utility class for performing operations on and with WebInputEvents.
-class CONTENT_EXPORT WebInputEventTraits {
+class WebInputEventTraits {
public:
static const char* GetName(blink::WebInputEvent::Type type);
static std::string ToString(const blink::WebInputEvent& event);
@@ -31,6 +26,6 @@ class CONTENT_EXPORT WebInputEventTraits {
static uint32_t GetUniqueTouchEventId(const blink::WebInputEvent& event);
};
-} // namespace content
+} // namespace ui
-#endif // CONTENT_COMMON_INPUT_WEB_INPUT_EVENT_TRAITS_H_
+#endif // UI_EVENTS_BLINK_WEB_INPUT_EVENT_TRAITS_H_
« no previous file with comments | « ui/events/blink/scoped_web_input_event.cc ('k') | ui/events/blink/web_input_event_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698