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

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

Issue 218623016: Remove Hack used for merging dependent chromium and blink patches (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2165 matching lines...) Expand 10 before | Expand all | Expand 10 after
2176 2176
2177 void RenderViewImpl::requestPointerUnlock() { 2177 void RenderViewImpl::requestPointerUnlock() {
2178 mouse_lock_dispatcher_->UnlockMouse(webwidget_mouse_lock_target_.get()); 2178 mouse_lock_dispatcher_->UnlockMouse(webwidget_mouse_lock_target_.get());
2179 } 2179 }
2180 2180
2181 bool RenderViewImpl::isPointerLocked() { 2181 bool RenderViewImpl::isPointerLocked() {
2182 return mouse_lock_dispatcher_->IsMouseLockedTo( 2182 return mouse_lock_dispatcher_->IsMouseLockedTo(
2183 webwidget_mouse_lock_target_.get()); 2183 webwidget_mouse_lock_target_.get());
2184 } 2184 }
2185 2185
2186 // FIXME: To be removed as soon as chromium and blink side changes land
2187 // didActivateCompositor with parameters is still kept in order to land
2188 // these changes s-chromium - https://codereview.chromium.org/137893025/.
2189 // s-blink - https://codereview.chromium.org/138523003/
2190 void RenderViewImpl::didActivateCompositor(int input_handler_identifier) {
2191 #if !defined(OS_MACOSX) // many events are unhandled - http://crbug.com/138003
2192 InputHandlerManager* input_handler_manager =
2193 RenderThreadImpl::current()->input_handler_manager();
2194 if (input_handler_manager) {
2195 input_handler_manager->AddInputHandler(
2196 routing_id_,
2197 compositor_->GetInputHandler(),
2198 AsWeakPtr());
2199 }
2200 #endif
2201
2202 RenderWidget::didActivateCompositor(input_handler_identifier);
2203 }
2204
2205 void RenderViewImpl::didActivateCompositor() { 2186 void RenderViewImpl::didActivateCompositor() {
2206 #if !defined(OS_MACOSX) // many events are unhandled - http://crbug.com/138003 2187 #if !defined(OS_MACOSX) // many events are unhandled - http://crbug.com/138003
2207 InputHandlerManager* input_handler_manager = 2188 InputHandlerManager* input_handler_manager =
2208 RenderThreadImpl::current()->input_handler_manager(); 2189 RenderThreadImpl::current()->input_handler_manager();
2209 if (input_handler_manager) { 2190 if (input_handler_manager) {
2210 input_handler_manager->AddInputHandler( 2191 input_handler_manager->AddInputHandler(
2211 routing_id_, 2192 routing_id_,
2212 compositor_->GetInputHandler(), 2193 compositor_->GetInputHandler(),
2213 AsWeakPtr()); 2194 AsWeakPtr());
2214 } 2195 }
(...skipping 2734 matching lines...) Expand 10 before | Expand all | Expand 10 after
4949 std::vector<gfx::Size> sizes(icon_urls[i].sizes().size()); 4930 std::vector<gfx::Size> sizes(icon_urls[i].sizes().size());
4950 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); 4931 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes);
4951 if (!url.isEmpty()) 4932 if (!url.isEmpty())
4952 urls.push_back( 4933 urls.push_back(
4953 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); 4934 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes));
4954 } 4935 }
4955 SendUpdateFaviconURL(urls); 4936 SendUpdateFaviconURL(urls);
4956 } 4937 }
4957 4938
4958 } // namespace content 4939 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698