OLD | NEW |
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/input/blimp_input_handler_wrapper.h" | 5 #include "blimp/client/input/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/input/blimp_input_manager.h" | 10 #include "blimp/client/input/blimp_input_manager.h" |
11 #include "ui/events/gestures/blink/web_gesture_curve_impl.h" | 11 #include "ui/events/gestures/blink/web_gesture_curve_impl.h" |
12 | 12 |
13 namespace blimp { | 13 namespace blimp { |
| 14 namespace client { |
14 | 15 |
15 BlimpInputHandlerWrapper::BlimpInputHandlerWrapper( | 16 BlimpInputHandlerWrapper::BlimpInputHandlerWrapper( |
16 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | 17 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
17 const base::WeakPtr<BlimpInputManager> input_manager_weak_ptr, | 18 const base::WeakPtr<BlimpInputManager> input_manager_weak_ptr, |
18 cc::InputHandler* input_handler) | 19 cc::InputHandler* input_handler) |
19 : main_task_runner_(main_task_runner), | 20 : main_task_runner_(main_task_runner), |
20 input_manager_weak_ptr_(input_manager_weak_ptr) { | 21 input_manager_weak_ptr_(input_manager_weak_ptr) { |
21 DCHECK(compositor_thread_checker_.CalledOnValidThread()); | 22 DCHECK(compositor_thread_checker_.CalledOnValidThread()); |
22 DCHECK(input_handler); | 23 DCHECK(input_handler); |
23 input_handler_proxy_.reset( | 24 input_handler_proxy_.reset( |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 } | 88 } |
88 | 89 |
89 void BlimpInputHandlerWrapper::DidStopFlinging() { | 90 void BlimpInputHandlerWrapper::DidStopFlinging() { |
90 DCHECK(compositor_thread_checker_.CalledOnValidThread()); | 91 DCHECK(compositor_thread_checker_.CalledOnValidThread()); |
91 } | 92 } |
92 | 93 |
93 void BlimpInputHandlerWrapper::DidAnimateForInput() { | 94 void BlimpInputHandlerWrapper::DidAnimateForInput() { |
94 DCHECK(compositor_thread_checker_.CalledOnValidThread()); | 95 DCHECK(compositor_thread_checker_.CalledOnValidThread()); |
95 } | 96 } |
96 | 97 |
| 98 } // namespace client |
97 } // namespace blimp | 99 } // namespace blimp |
OLD | NEW |