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/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 3302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3313 if (focused_pepper_plugin_) | 3313 if (focused_pepper_plugin_) |
3314 return focused_pepper_plugin_->IsPluginAcceptingCompositionEvents(); | 3314 return focused_pepper_plugin_->IsPluginAcceptingCompositionEvents(); |
3315 #endif | 3315 #endif |
3316 return true; | 3316 return true; |
3317 } | 3317 } |
3318 | 3318 |
3319 void RenderViewImpl::DidCompletePageScaleAnimation() { | 3319 void RenderViewImpl::DidCompletePageScaleAnimation() { |
3320 FocusChangeComplete(); | 3320 FocusChangeComplete(); |
3321 } | 3321 } |
3322 | 3322 |
3323 #if defined(OS_ANDROID) | |
3324 bool RenderViewImpl::DoesRecordFullLayer() const { | |
3325 return webkit_preferences_.record_whole_document; | |
3326 } | |
3327 #endif | |
3328 | |
3329 void RenderViewImpl::SetScreenMetricsEmulationParameters( | 3323 void RenderViewImpl::SetScreenMetricsEmulationParameters( |
3330 bool enabled, | 3324 bool enabled, |
3331 const blink::WebDeviceEmulationParams& params) { | 3325 const blink::WebDeviceEmulationParams& params) { |
3332 if (webview() && compositor()) { | 3326 if (webview() && compositor()) { |
3333 if (enabled) | 3327 if (enabled) |
3334 webview()->enableDeviceEmulation(params); | 3328 webview()->enableDeviceEmulation(params); |
3335 else | 3329 else |
3336 webview()->disableDeviceEmulation(); | 3330 webview()->disableDeviceEmulation(); |
3337 } | 3331 } |
3338 } | 3332 } |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3720 if (IsUseZoomForDSFEnabled()) { | 3714 if (IsUseZoomForDSFEnabled()) { |
3721 compositor_->SetPaintedDeviceScaleFactor(device_scale_factor_); | 3715 compositor_->SetPaintedDeviceScaleFactor(device_scale_factor_); |
3722 webview()->setZoomFactorForDeviceScaleFactor( | 3716 webview()->setZoomFactorForDeviceScaleFactor( |
3723 device_scale_factor_); | 3717 device_scale_factor_); |
3724 } else { | 3718 } else { |
3725 webview()->setDeviceScaleFactor(device_scale_factor_); | 3719 webview()->setDeviceScaleFactor(device_scale_factor_); |
3726 } | 3720 } |
3727 } | 3721 } |
3728 | 3722 |
3729 } // namespace content | 3723 } // namespace content |
OLD | NEW |