| OLD | NEW |
| 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 3582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3593 } | 3593 } |
| 3594 | 3594 |
| 3595 void RenderViewImpl::numberOfWheelEventHandlersChanged(unsigned num_handlers) { | 3595 void RenderViewImpl::numberOfWheelEventHandlersChanged(unsigned num_handlers) { |
| 3596 Send(new ViewHostMsg_DidChangeNumWheelEvents(routing_id_, num_handlers)); | 3596 Send(new ViewHostMsg_DidChangeNumWheelEvents(routing_id_, num_handlers)); |
| 3597 } | 3597 } |
| 3598 | 3598 |
| 3599 void RenderViewImpl::numberOfTouchEventHandlersChanged(unsigned num_handlers) { | 3599 void RenderViewImpl::numberOfTouchEventHandlersChanged(unsigned num_handlers) { |
| 3600 Send(new ViewHostMsg_DidChangeNumTouchEvents(routing_id_, num_handlers)); | 3600 Send(new ViewHostMsg_DidChangeNumTouchEvents(routing_id_, num_handlers)); |
| 3601 } | 3601 } |
| 3602 | 3602 |
| 3603 void RenderViewImpl::hasTouchEventHandlers(bool has_handlers) { |
| 3604 Send(new ViewHostMsg_HasTouchEventHandlers(routing_id_, has_handlers)); |
| 3605 } |
| 3606 |
| 3603 void RenderViewImpl::reportFindInPageMatchCount(int request_id, int count, | 3607 void RenderViewImpl::reportFindInPageMatchCount(int request_id, int count, |
| 3604 bool final_update) { | 3608 bool final_update) { |
| 3605 int active_match_ordinal = -1; // -1 = don't update active match ordinal | 3609 int active_match_ordinal = -1; // -1 = don't update active match ordinal |
| 3606 if (!count) | 3610 if (!count) |
| 3607 active_match_ordinal = 0; | 3611 active_match_ordinal = 0; |
| 3608 | 3612 |
| 3609 IPC::Message* msg = new ViewHostMsg_Find_Reply( | 3613 IPC::Message* msg = new ViewHostMsg_Find_Reply( |
| 3610 routing_id_, | 3614 routing_id_, |
| 3611 request_id, | 3615 request_id, |
| 3612 count, | 3616 count, |
| (...skipping 2088 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5701 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { | 5705 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { |
| 5702 return !!RenderThreadImpl::current()->compositor_thread(); | 5706 return !!RenderThreadImpl::current()->compositor_thread(); |
| 5703 } | 5707 } |
| 5704 | 5708 |
| 5705 void RenderViewImpl::OnJavaBridgeInit() { | 5709 void RenderViewImpl::OnJavaBridgeInit() { |
| 5706 DCHECK(!java_bridge_dispatcher_); | 5710 DCHECK(!java_bridge_dispatcher_); |
| 5707 #if defined(ENABLE_JAVA_BRIDGE) | 5711 #if defined(ENABLE_JAVA_BRIDGE) |
| 5708 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); | 5712 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); |
| 5709 #endif | 5713 #endif |
| 5710 } | 5714 } |
| OLD | NEW |