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

Side by Side Diff: content/common/input/web_input_event_traits.h

Issue 1560553002: Framelet Prototype 2016 Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased + Applied Brett's Windows + Fixed security issue Created 4 years, 11 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_COMMON_INPUT_WEB_INPUT_EVENT_TRAITS_H_
6 #define CONTENT_COMMON_INPUT_WEB_INPUT_EVENT_TRAITS_H_
7
8 #include <stddef.h>
9 #include <stdint.h>
10
11 #include <string>
12
13 #include "content/common/input/scoped_web_input_event.h"
14 #include "third_party/WebKit/public/web/WebInputEvent.h"
15
16 namespace content {
17
18 // Utility class for performing operations on and with WebInputEvents.
19 class CONTENT_EXPORT WebInputEventTraits {
20 public:
21 static const char* GetName(blink::WebInputEvent::Type type);
22 static std::string ToString(const blink::WebInputEvent& event);
23 static size_t GetSize(blink::WebInputEvent::Type type);
24 static ScopedWebInputEvent Clone(const blink::WebInputEvent& event);
25 static void Delete(blink::WebInputEvent* event);
26 static bool CanCoalesce(const blink::WebInputEvent& event_to_coalesce,
27 const blink::WebInputEvent& event);
28 static void Coalesce(const blink::WebInputEvent& event_to_coalesce,
29 blink::WebInputEvent* event);
30 static bool WillReceiveAckFromRenderer(const blink::WebInputEvent& event);
31
32 // Return uniqueTouchEventId for WebTouchEvent, otherwise return 0.
33 static uint32_t GetUniqueTouchEventId(const blink::WebInputEvent& event);
34 };
35
36 } // namespace content
37
38 #endif // CONTENT_COMMON_INPUT_WEB_INPUT_EVENT_TRAITS_H_
OLDNEW
« no previous file with comments | « content/common/input/touch_event_stream_validator_unittest.cc ('k') | content/common/input/web_input_event_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698