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/bind.h" | 10 #include "base/bind.h" |
(...skipping 5262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5273 #if defined(TOOLKIT_GTK) | 5273 #if defined(TOOLKIT_GTK) |
5274 WebColorName name = WebKit::WebColorWebkitFocusRingColor; | 5274 WebColorName name = WebKit::WebColorWebkitFocusRingColor; |
5275 WebKit::setNamedColors(&name, &renderer_prefs.focus_ring_color, 1); | 5275 WebKit::setNamedColors(&name, &renderer_prefs.focus_ring_color, 1); |
5276 WebKit::setCaretBlinkInterval(renderer_prefs.caret_blink_interval); | 5276 WebKit::setCaretBlinkInterval(renderer_prefs.caret_blink_interval); |
5277 ui::NativeTheme::instance()->SetScrollbarColors( | 5277 ui::NativeTheme::instance()->SetScrollbarColors( |
5278 renderer_prefs.thumb_inactive_color, | 5278 renderer_prefs.thumb_inactive_color, |
5279 renderer_prefs.thumb_active_color, | 5279 renderer_prefs.thumb_active_color, |
5280 renderer_prefs.track_color); | 5280 renderer_prefs.track_color); |
5281 #endif | 5281 #endif |
5282 | 5282 |
5283 #if defined(USE_ASH) || defined(TOOLKIT_GTK) | 5283 #if defined(USE_DEFAULT_RENDER_THEME) || defined(TOOLKIT_GTK) |
5284 if (webview()) { | 5284 if (webview()) { |
5285 #if defined(TOOLKIT_GTK) | 5285 #if defined(TOOLKIT_GTK) |
5286 webview()->setScrollbarColors( | 5286 webview()->setScrollbarColors( |
5287 renderer_prefs.thumb_inactive_color, | 5287 renderer_prefs.thumb_inactive_color, |
5288 renderer_prefs.thumb_active_color, | 5288 renderer_prefs.thumb_active_color, |
5289 renderer_prefs.track_color); | 5289 renderer_prefs.track_color); |
5290 #endif | 5290 #endif |
5291 webview()->setSelectionColors( | 5291 webview()->setSelectionColors( |
5292 renderer_prefs.active_selection_bg_color, | 5292 renderer_prefs.active_selection_bg_color, |
5293 renderer_prefs.active_selection_fg_color, | 5293 renderer_prefs.active_selection_fg_color, |
(...skipping 1146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6440 } | 6440 } |
6441 #endif | 6441 #endif |
6442 | 6442 |
6443 void RenderViewImpl::OnReleaseDisambiguationPopupDIB( | 6443 void RenderViewImpl::OnReleaseDisambiguationPopupDIB( |
6444 TransportDIB::Handle dib_handle) { | 6444 TransportDIB::Handle dib_handle) { |
6445 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); | 6445 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); |
6446 RenderProcess::current()->ReleaseTransportDIB(dib); | 6446 RenderProcess::current()->ReleaseTransportDIB(dib); |
6447 } | 6447 } |
6448 | 6448 |
6449 } // namespace content | 6449 } // namespace content |
OLD | NEW |