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

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

Issue 2381373002: Disable caret blinking for blimp (Closed)
Patch Set: Created 4 years, 2 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 #include <memory> 9 #include <memory>
10 10
(...skipping 970 matching lines...) Expand 10 before | Expand all | Expand 10 after
981 settings->setNavigateOnDragDrop(prefs.navigate_on_drag_drop); 981 settings->setNavigateOnDragDrop(prefs.navigate_on_drag_drop);
982 982
983 // By default, allow_universal_access_from_file_urls is set to false and thus 983 // By default, allow_universal_access_from_file_urls is set to false and thus
984 // we mitigate attacks from local HTML files by not granting file:// URLs 984 // we mitigate attacks from local HTML files by not granting file:// URLs
985 // universal access. Only test shell will enable this. 985 // universal access. Only test shell will enable this.
986 settings->setAllowUniversalAccessFromFileURLs( 986 settings->setAllowUniversalAccessFromFileURLs(
987 prefs.allow_universal_access_from_file_urls); 987 prefs.allow_universal_access_from_file_urls);
988 settings->setAllowFileAccessFromFileURLs( 988 settings->setAllowFileAccessFromFileURLs(
989 prefs.allow_file_access_from_file_urls); 989 prefs.allow_file_access_from_file_urls);
990 990
991 settings->setDisableCaretBlinking(prefs.disable_caret_blinking);
nyquist 2016/10/05 04:02:42 Could you add a comment as to what this does?
992
991 // Enable experimental WebGL support if requested on command line 993 // Enable experimental WebGL support if requested on command line
992 // and support is compiled in. 994 // and support is compiled in.
993 settings->setExperimentalWebGLEnabled(prefs.experimental_webgl_enabled); 995 settings->setExperimentalWebGLEnabled(prefs.experimental_webgl_enabled);
994 996
995 // Enable WebGL errors to the JS console if requested. 997 // Enable WebGL errors to the JS console if requested.
996 settings->setWebGLErrorsToConsoleEnabled( 998 settings->setWebGLErrorsToConsoleEnabled(
997 prefs.webgl_errors_to_console_enabled); 999 prefs.webgl_errors_to_console_enabled);
998 1000
999 // Uses the mock theme engine for scrollbars. 1001 // Uses the mock theme engine for scrollbars.
1000 settings->setMockScrollbarsEnabled(prefs.mock_scrollbars_enabled); 1002 settings->setMockScrollbarsEnabled(prefs.mock_scrollbars_enabled);
(...skipping 2013 matching lines...) Expand 10 before | Expand all | Expand 10 after
3014 if (IsUseZoomForDSFEnabled()) { 3016 if (IsUseZoomForDSFEnabled()) {
3015 webview()->setZoomFactorForDeviceScaleFactor(device_scale_factor_); 3017 webview()->setZoomFactorForDeviceScaleFactor(device_scale_factor_);
3016 } else { 3018 } else {
3017 webview()->setDeviceScaleFactor(device_scale_factor_); 3019 webview()->setDeviceScaleFactor(device_scale_factor_);
3018 } 3020 }
3019 webview()->settings()->setPreferCompositingToLCDTextEnabled( 3021 webview()->settings()->setPreferCompositingToLCDTextEnabled(
3020 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_)); 3022 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_));
3021 } 3023 }
3022 3024
3023 } // namespace content 3025 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698