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

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

Issue 32813003: Remove use of WebView::setScrollbarColors API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5276 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698