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

Side by Side Diff: content/renderer/android/synchronous_compositor_proxy.cc

Issue 1415953004: Move content/renderer input handling for web input events to ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: OWNERS edit. Created 5 years, 1 month 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/renderer/android/synchronous_compositor_proxy.h" 5 #include "content/renderer/android/synchronous_compositor_proxy.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "content/common/android/sync_compositor_messages.h" 8 #include "content/common/android/sync_compositor_messages.h"
9 #include "content/common/cc_messages.h" 9 #include "content/common/cc_messages.h"
10 #include "ipc/ipc_message.h" 10 #include "ipc/ipc_message.h"
11 #include "ipc/ipc_sender.h" 11 #include "ipc/ipc_sender.h"
12 #include "ui/events/latency_info.h" 12 #include "ui/events/latency_info.h"
13 13
14 namespace content { 14 namespace content {
15 15
16 SynchronousCompositorProxy::SynchronousCompositorProxy( 16 SynchronousCompositorProxy::SynchronousCompositorProxy(
17 int routing_id, 17 int routing_id,
18 IPC::Sender* sender, 18 IPC::Sender* sender,
19 SynchronousCompositorOutputSurface* output_surface, 19 SynchronousCompositorOutputSurface* output_surface,
20 SynchronousCompositorExternalBeginFrameSource* begin_frame_source, 20 SynchronousCompositorExternalBeginFrameSource* begin_frame_source,
21 SynchronousInputHandlerProxy* input_handler_proxy, 21 ui::SynchronousInputHandlerProxy* input_handler_proxy,
22 InputHandlerManagerClient::Handler* handler) 22 InputHandlerManagerClient::Handler* handler)
23 : routing_id_(routing_id), 23 : routing_id_(routing_id),
24 sender_(sender), 24 sender_(sender),
25 output_surface_(output_surface), 25 output_surface_(output_surface),
26 begin_frame_source_(begin_frame_source), 26 begin_frame_source_(begin_frame_source),
27 input_handler_proxy_(input_handler_proxy), 27 input_handler_proxy_(input_handler_proxy),
28 input_handler_(handler), 28 input_handler_(handler),
29 inside_receive_(false), 29 inside_receive_(false),
30 bytes_limit_(0u), 30 bytes_limit_(0u),
31 version_(0u), 31 version_(0u),
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 total_scroll_offset_ = common_params.root_scroll_offset; 225 total_scroll_offset_ = common_params.root_scroll_offset;
226 input_handler_proxy_->SynchronouslySetRootScrollOffset( 226 input_handler_proxy_->SynchronouslySetRootScrollOffset(
227 total_scroll_offset_); 227 total_scroll_offset_);
228 } 228 }
229 if (!common_params.ack.resources.empty()) { 229 if (!common_params.ack.resources.empty()) {
230 output_surface_->ReturnResources(common_params.ack); 230 output_surface_->ReturnResources(common_params.ack);
231 } 231 }
232 } 232 }
233 233
234 } // namespace content 234 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698