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