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

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: address feedback 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 2586 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698