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 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 5276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5287 WebKit::setNamedColors(&name, &renderer_prefs.focus_ring_color, 1); | 5287 WebKit::setNamedColors(&name, &renderer_prefs.focus_ring_color, 1); |
5288 WebKit::setCaretBlinkInterval(renderer_prefs.caret_blink_interval); | 5288 WebKit::setCaretBlinkInterval(renderer_prefs.caret_blink_interval); |
5289 #if defined(TOOLKIT_GTK) | 5289 #if defined(TOOLKIT_GTK) |
5290 ui::NativeTheme::instance()->SetScrollbarColors( | 5290 ui::NativeTheme::instance()->SetScrollbarColors( |
5291 renderer_prefs.thumb_inactive_color, | 5291 renderer_prefs.thumb_inactive_color, |
5292 renderer_prefs.thumb_active_color, | 5292 renderer_prefs.thumb_active_color, |
5293 renderer_prefs.track_color); | 5293 renderer_prefs.track_color); |
5294 #endif // defined(TOOLKIT_GTK) | 5294 #endif // defined(TOOLKIT_GTK) |
5295 | 5295 |
5296 if (webview()) { | 5296 if (webview()) { |
5297 #if defined(TOOLKIT_GTK) | |
5298 webview()->setScrollbarColors( | |
5299 renderer_prefs.thumb_inactive_color, | |
5300 renderer_prefs.thumb_active_color, | |
5301 renderer_prefs.track_color); | |
5302 #endif // defined(TOOLKIT_GTK) | |
5303 webview()->setSelectionColors( | 5297 webview()->setSelectionColors( |
5304 renderer_prefs.active_selection_bg_color, | 5298 renderer_prefs.active_selection_bg_color, |
5305 renderer_prefs.active_selection_fg_color, | 5299 renderer_prefs.active_selection_fg_color, |
5306 renderer_prefs.inactive_selection_bg_color, | 5300 renderer_prefs.inactive_selection_bg_color, |
5307 renderer_prefs.inactive_selection_fg_color); | 5301 renderer_prefs.inactive_selection_fg_color); |
5308 webview()->themeChanged(); | 5302 webview()->themeChanged(); |
5309 } | 5303 } |
5310 } | 5304 } |
5311 #endif // defined(USE_DEFAULT_RENDER_THEME) || defined(TOOLKIT_GTK) | 5305 #endif // defined(USE_DEFAULT_RENDER_THEME) || defined(TOOLKIT_GTK) |
5312 | 5306 |
(...skipping 1305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6618 for (size_t i = 0; i < icon_urls.size(); i++) { | 6612 for (size_t i = 0; i < icon_urls.size(); i++) { |
6619 WebURL url = icon_urls[i].iconURL(); | 6613 WebURL url = icon_urls[i].iconURL(); |
6620 if (!url.isEmpty()) | 6614 if (!url.isEmpty()) |
6621 urls.push_back(FaviconURL(url, | 6615 urls.push_back(FaviconURL(url, |
6622 ToFaviconType(icon_urls[i].iconType()))); | 6616 ToFaviconType(icon_urls[i].iconType()))); |
6623 } | 6617 } |
6624 SendUpdateFaviconURL(urls); | 6618 SendUpdateFaviconURL(urls); |
6625 } | 6619 } |
6626 | 6620 |
6627 } // namespace content | 6621 } // namespace content |
OLD | NEW |