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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 9233058: Some touch-event forwarding optimization. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 3202 matching lines...) Expand 10 before | Expand all | Expand 10 after
3213 StartNavStateSyncTimerIfNecessary(); 3213 StartNavStateSyncTimerIfNecessary();
3214 3214
3215 if (webview()->mainFrame() == frame) 3215 if (webview()->mainFrame() == frame)
3216 UpdateScrollState(frame); 3216 UpdateScrollState(frame);
3217 } 3217 }
3218 3218
3219 void RenderViewImpl::numberOfWheelEventHandlersChanged(unsigned num_handlers) { 3219 void RenderViewImpl::numberOfWheelEventHandlersChanged(unsigned num_handlers) {
3220 Send(new ViewHostMsg_DidChangeNumWheelEvents(routing_id_, num_handlers)); 3220 Send(new ViewHostMsg_DidChangeNumWheelEvents(routing_id_, num_handlers));
3221 } 3221 }
3222 3222
3223 void RenderViewImpl::numberOfTouchEventHandlersChanged(unsigned num_handlers) {
3224 Send(new ViewHostMsg_DidChangeNumTouchEvents(routing_id_, num_handlers));
3225 }
3226
3223 void RenderViewImpl::reportFindInPageMatchCount(int request_id, int count, 3227 void RenderViewImpl::reportFindInPageMatchCount(int request_id, int count,
3224 bool final_update) { 3228 bool final_update) {
3225 int active_match_ordinal = -1; // -1 = don't update active match ordinal 3229 int active_match_ordinal = -1; // -1 = don't update active match ordinal
3226 if (!count) 3230 if (!count)
3227 active_match_ordinal = 0; 3231 active_match_ordinal = 0;
3228 3232
3229 IPC::Message* msg = new ViewHostMsg_Find_Reply( 3233 IPC::Message* msg = new ViewHostMsg_Find_Reply(
3230 routing_id_, 3234 routing_id_,
3231 request_id, 3235 request_id,
3232 count, 3236 count,
(...skipping 1808 matching lines...) Expand 10 before | Expand all | Expand 10 after
5041 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { 5045 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const {
5042 return !!RenderThreadImpl::current()->compositor_thread(); 5046 return !!RenderThreadImpl::current()->compositor_thread();
5043 } 5047 }
5044 5048
5045 void RenderViewImpl::OnJavaBridgeInit() { 5049 void RenderViewImpl::OnJavaBridgeInit() {
5046 DCHECK(!java_bridge_dispatcher_.get()); 5050 DCHECK(!java_bridge_dispatcher_.get());
5047 #if defined(ENABLE_JAVA_BRIDGE) 5051 #if defined(ENABLE_JAVA_BRIDGE)
5048 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this)); 5052 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this));
5049 #endif 5053 #endif
5050 } 5054 }
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698