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 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 2590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2601 | 2601 |
2602 bool RenderViewImpl::isPointerLocked() { | 2602 bool RenderViewImpl::isPointerLocked() { |
2603 return mouse_lock_dispatcher_->IsMouseLockedTo( | 2603 return mouse_lock_dispatcher_->IsMouseLockedTo( |
2604 webwidget_mouse_lock_target_.get()); | 2604 webwidget_mouse_lock_target_.get()); |
2605 } | 2605 } |
2606 | 2606 |
2607 void RenderViewImpl::didActivateCompositor(int input_handler_identifier) { | 2607 void RenderViewImpl::didActivateCompositor(int input_handler_identifier) { |
2608 #if !defined(OS_MACOSX) // many events are unhandled - http://crbug.com/138003 | 2608 #if !defined(OS_MACOSX) // many events are unhandled - http://crbug.com/138003 |
2609 InputHandlerManager* input_handler_manager = | 2609 InputHandlerManager* input_handler_manager = |
2610 RenderThreadImpl::current()->input_handler_manager(); | 2610 RenderThreadImpl::current()->input_handler_manager(); |
2611 if (input_handler_manager) | 2611 if (input_handler_manager) { |
2612 input_handler_manager->AddInputHandler( | 2612 input_handler_manager->AddInputHandler( |
2613 routing_id_, input_handler_identifier, AsWeakPtr()); | 2613 routing_id_, |
| 2614 compositor_->GetInputHandler(), |
| 2615 AsWeakPtr()); |
| 2616 } |
2614 #endif | 2617 #endif |
2615 | 2618 |
2616 RenderWidget::didActivateCompositor(input_handler_identifier); | 2619 RenderWidget::didActivateCompositor(input_handler_identifier); |
2617 | 2620 |
2618 FOR_EACH_OBSERVER(RenderViewObserver, observers_, | 2621 FOR_EACH_OBSERVER(RenderViewObserver, observers_, |
2619 DidActivateCompositor(input_handler_identifier)); | 2622 DidActivateCompositor(input_handler_identifier)); |
2620 } | 2623 } |
2621 | 2624 |
2622 void RenderViewImpl::didHandleGestureEvent( | 2625 void RenderViewImpl::didHandleGestureEvent( |
2623 const WebGestureEvent& event, | 2626 const WebGestureEvent& event, |
(...skipping 3913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6537 WebURL url = icon_urls[i].iconURL(); | 6540 WebURL url = icon_urls[i].iconURL(); |
6538 if (!url.isEmpty()) | 6541 if (!url.isEmpty()) |
6539 urls.push_back(FaviconURL(url, | 6542 urls.push_back(FaviconURL(url, |
6540 ToFaviconType(icon_urls[i].iconType()))); | 6543 ToFaviconType(icon_urls[i].iconType()))); |
6541 } | 6544 } |
6542 SendUpdateFaviconURL(urls); | 6545 SendUpdateFaviconURL(urls); |
6543 } | 6546 } |
6544 | 6547 |
6545 | 6548 |
6546 } // namespace content | 6549 } // namespace content |
OLD | NEW |