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 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 #include "third_party/WebKit/public/web/WebSecurityPolicy.h" | 162 #include "third_party/WebKit/public/web/WebSecurityPolicy.h" |
163 #include "third_party/WebKit/public/web/WebSettings.h" | 163 #include "third_party/WebKit/public/web/WebSettings.h" |
164 #include "third_party/WebKit/public/web/WebUserGestureIndicator.h" | 164 #include "third_party/WebKit/public/web/WebUserGestureIndicator.h" |
165 #include "third_party/WebKit/public/web/WebView.h" | 165 #include "third_party/WebKit/public/web/WebView.h" |
166 #include "third_party/WebKit/public/web/WebWindowFeatures.h" | 166 #include "third_party/WebKit/public/web/WebWindowFeatures.h" |
167 #include "third_party/WebKit/public/web/default/WebRenderTheme.h" | 167 #include "third_party/WebKit/public/web/default/WebRenderTheme.h" |
168 #include "third_party/icu/source/common/unicode/uchar.h" | 168 #include "third_party/icu/source/common/unicode/uchar.h" |
169 #include "third_party/icu/source/common/unicode/uscript.h" | 169 #include "third_party/icu/source/common/unicode/uscript.h" |
170 #include "ui/base/clipboard/clipboard.h" | 170 #include "ui/base/clipboard/clipboard.h" |
171 #include "ui/base/ui_base_switches_util.h" | 171 #include "ui/base/ui_base_switches_util.h" |
172 #include "ui/events/latency_info.h" | |
173 #include "ui/gfx/geometry/point.h" | 172 #include "ui/gfx/geometry/point.h" |
174 #include "ui/gfx/geometry/rect.h" | 173 #include "ui/gfx/geometry/rect.h" |
175 #include "ui/gfx/geometry/rect_conversions.h" | 174 #include "ui/gfx/geometry/rect_conversions.h" |
176 #include "ui/gfx/geometry/size_conversions.h" | 175 #include "ui/gfx/geometry/size_conversions.h" |
177 #include "ui/gfx/native_widget_types.h" | 176 #include "ui/gfx/native_widget_types.h" |
| 177 #include "ui/latency_info/latency_info.h" |
178 #include "url/url_constants.h" | 178 #include "url/url_constants.h" |
179 #include "v8/include/v8.h" | 179 #include "v8/include/v8.h" |
180 | 180 |
181 #if defined(OS_ANDROID) | 181 #if defined(OS_ANDROID) |
182 #include <cpu-features.h> | 182 #include <cpu-features.h> |
183 | 183 |
184 #include "content/renderer/android/address_detector.h" | 184 #include "content/renderer/android/address_detector.h" |
185 #include "content/renderer/android/content_detector.h" | 185 #include "content/renderer/android/content_detector.h" |
186 #include "content/renderer/android/email_detector.h" | 186 #include "content/renderer/android/email_detector.h" |
187 #include "content/renderer/android/phone_number_detector.h" | 187 #include "content/renderer/android/phone_number_detector.h" |
(...skipping 3240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3428 if (IsUseZoomForDSFEnabled()) { | 3428 if (IsUseZoomForDSFEnabled()) { |
3429 webview()->setZoomFactorForDeviceScaleFactor(device_scale_factor_); | 3429 webview()->setZoomFactorForDeviceScaleFactor(device_scale_factor_); |
3430 } else { | 3430 } else { |
3431 webview()->setDeviceScaleFactor(device_scale_factor_); | 3431 webview()->setDeviceScaleFactor(device_scale_factor_); |
3432 } | 3432 } |
3433 webview()->settings()->setPreferCompositingToLCDTextEnabled( | 3433 webview()->settings()->setPreferCompositingToLCDTextEnabled( |
3434 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_)); | 3434 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_)); |
3435 } | 3435 } |
3436 | 3436 |
3437 } // namespace content | 3437 } // namespace content |
OLD | NEW |