| 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 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 716 | 716 |
| 717 webview()->setDisplayMode(display_mode_); | 717 webview()->setDisplayMode(display_mode_); |
| 718 webview()->settings()->setPreferCompositingToLCDTextEnabled( | 718 webview()->settings()->setPreferCompositingToLCDTextEnabled( |
| 719 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_)); | 719 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_)); |
| 720 webview()->settings()->setThreadedScrollingEnabled( | 720 webview()->settings()->setThreadedScrollingEnabled( |
| 721 !command_line.HasSwitch(switches::kDisableThreadedScrolling)); | 721 !command_line.HasSwitch(switches::kDisableThreadedScrolling)); |
| 722 webview()->settings()->setRootLayerScrolls( | 722 webview()->settings()->setRootLayerScrolls( |
| 723 command_line.HasSwitch(switches::kRootLayerScrolls)); | 723 command_line.HasSwitch(switches::kRootLayerScrolls)); |
| 724 webview()->setShowFPSCounter( | 724 webview()->setShowFPSCounter( |
| 725 command_line.HasSwitch(cc::switches::kShowFPSCounter)); | 725 command_line.HasSwitch(cc::switches::kShowFPSCounter)); |
| 726 webview()->setDeviceColorProfile(params.image_decode_color_profile); |
| 726 | 727 |
| 727 ApplyWebPreferencesInternal(webkit_preferences_, webview(), compositor_deps_); | 728 ApplyWebPreferencesInternal(webkit_preferences_, webview(), compositor_deps_); |
| 728 | 729 |
| 729 if (switches::IsTouchDragDropEnabled()) | 730 if (switches::IsTouchDragDropEnabled()) |
| 730 webview()->settings()->setTouchDragDropEnabled(true); | 731 webview()->settings()->setTouchDragDropEnabled(true); |
| 731 | 732 |
| 732 WebSettings::SelectionStrategyType selection_strategy = | 733 WebSettings::SelectionStrategyType selection_strategy = |
| 733 WebSettings::SelectionStrategyType::Character; | 734 WebSettings::SelectionStrategyType::Character; |
| 734 const std::string selection_strategy_str = | 735 const std::string selection_strategy_str = |
| 735 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( | 736 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
| (...skipping 2526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3262 return render_frame->focused_pepper_plugin(); | 3263 return render_frame->focused_pepper_plugin(); |
| 3263 } | 3264 } |
| 3264 frame = frame->traverseNext(false); | 3265 frame = frame->traverseNext(false); |
| 3265 } | 3266 } |
| 3266 | 3267 |
| 3267 return nullptr; | 3268 return nullptr; |
| 3268 } | 3269 } |
| 3269 #endif | 3270 #endif |
| 3270 | 3271 |
| 3271 } // namespace content | 3272 } // namespace content |
| OLD | NEW |