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

Side by Side Diff: chrome/renderer/render_view.cc

Issue 466080: linux: theme scrollbars from GTK theme ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/renderer_preferences.h ('k') | 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #if defined(ENABLE_PEPPER) 5 #if defined(ENABLE_PEPPER)
6 #define PEPPER_APIS_ENABLED 6 #define PEPPER_APIS_ENABLED
7 #endif 7 #endif
8 8
9 #include "chrome/renderer/render_view.h" 9 #include "chrome/renderer/render_view.h"
10 10
(...skipping 3192 matching lines...) Expand 10 before | Expand all | Expand 10 after
3203 void RenderView::OnEnablePreferredSizeChangedMode() { 3203 void RenderView::OnEnablePreferredSizeChangedMode() {
3204 send_preferred_size_changes_ = true; 3204 send_preferred_size_changes_ = true;
3205 } 3205 }
3206 3206
3207 void RenderView::OnSetRendererPrefs(const RendererPreferences& renderer_prefs) { 3207 void RenderView::OnSetRendererPrefs(const RendererPreferences& renderer_prefs) {
3208 renderer_preferences_ = renderer_prefs; 3208 renderer_preferences_ = renderer_prefs;
3209 UpdateFontRenderingFromRendererPrefs(); 3209 UpdateFontRenderingFromRendererPrefs();
3210 #if defined(OS_LINUX) && !defined(TOOLKIT_VIEWS) 3210 #if defined(OS_LINUX) && !defined(TOOLKIT_VIEWS)
3211 WebColorName name = WebKit::WebColorWebkitFocusRingColor; 3211 WebColorName name = WebKit::WebColorWebkitFocusRingColor;
3212 WebKit::setNamedColors(&name, &renderer_prefs.focus_ring_color, 1); 3212 WebKit::setNamedColors(&name, &renderer_prefs.focus_ring_color, 1);
3213
3214 if (webview())
3215 webview()->setScrollbarColors(
3216 renderer_prefs.thumb_inactive_color,
3217 renderer_prefs.thumb_active_color,
3218 renderer_prefs.track_color);
3213 #endif 3219 #endif
3214 } 3220 }
3215 3221
3216 void RenderView::OnMediaPlayerActionAt(const gfx::Point& location, 3222 void RenderView::OnMediaPlayerActionAt(const gfx::Point& location,
3217 const WebMediaPlayerAction& action) { 3223 const WebMediaPlayerAction& action) {
3218 if (webview()) 3224 if (webview())
3219 webview()->performMediaPlayerAction(action, location); 3225 webview()->performMediaPlayerAction(action, location);
3220 } 3226 }
3221 3227
3222 void RenderView::OnNotifyRendererViewType(ViewType::Type type) { 3228 void RenderView::OnNotifyRendererViewType(ViewType::Type type) {
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
3878 new PluginMsg_SignalModalDialogEvent(host_window_)); 3884 new PluginMsg_SignalModalDialogEvent(host_window_));
3879 3885
3880 message->EnableMessagePumping(); // Runs a nested message loop. 3886 message->EnableMessagePumping(); // Runs a nested message loop.
3881 bool rv = Send(message); 3887 bool rv = Send(message);
3882 3888
3883 PluginChannelHost::Broadcast( 3889 PluginChannelHost::Broadcast(
3884 new PluginMsg_ResetModalDialogEvent(host_window_)); 3890 new PluginMsg_ResetModalDialogEvent(host_window_));
3885 3891
3886 return rv; 3892 return rv;
3887 } 3893 }
OLDNEW
« no previous file with comments | « chrome/common/renderer_preferences.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698