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

Side by Side Diff: content/renderer/gpu/actions_runner.h

Issue 2348183003: Test synthetic pointer action on pointer event tests (Closed)
Patch Set: pointer event tests Created 3 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
« no previous file with comments | « content/renderer/BUILD.gn ('k') | content/renderer/gpu/actions_runner.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2016 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_RENDERER_GPU_ACTION_RUNNER_H_
6 #define CONTENT_RENDERER_GPU_ACTION_RUNNER_H_
7
8 #include <cstddef>
9 #include <set>
10 #include <string>
11
12 #include "content/common/input/synthetic_pointer_action_list_params.h"
13
14 namespace base {
15 class DictionaryValue;
16 class ListValue;
17 } // namespace base
18
19 namespace content {
20
21 class ActionsRunner {
22 public:
23 ActionsRunner(base::Value* value);
24 virtual ~ActionsRunner();
25 bool ParseSources();
26 void Run();
27 size_t longest_action_sequence() { return longest_action_sequence_; }
28 std::string error_message() { return error_message_; }
29 std::unique_ptr<SyntheticPointerActionListParams> gesture_params() {
30 return std::move(gesture_params_);
31 }
32
33 private:
34 bool ParsePointerActions(const base::DictionaryValue& pointer_actions);
35 bool ParseActions(const base::ListValue& actions);
36 bool ParseAction(const base::DictionaryValue& action,
37 SyntheticPointerActionListParams::ParamList& param_list);
38
39 std::unique_ptr<SyntheticPointerActionListParams> gesture_params_;
40 std::vector<SyntheticPointerActionListParams::ParamList>
41 pointer_actions_list_;
42 size_t longest_action_sequence_;
43 std::set<int> ids_;
44 size_t i, j;
45 std::string error_message_;
46
47 // XXX: this probably gets deleted with the v8 context, so be more careful
48 // about handling it
49 base::Value* value_;
50 int index_;
51 };
52
53 } // namespace content
54
55 #endif // CONTENT_RENDERER_GPU_ACTION_RUNNER_H_
OLDNEW
« no previous file with comments | « content/renderer/BUILD.gn ('k') | content/renderer/gpu/actions_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698