| 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_thread_impl.h" | 5 #include "content/renderer/render_thread_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 1904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1915 void RenderThreadImpl::OnUpdateScrollbarTheme( | 1915 void RenderThreadImpl::OnUpdateScrollbarTheme( |
| 1916 const ViewMsg_UpdateScrollbarTheme_Params& params) { | 1916 const ViewMsg_UpdateScrollbarTheme_Params& params) { |
| 1917 EnsureWebKitInitialized(); | 1917 EnsureWebKitInitialized(); |
| 1918 static_cast<WebScrollbarBehaviorImpl*>( | 1918 static_cast<WebScrollbarBehaviorImpl*>( |
| 1919 blink_platform_impl_->scrollbarBehavior()) | 1919 blink_platform_impl_->scrollbarBehavior()) |
| 1920 ->set_jump_on_track_click(params.jump_on_track_click); | 1920 ->set_jump_on_track_click(params.jump_on_track_click); |
| 1921 | 1921 |
| 1922 blink::WebScrollbarTheme::updateScrollbarsWithNSDefaults( | 1922 blink::WebScrollbarTheme::updateScrollbarsWithNSDefaults( |
| 1923 params.initial_button_delay, params.autoscroll_button_delay, | 1923 params.initial_button_delay, params.autoscroll_button_delay, |
| 1924 params.preferred_scroller_style, params.redraw, | 1924 params.preferred_scroller_style, params.redraw, |
| 1925 params.scroll_animation_enabled, params.button_placement); | 1925 params.button_placement); |
| 1926 } | 1926 } |
| 1927 | 1927 |
| 1928 void RenderThreadImpl::OnSystemColorsChanged( | 1928 void RenderThreadImpl::OnSystemColorsChanged( |
| 1929 int aqua_color_variant, | 1929 int aqua_color_variant, |
| 1930 const std::string& highlight_text_color, | 1930 const std::string& highlight_text_color, |
| 1931 const std::string& highlight_color) { | 1931 const std::string& highlight_color) { |
| 1932 SystemColorsDidChange(aqua_color_variant, highlight_text_color, | 1932 SystemColorsDidChange(aqua_color_variant, highlight_text_color, |
| 1933 highlight_color); | 1933 highlight_color); |
| 1934 } | 1934 } |
| 1935 #endif | 1935 #endif |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2111 } | 2111 } |
| 2112 | 2112 |
| 2113 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() { | 2113 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() { |
| 2114 size_t erased = | 2114 size_t erased = |
| 2115 RenderThreadImpl::current()->pending_render_frame_connects_.erase( | 2115 RenderThreadImpl::current()->pending_render_frame_connects_.erase( |
| 2116 routing_id_); | 2116 routing_id_); |
| 2117 DCHECK_EQ(1u, erased); | 2117 DCHECK_EQ(1u, erased); |
| 2118 } | 2118 } |
| 2119 | 2119 |
| 2120 } // namespace content | 2120 } // namespace content |
| OLD | NEW |