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

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

Issue 13844021: Move compositor thread input handling logic into content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win component build Created 7 years, 7 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
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 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 2588 matching lines...) Expand 10 before | Expand all | Expand 10 after
2599 2599
2600 bool RenderViewImpl::isPointerLocked() { 2600 bool RenderViewImpl::isPointerLocked() {
2601 return mouse_lock_dispatcher_->IsMouseLockedTo( 2601 return mouse_lock_dispatcher_->IsMouseLockedTo(
2602 webwidget_mouse_lock_target_.get()); 2602 webwidget_mouse_lock_target_.get());
2603 } 2603 }
2604 2604
2605 void RenderViewImpl::didActivateCompositor(int input_handler_identifier) { 2605 void RenderViewImpl::didActivateCompositor(int input_handler_identifier) {
2606 #if !defined(OS_MACOSX) // many events are unhandled - http://crbug.com/138003 2606 #if !defined(OS_MACOSX) // many events are unhandled - http://crbug.com/138003
2607 InputHandlerManager* input_handler_manager = 2607 InputHandlerManager* input_handler_manager =
2608 RenderThreadImpl::current()->input_handler_manager(); 2608 RenderThreadImpl::current()->input_handler_manager();
2609 if (input_handler_manager) 2609 if (input_handler_manager) {
2610 input_handler_manager->AddInputHandler( 2610 input_handler_manager->AddInputHandler(
2611 routing_id_, input_handler_identifier, AsWeakPtr()); 2611 routing_id_,
2612 compositor_->GetInputHandler(),
2613 AsWeakPtr());
2614 }
2612 #endif 2615 #endif
2613 2616
2614 RenderWidget::didActivateCompositor(input_handler_identifier); 2617 RenderWidget::didActivateCompositor(input_handler_identifier);
2615 2618
2616 FOR_EACH_OBSERVER(RenderViewObserver, observers_, 2619 FOR_EACH_OBSERVER(RenderViewObserver, observers_,
2617 DidActivateCompositor(input_handler_identifier)); 2620 DidActivateCompositor(input_handler_identifier));
2618 } 2621 }
2619 2622
2620 void RenderViewImpl::didHandleGestureEvent( 2623 void RenderViewImpl::didHandleGestureEvent(
2621 const WebGestureEvent& event, 2624 const WebGestureEvent& event,
(...skipping 3913 matching lines...) Expand 10 before | Expand all | Expand 10 after
6535 WebURL url = icon_urls[i].iconURL(); 6538 WebURL url = icon_urls[i].iconURL();
6536 if (!url.isEmpty()) 6539 if (!url.isEmpty())
6537 urls.push_back(FaviconURL(url, 6540 urls.push_back(FaviconURL(url,
6538 ToFaviconType(icon_urls[i].iconType()))); 6541 ToFaviconType(icon_urls[i].iconType())));
6539 } 6542 }
6540 SendUpdateFaviconURL(urls); 6543 SendUpdateFaviconURL(urls);
6541 } 6544 }
6542 6545
6543 6546
6544 } // namespace content 6547 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698