OLD | NEW |
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 3198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3209 void RenderView::OnEnablePreferredSizeChangedMode() { | 3209 void RenderView::OnEnablePreferredSizeChangedMode() { |
3210 send_preferred_size_changes_ = true; | 3210 send_preferred_size_changes_ = true; |
3211 } | 3211 } |
3212 | 3212 |
3213 void RenderView::OnSetRendererPrefs(const RendererPreferences& renderer_prefs) { | 3213 void RenderView::OnSetRendererPrefs(const RendererPreferences& renderer_prefs) { |
3214 renderer_preferences_ = renderer_prefs; | 3214 renderer_preferences_ = renderer_prefs; |
3215 UpdateFontRenderingFromRendererPrefs(); | 3215 UpdateFontRenderingFromRendererPrefs(); |
3216 #if defined(OS_LINUX) && !defined(TOOLKIT_VIEWS) | 3216 #if defined(OS_LINUX) && !defined(TOOLKIT_VIEWS) |
3217 WebColorName name = WebKit::WebColorWebkitFocusRingColor; | 3217 WebColorName name = WebKit::WebColorWebkitFocusRingColor; |
3218 WebKit::setNamedColors(&name, &renderer_prefs.focus_ring_color, 1); | 3218 WebKit::setNamedColors(&name, &renderer_prefs.focus_ring_color, 1); |
| 3219 |
| 3220 if (webview()) |
| 3221 webview()->setScrollbarColors( |
| 3222 renderer_prefs.thumb_inactive_color, |
| 3223 renderer_prefs.thumb_active_color, |
| 3224 renderer_prefs.track_color); |
3219 #endif | 3225 #endif |
3220 } | 3226 } |
3221 | 3227 |
3222 void RenderView::OnMediaPlayerActionAt(const gfx::Point& location, | 3228 void RenderView::OnMediaPlayerActionAt(const gfx::Point& location, |
3223 const WebMediaPlayerAction& action) { | 3229 const WebMediaPlayerAction& action) { |
3224 if (webview()) | 3230 if (webview()) |
3225 webview()->performMediaPlayerAction(action, location); | 3231 webview()->performMediaPlayerAction(action, location); |
3226 } | 3232 } |
3227 | 3233 |
3228 void RenderView::OnNotifyRendererViewType(ViewType::Type type) { | 3234 void RenderView::OnNotifyRendererViewType(ViewType::Type type) { |
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3884 new PluginMsg_SignalModalDialogEvent(host_window_)); | 3890 new PluginMsg_SignalModalDialogEvent(host_window_)); |
3885 | 3891 |
3886 message->EnableMessagePumping(); // Runs a nested message loop. | 3892 message->EnableMessagePumping(); // Runs a nested message loop. |
3887 bool rv = Send(message); | 3893 bool rv = Send(message); |
3888 | 3894 |
3889 PluginChannelHost::Broadcast( | 3895 PluginChannelHost::Broadcast( |
3890 new PluginMsg_ResetModalDialogEvent(host_window_)); | 3896 new PluginMsg_ResetModalDialogEvent(host_window_)); |
3891 | 3897 |
3892 return rv; | 3898 return rv; |
3893 } | 3899 } |
OLD | NEW |