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

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

Issue 942963003: Cleanup: Fix content header include guards. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REBASE Created 5 years, 9 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
« no previous file with comments | « content/common/input/synthetic_tap_gesture_params.h ('k') | content/common/mac/font_loader.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_COMMON_INPUT_TOUCH_EVENT_STREAM_VALIDATOR 5 #ifndef CONTENT_COMMON_INPUT_TOUCH_EVENT_STREAM_VALIDATOR_H_
6 #define CONTENT_COMMON_INPUT_TOUCH_EVENT_STREAM_VALIDATOR 6 #define CONTENT_COMMON_INPUT_TOUCH_EVENT_STREAM_VALIDATOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 #include "third_party/WebKit/public/web/WebInputEvent.h" 12 #include "third_party/WebKit/public/web/WebInputEvent.h"
13 13
14 namespace content { 14 namespace content {
15 15
16 // Utility class for validating a stream of WebTouchEvents. 16 // Utility class for validating a stream of WebTouchEvents.
17 class CONTENT_EXPORT TouchEventStreamValidator { 17 class CONTENT_EXPORT TouchEventStreamValidator {
18 public: 18 public:
19 TouchEventStreamValidator(); 19 TouchEventStreamValidator();
20 ~TouchEventStreamValidator(); 20 ~TouchEventStreamValidator();
21 21
22 // If |event| is valid for the current stream, returns true. 22 // If |event| is valid for the current stream, returns true.
23 // Otherwise, returns false with a corresponding error message. 23 // Otherwise, returns false with a corresponding error message.
24 bool Validate(const blink::WebTouchEvent& event, std::string* error_msg); 24 bool Validate(const blink::WebTouchEvent& event, std::string* error_msg);
25 25
26 private: 26 private:
27 blink::WebTouchEvent previous_event_; 27 blink::WebTouchEvent previous_event_;
28 28
29 DISALLOW_COPY_AND_ASSIGN(TouchEventStreamValidator); 29 DISALLOW_COPY_AND_ASSIGN(TouchEventStreamValidator);
30 }; 30 };
31 31
32 } // namespace content 32 } // namespace content
33 33
34 #endif // CONTENT_COMMON_INPUT_TOUCH_EVENT_STREAM_VALIDATOR 34 #endif // CONTENT_COMMON_INPUT_TOUCH_EVENT_STREAM_VALIDATOR_H_
OLDNEW
« no previous file with comments | « content/common/input/synthetic_tap_gesture_params.h ('k') | content/common/mac/font_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698