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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 1440923002: Convert the coordinates in WebInputEvent To Viewport in InputRouter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
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/browser/renderer_host/render_widget_host_impl.h" 5 #include "content/browser/renderer_host/render_widget_host_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 1204 matching lines...) Expand 10 before | Expand all | Expand 10 after
1215 1215
1216 void RenderWidgetHostImpl::GetWebScreenInfo(blink::WebScreenInfo* result) { 1216 void RenderWidgetHostImpl::GetWebScreenInfo(blink::WebScreenInfo* result) {
1217 TRACE_EVENT0("renderer_host", "RenderWidgetHostImpl::GetWebScreenInfo"); 1217 TRACE_EVENT0("renderer_host", "RenderWidgetHostImpl::GetWebScreenInfo");
1218 if (view_) 1218 if (view_)
1219 view_->GetScreenInfo(result); 1219 view_->GetScreenInfo(result);
1220 else 1220 else
1221 RenderWidgetHostViewBase::GetDefaultScreenInfo(result); 1221 RenderWidgetHostViewBase::GetDefaultScreenInfo(result);
1222 // TODO(sievers): find a way to make this done another way so the method 1222 // TODO(sievers): find a way to make this done another way so the method
1223 // can be const. 1223 // can be const.
1224 latency_tracker_.set_device_scale_factor(result->deviceScaleFactor); 1224 latency_tracker_.set_device_scale_factor(result->deviceScaleFactor);
1225 input_router_->SetDeviceScaleFactor(result->deviceScaleFactor);
1225 } 1226 }
1226 1227
1227 bool RenderWidgetHostImpl::GetScreenColorProfile( 1228 bool RenderWidgetHostImpl::GetScreenColorProfile(
1228 std::vector<char>* color_profile) { 1229 std::vector<char>* color_profile) {
1229 DCHECK(color_profile->empty()); 1230 DCHECK(color_profile->empty());
1230 if (view_) 1231 if (view_)
1231 return view_->GetScreenColorProfile(color_profile); 1232 return view_->GetScreenColorProfile(color_profile);
1232 return false; 1233 return false;
1233 } 1234 }
1234 1235
(...skipping 956 matching lines...) Expand 10 before | Expand all | Expand 10 after
2191 } 2192 }
2192 2193
2193 #if defined(OS_WIN) 2194 #if defined(OS_WIN)
2194 gfx::NativeViewAccessible 2195 gfx::NativeViewAccessible
2195 RenderWidgetHostImpl::GetParentNativeViewAccessible() { 2196 RenderWidgetHostImpl::GetParentNativeViewAccessible() {
2196 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL; 2197 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL;
2197 } 2198 }
2198 #endif 2199 #endif
2199 2200
2200 } // namespace content 2201 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698