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

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: Move |ScopedWebInputEvent| and |WebInputEventTraits| from |content::| to |ui::| 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
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 71%
rename from content/common/input/web_input_event_traits.h
rename to ui/events/blink/web_input_event_traits.h
index df83ca6f44ab30cd43a5abfb431359f191436396..48a7d6ff755e5fc9ddf2ca45c4ad8b5efe44936c 100644
--- a/content/common/input/web_input_event_traits.h
+++ b/ui/events/blink/web_input_event_traits.h
@@ -2,21 +2,16 @@
// 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_

Powered by Google App Engine
This is Rietveld 408576698