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

Side by Side Diff: content/browser/renderer_host/input/synthetic_pointer_action.cc

Issue 2783973002: Moving LatencyInfo into a separate component. (Closed)
Patch Set: Rebase again Created 3 years, 8 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "content/browser/renderer_host/input/synthetic_pointer_action.h" 5 #include "content/browser/renderer_host/input/synthetic_pointer_action.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "third_party/WebKit/public/platform/WebInputEvent.h" 8 #include "third_party/WebKit/public/platform/WebInputEvent.h"
9 #include "ui/events/latency_info.h" 9 #include "ui/latency/latency_info.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 SyntheticPointerAction::SyntheticPointerAction( 13 SyntheticPointerAction::SyntheticPointerAction(
14 const SyntheticPointerActionListParams& params) 14 const SyntheticPointerActionListParams& params)
15 : params_(params), 15 : params_(params),
16 gesture_source_type_(SyntheticGestureParams::DEFAULT_INPUT), 16 gesture_source_type_(SyntheticGestureParams::DEFAULT_INPUT),
17 state_(UNINITIALIZED), 17 state_(UNINITIALIZED),
18 num_actions_dispatched_(0U) {} 18 num_actions_dispatched_(0U) {}
19 19
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 } 79 }
80 synthetic_pointer_driver_->DispatchEvent(target, timestamp); 80 synthetic_pointer_driver_->DispatchEvent(target, timestamp);
81 num_actions_dispatched_++; 81 num_actions_dispatched_++;
82 if (num_actions_dispatched_ == params_.params.size()) 82 if (num_actions_dispatched_ == params_.params.size())
83 return DONE; 83 return DONE;
84 else 84 else
85 return RUNNING; 85 return RUNNING;
86 } 86 }
87 87
88 } // namespace content 88 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698