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

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

Issue 1755363003: Revert of Mustash: Move GURL ParamTraits to url/ipc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
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" 172 #include "ui/events/latency_info.h"
173 #include "ui/gfx/geometry/point.h" 173 #include "ui/gfx/geometry/point.h"
174 #include "ui/gfx/geometry/rect.h" 174 #include "ui/gfx/geometry/rect.h"
175 #include "ui/gfx/geometry/rect_conversions.h" 175 #include "ui/gfx/geometry/rect_conversions.h"
176 #include "ui/gfx/geometry/size_conversions.h" 176 #include "ui/gfx/geometry/size_conversions.h"
177 #include "ui/gfx/native_widget_types.h" 177 #include "ui/gfx/native_widget_types.h"
178 #include "url/url_constants.h"
179 #include "v8/include/v8.h" 178 #include "v8/include/v8.h"
180 179
181 #if defined(OS_ANDROID) 180 #if defined(OS_ANDROID)
182 #include <cpu-features.h> 181 #include <cpu-features.h>
183 182
184 #include "content/renderer/android/address_detector.h" 183 #include "content/renderer/android/address_detector.h"
185 #include "content/renderer/android/content_detector.h" 184 #include "content/renderer/android/content_detector.h"
186 #include "content/renderer/android/email_detector.h" 185 #include "content/renderer/android/email_detector.h"
187 #include "content/renderer/android/phone_number_detector.h" 186 #include "content/renderer/android/phone_number_detector.h"
188 #include "ui/gfx/geometry/rect_f.h" 187 #include "ui/gfx/geometry/rect_f.h"
(...skipping 1701 matching lines...) Expand 10 before | Expand all | Expand 10 after
1890 if (target_url_status_ == TARGET_INFLIGHT || 1889 if (target_url_status_ == TARGET_INFLIGHT ||
1891 target_url_status_ == TARGET_PENDING) { 1890 target_url_status_ == TARGET_PENDING) {
1892 // If we have a request in-flight, save the URL to be sent when we 1891 // If we have a request in-flight, save the URL to be sent when we
1893 // receive an ACK to the in-flight request. We can happily overwrite 1892 // receive an ACK to the in-flight request. We can happily overwrite
1894 // any existing pending sends. 1893 // any existing pending sends.
1895 pending_target_url_ = latest_url; 1894 pending_target_url_ = latest_url;
1896 target_url_status_ = TARGET_PENDING; 1895 target_url_status_ = TARGET_PENDING;
1897 } else { 1896 } else {
1898 // URLs larger than |kMaxURLChars| cannot be sent through IPC - 1897 // URLs larger than |kMaxURLChars| cannot be sent through IPC -
1899 // see |ParamTraits<GURL>|. 1898 // see |ParamTraits<GURL>|.
1900 if (latest_url.possibly_invalid_spec().size() > url::kMaxURLChars) 1899 if (latest_url.possibly_invalid_spec().size() > kMaxURLChars)
1901 latest_url = GURL(); 1900 latest_url = GURL();
1902 Send(new ViewHostMsg_UpdateTargetURL(routing_id(), latest_url)); 1901 Send(new ViewHostMsg_UpdateTargetURL(routing_id(), latest_url));
1903 target_url_ = latest_url; 1902 target_url_ = latest_url;
1904 target_url_status_ = TARGET_INFLIGHT; 1903 target_url_status_ = TARGET_INFLIGHT;
1905 } 1904 }
1906 } 1905 }
1907 1906
1908 gfx::RectF RenderViewImpl::ClientRectToPhysicalWindowRect( 1907 gfx::RectF RenderViewImpl::ClientRectToPhysicalWindowRect(
1909 const gfx::RectF& rect) const { 1908 const gfx::RectF& rect) const {
1910 gfx::RectF window_rect = rect; 1909 gfx::RectF window_rect = rect;
(...skipping 1639 matching lines...) Expand 10 before | Expand all | Expand 10 after
3550 if (IsUseZoomForDSFEnabled()) { 3549 if (IsUseZoomForDSFEnabled()) {
3551 webview()->setZoomFactorForDeviceScaleFactor(device_scale_factor_); 3550 webview()->setZoomFactorForDeviceScaleFactor(device_scale_factor_);
3552 } else { 3551 } else {
3553 webview()->setDeviceScaleFactor(device_scale_factor_); 3552 webview()->setDeviceScaleFactor(device_scale_factor_);
3554 } 3553 }
3555 webview()->settings()->setPreferCompositingToLCDTextEnabled( 3554 webview()->settings()->setPreferCompositingToLCDTextEnabled(
3556 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_)); 3555 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_));
3557 } 3556 }
3558 3557
3559 } // namespace content 3558 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/shell/common/layout_test/layout_test_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698