| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 #include "third_party/WebKit/public/web/WebHitTestResult.h" | 142 #include "third_party/WebKit/public/web/WebHitTestResult.h" |
| 143 #include "third_party/WebKit/public/web/WebInputElement.h" | 143 #include "third_party/WebKit/public/web/WebInputElement.h" |
| 144 #include "third_party/WebKit/public/web/WebInputEvent.h" | 144 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 145 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 145 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
| 146 #include "third_party/WebKit/public/web/WebMediaPlayerAction.h" | 146 #include "third_party/WebKit/public/web/WebMediaPlayerAction.h" |
| 147 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" | 147 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" |
| 148 #include "third_party/WebKit/public/web/WebPageImportanceSignals.h" | 148 #include "third_party/WebKit/public/web/WebPageImportanceSignals.h" |
| 149 #include "third_party/WebKit/public/web/WebPlugin.h" | 149 #include "third_party/WebKit/public/web/WebPlugin.h" |
| 150 #include "third_party/WebKit/public/web/WebPluginAction.h" | 150 #include "third_party/WebKit/public/web/WebPluginAction.h" |
| 151 #include "third_party/WebKit/public/web/WebRange.h" | 151 #include "third_party/WebKit/public/web/WebRange.h" |
| 152 #include "third_party/WebKit/public/web/WebRenderTheme.h" |
| 152 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" | 153 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" |
| 153 #include "third_party/WebKit/public/web/WebScriptSource.h" | 154 #include "third_party/WebKit/public/web/WebScriptSource.h" |
| 154 #include "third_party/WebKit/public/web/WebSearchableFormData.h" | 155 #include "third_party/WebKit/public/web/WebSearchableFormData.h" |
| 155 #include "third_party/WebKit/public/web/WebSecurityPolicy.h" | 156 #include "third_party/WebKit/public/web/WebSecurityPolicy.h" |
| 156 #include "third_party/WebKit/public/web/WebSettings.h" | 157 #include "third_party/WebKit/public/web/WebSettings.h" |
| 157 #include "third_party/WebKit/public/web/WebUserGestureIndicator.h" | 158 #include "third_party/WebKit/public/web/WebUserGestureIndicator.h" |
| 158 #include "third_party/WebKit/public/web/WebView.h" | 159 #include "third_party/WebKit/public/web/WebView.h" |
| 159 #include "third_party/WebKit/public/web/WebWindowFeatures.h" | 160 #include "third_party/WebKit/public/web/WebWindowFeatures.h" |
| 160 #include "third_party/WebKit/public/web/default/WebRenderTheme.h" | |
| 161 #include "third_party/icu/source/common/unicode/uchar.h" | 161 #include "third_party/icu/source/common/unicode/uchar.h" |
| 162 #include "third_party/icu/source/common/unicode/uscript.h" | 162 #include "third_party/icu/source/common/unicode/uscript.h" |
| 163 #include "ui/base/clipboard/clipboard.h" | 163 #include "ui/base/clipboard/clipboard.h" |
| 164 #include "ui/base/ui_base_switches_util.h" | 164 #include "ui/base/ui_base_switches_util.h" |
| 165 #include "ui/events/latency_info.h" | 165 #include "ui/events/latency_info.h" |
| 166 #include "ui/gfx/geometry/point.h" | 166 #include "ui/gfx/geometry/point.h" |
| 167 #include "ui/gfx/geometry/rect.h" | 167 #include "ui/gfx/geometry/rect.h" |
| 168 #include "ui/gfx/geometry/rect_conversions.h" | 168 #include "ui/gfx/geometry/rect_conversions.h" |
| 169 #include "ui/gfx/geometry/size_conversions.h" | 169 #include "ui/gfx/geometry/size_conversions.h" |
| 170 #include "ui/gfx/native_widget_types.h" | 170 #include "ui/gfx/native_widget_types.h" |
| (...skipping 2274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2445 disable_scrollbars_size_limit_ = disable_scrollbar_size_limit; | 2445 disable_scrollbars_size_limit_ = disable_scrollbar_size_limit; |
| 2446 } | 2446 } |
| 2447 | 2447 |
| 2448 void RenderViewImpl::OnSetRendererPrefs( | 2448 void RenderViewImpl::OnSetRendererPrefs( |
| 2449 const RendererPreferences& renderer_prefs) { | 2449 const RendererPreferences& renderer_prefs) { |
| 2450 std::string old_accept_languages = renderer_preferences_.accept_languages; | 2450 std::string old_accept_languages = renderer_preferences_.accept_languages; |
| 2451 | 2451 |
| 2452 renderer_preferences_ = renderer_prefs; | 2452 renderer_preferences_ = renderer_prefs; |
| 2453 | 2453 |
| 2454 UpdateFontRenderingFromRendererPrefs(); | 2454 UpdateFontRenderingFromRendererPrefs(); |
| 2455 blink::setCaretBlinkInterval(renderer_prefs.caret_blink_interval); |
| 2455 | 2456 |
| 2456 #if defined(USE_DEFAULT_RENDER_THEME) | 2457 #if defined(USE_DEFAULT_RENDER_THEME) |
| 2457 if (renderer_prefs.use_custom_colors) { | 2458 if (renderer_prefs.use_custom_colors) { |
| 2458 blink::setFocusRingColor(renderer_prefs.focus_ring_color); | 2459 blink::setFocusRingColor(renderer_prefs.focus_ring_color); |
| 2459 blink::setCaretBlinkInterval(renderer_prefs.caret_blink_interval); | |
| 2460 | 2460 |
| 2461 if (webview()) { | 2461 if (webview()) { |
| 2462 webview()->setSelectionColors( | 2462 webview()->setSelectionColors( |
| 2463 renderer_prefs.active_selection_bg_color, | 2463 renderer_prefs.active_selection_bg_color, |
| 2464 renderer_prefs.active_selection_fg_color, | 2464 renderer_prefs.active_selection_fg_color, |
| 2465 renderer_prefs.inactive_selection_bg_color, | 2465 renderer_prefs.inactive_selection_bg_color, |
| 2466 renderer_prefs.inactive_selection_fg_color); | 2466 renderer_prefs.inactive_selection_fg_color); |
| 2467 webview()->themeChanged(); | 2467 webview()->themeChanged(); |
| 2468 } | 2468 } |
| 2469 } | 2469 } |
| (...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3081 return render_frame->focused_pepper_plugin(); | 3081 return render_frame->focused_pepper_plugin(); |
| 3082 } | 3082 } |
| 3083 frame = frame->traverseNext(false); | 3083 frame = frame->traverseNext(false); |
| 3084 } | 3084 } |
| 3085 | 3085 |
| 3086 return nullptr; | 3086 return nullptr; |
| 3087 } | 3087 } |
| 3088 #endif | 3088 #endif |
| 3089 | 3089 |
| 3090 } // namespace content | 3090 } // namespace content |
| OLD | NEW |