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

Side by Side Diff: blimp/client/feature/compositor/blimp_input_handler_wrapper.cc

Issue 2265393002: Refactor compositor event handling path to be callback-based (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 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 "blimp/client/feature/compositor/blimp_input_handler_wrapper.h" 5 #include "blimp/client/feature/compositor/blimp_input_handler_wrapper.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "blimp/client/feature/compositor/blimp_input_manager.h" 10 #include "blimp/client/feature/compositor/blimp_input_manager.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 gfx::Vector2dF(velocity.x, velocity.y), 86 gfx::Vector2dF(velocity.x, velocity.y),
87 gfx::Vector2dF(cumulative_scroll.width, 87 gfx::Vector2dF(cumulative_scroll.width,
88 cumulative_scroll.height), 88 cumulative_scroll.height),
89 false /* on_main_thread */).release(); 89 false /* on_main_thread */).release();
90 } 90 }
91 91
92 void BlimpInputHandlerWrapper::DidOverscroll( 92 void BlimpInputHandlerWrapper::DidOverscroll(
93 const gfx::Vector2dF& accumulated_overscroll, 93 const gfx::Vector2dF& accumulated_overscroll,
94 const gfx::Vector2dF& latest_overscroll_delta, 94 const gfx::Vector2dF& latest_overscroll_delta,
95 const gfx::Vector2dF& current_fling_velocity, 95 const gfx::Vector2dF& current_fling_velocity,
96 const gfx::PointF& causal_event_viewport_point) { 96 const gfx::PointF& causal_event_viewport_point,
97 bool bundle_ack_with_triggering_event) {
97 DCHECK(compositor_thread_checker_.CalledOnValidThread()); 98 DCHECK(compositor_thread_checker_.CalledOnValidThread());
98 } 99 }
99 100
100 void BlimpInputHandlerWrapper::DidStartFlinging() { 101 void BlimpInputHandlerWrapper::DidStartFlinging() {
101 DCHECK(compositor_thread_checker_.CalledOnValidThread()); 102 DCHECK(compositor_thread_checker_.CalledOnValidThread());
102 } 103 }
103 104
104 void BlimpInputHandlerWrapper::DidStopFlinging() { 105 void BlimpInputHandlerWrapper::DidStopFlinging() {
105 DCHECK(compositor_thread_checker_.CalledOnValidThread()); 106 DCHECK(compositor_thread_checker_.CalledOnValidThread());
106 } 107 }
107 108
108 void BlimpInputHandlerWrapper::DidAnimateForInput() { 109 void BlimpInputHandlerWrapper::DidAnimateForInput() {
109 DCHECK(compositor_thread_checker_.CalledOnValidThread()); 110 DCHECK(compositor_thread_checker_.CalledOnValidThread());
110 } 111 }
111 112
112 } // namespace client 113 } // namespace client
113 } // namespace blimp 114 } // namespace blimp
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698