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