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

Side by Side Diff: blimp/client/core/input/blimp_input_handler_wrapper.cc

Issue 2573073003: Collapse the API surface on WebInputEvent via accessor functions. (Closed)
Patch Set: Fix nits 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 | « no previous file | blimp/client/core/input/blimp_input_manager.cc » ('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 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/core/input/blimp_input_handler_wrapper.h" 5 #include "blimp/client/core/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 "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 DCHECK(compositor_thread_checker_.CalledOnValidThread()); 94 DCHECK(compositor_thread_checker_.CalledOnValidThread());
95 95
96 NOTIMPLEMENTED() 96 NOTIMPLEMENTED()
97 << "Transferring Fling Animations to the engine is not supported"; 97 << "Transferring Fling Animations to the engine is not supported";
98 } 98 }
99 99
100 void BlimpInputHandlerWrapper::DispatchNonBlockingEventToMainThread( 100 void BlimpInputHandlerWrapper::DispatchNonBlockingEventToMainThread(
101 blink::WebScopedInputEvent event, 101 blink::WebScopedInputEvent event,
102 const ui::LatencyInfo& latency_info) { 102 const ui::LatencyInfo& latency_info) {
103 DCHECK(compositor_thread_checker_.CalledOnValidThread()); 103 DCHECK(compositor_thread_checker_.CalledOnValidThread());
104 DCHECK_EQ(event->type, blink::WebInputEvent::MouseWheel); 104 DCHECK_EQ(event->type(), blink::WebInputEvent::MouseWheel);
105 105
106 NOTIMPLEMENTED() 106 NOTIMPLEMENTED()
107 << "Dispatching Non Blocking Events to the engine is not supported"; 107 << "Dispatching Non Blocking Events to the engine is not supported";
108 } 108 }
109 109
110 blink::WebGestureCurve* BlimpInputHandlerWrapper::CreateFlingAnimationCurve( 110 blink::WebGestureCurve* BlimpInputHandlerWrapper::CreateFlingAnimationCurve(
111 blink::WebGestureDevice device_source, 111 blink::WebGestureDevice device_source,
112 const blink::WebFloatPoint& velocity, 112 const blink::WebFloatPoint& velocity,
113 const blink::WebSize& cumulative_scroll) { 113 const blink::WebSize& cumulative_scroll) {
114 DCHECK(compositor_thread_checker_.CalledOnValidThread()); 114 DCHECK(compositor_thread_checker_.CalledOnValidThread());
(...skipping 28 matching lines...) Expand all
143 input_handler_proxy_ = 143 input_handler_proxy_ =
144 base::MakeUnique<ui::InputHandlerProxy>(input_handler, this); 144 base::MakeUnique<ui::InputHandlerProxy>(input_handler, this);
145 main_task_runner_->PostTask( 145 main_task_runner_->PostTask(
146 FROM_HERE, 146 FROM_HERE,
147 base::Bind(&BlimpInputManager::OnInputHandlerWrapperInitialized, 147 base::Bind(&BlimpInputManager::OnInputHandlerWrapperInitialized,
148 input_manager_weak_ptr_, weak_factory_.GetWeakPtr())); 148 input_manager_weak_ptr_, weak_factory_.GetWeakPtr()));
149 } 149 }
150 150
151 } // namespace client 151 } // namespace client
152 } // namespace blimp 152 } // namespace blimp
OLDNEW
« no previous file with comments | « no previous file | blimp/client/core/input/blimp_input_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698