| 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/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 28 matching lines...) Expand all Loading... |
| 39 #include "content/browser/renderer_host/input/synthetic_gesture_target.h" | 39 #include "content/browser/renderer_host/input/synthetic_gesture_target.h" |
| 40 #include "content/browser/renderer_host/input/timeout_monitor.h" | 40 #include "content/browser/renderer_host/input/timeout_monitor.h" |
| 41 #include "content/browser/renderer_host/input/touch_emulator.h" | 41 #include "content/browser/renderer_host/input/touch_emulator.h" |
| 42 #include "content/browser/renderer_host/render_process_host_impl.h" | 42 #include "content/browser/renderer_host/render_process_host_impl.h" |
| 43 #include "content/browser/renderer_host/render_view_host_impl.h" | 43 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 44 #include "content/browser/renderer_host/render_widget_helper.h" | 44 #include "content/browser/renderer_host/render_widget_helper.h" |
| 45 #include "content/browser/renderer_host/render_widget_host_delegate.h" | 45 #include "content/browser/renderer_host/render_widget_host_delegate.h" |
| 46 #include "content/browser/renderer_host/render_widget_host_owner_delegate.h" | 46 #include "content/browser/renderer_host/render_widget_host_owner_delegate.h" |
| 47 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 47 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
| 48 #include "content/common/content_constants_internal.h" | 48 #include "content/common/content_constants_internal.h" |
| 49 #include "content/common/content_switches_internal.h" |
| 49 #include "content/common/cursors/webcursor.h" | 50 #include "content/common/cursors/webcursor.h" |
| 50 #include "content/common/frame_messages.h" | 51 #include "content/common/frame_messages.h" |
| 51 #include "content/common/gpu/gpu_messages.h" | 52 #include "content/common/gpu/gpu_messages.h" |
| 52 #include "content/common/host_shared_bitmap_manager.h" | 53 #include "content/common/host_shared_bitmap_manager.h" |
| 53 #include "content/common/input_messages.h" | 54 #include "content/common/input_messages.h" |
| 54 #include "content/common/view_messages.h" | 55 #include "content/common/view_messages.h" |
| 55 #include "content/public/browser/native_web_keyboard_event.h" | 56 #include "content/public/browser/native_web_keyboard_event.h" |
| 56 #include "content/public/browser/notification_service.h" | 57 #include "content/public/browser/notification_service.h" |
| 57 #include "content/public/browser/notification_types.h" | 58 #include "content/public/browser/notification_types.h" |
| 58 #include "content/public/browser/render_widget_host_iterator.h" | 59 #include "content/public/browser/render_widget_host_iterator.h" |
| (...skipping 1202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1261 | 1262 |
| 1262 void RenderWidgetHostImpl::GetWebScreenInfo(blink::WebScreenInfo* result) { | 1263 void RenderWidgetHostImpl::GetWebScreenInfo(blink::WebScreenInfo* result) { |
| 1263 TRACE_EVENT0("renderer_host", "RenderWidgetHostImpl::GetWebScreenInfo"); | 1264 TRACE_EVENT0("renderer_host", "RenderWidgetHostImpl::GetWebScreenInfo"); |
| 1264 if (view_) | 1265 if (view_) |
| 1265 view_->GetScreenInfo(result); | 1266 view_->GetScreenInfo(result); |
| 1266 else | 1267 else |
| 1267 RenderWidgetHostViewBase::GetDefaultScreenInfo(result); | 1268 RenderWidgetHostViewBase::GetDefaultScreenInfo(result); |
| 1268 // TODO(sievers): find a way to make this done another way so the method | 1269 // TODO(sievers): find a way to make this done another way so the method |
| 1269 // can be const. | 1270 // can be const. |
| 1270 latency_tracker_.set_device_scale_factor(result->deviceScaleFactor); | 1271 latency_tracker_.set_device_scale_factor(result->deviceScaleFactor); |
| 1272 if (IsUseZoomForDSFEnabled()) |
| 1273 input_router_->SetDeviceScaleFactor(result->deviceScaleFactor); |
| 1271 } | 1274 } |
| 1272 | 1275 |
| 1273 bool RenderWidgetHostImpl::GetScreenColorProfile( | 1276 bool RenderWidgetHostImpl::GetScreenColorProfile( |
| 1274 std::vector<char>* color_profile) { | 1277 std::vector<char>* color_profile) { |
| 1275 DCHECK(color_profile->empty()); | 1278 DCHECK(color_profile->empty()); |
| 1276 if (view_) | 1279 if (view_) |
| 1277 return view_->GetScreenColorProfile(color_profile); | 1280 return view_->GetScreenColorProfile(color_profile); |
| 1278 return false; | 1281 return false; |
| 1279 } | 1282 } |
| 1280 | 1283 |
| (...skipping 962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2243 } | 2246 } |
| 2244 | 2247 |
| 2245 #if defined(OS_WIN) | 2248 #if defined(OS_WIN) |
| 2246 gfx::NativeViewAccessible | 2249 gfx::NativeViewAccessible |
| 2247 RenderWidgetHostImpl::GetParentNativeViewAccessible() { | 2250 RenderWidgetHostImpl::GetParentNativeViewAccessible() { |
| 2248 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL; | 2251 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL; |
| 2249 } | 2252 } |
| 2250 #endif | 2253 #endif |
| 2251 | 2254 |
| 2252 } // namespace content | 2255 } // namespace content |
| OLD | NEW |