| 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 1936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1947 void RenderThreadImpl::OnUpdateScrollbarTheme( | 1947 void RenderThreadImpl::OnUpdateScrollbarTheme( |
| 1948 const ViewMsg_UpdateScrollbarTheme_Params& params) { | 1948 const ViewMsg_UpdateScrollbarTheme_Params& params) { |
| 1949 EnsureWebKitInitialized(); | 1949 EnsureWebKitInitialized(); |
| 1950 static_cast<WebScrollbarBehaviorImpl*>( | 1950 static_cast<WebScrollbarBehaviorImpl*>( |
| 1951 blink_platform_impl_->scrollbarBehavior()) | 1951 blink_platform_impl_->scrollbarBehavior()) |
| 1952 ->set_jump_on_track_click(params.jump_on_track_click); | 1952 ->set_jump_on_track_click(params.jump_on_track_click); |
| 1953 | 1953 |
| 1954 blink::WebScrollbarTheme::updateScrollbarsWithNSDefaults( | 1954 blink::WebScrollbarTheme::updateScrollbarsWithNSDefaults( |
| 1955 params.initial_button_delay, params.autoscroll_button_delay, | 1955 params.initial_button_delay, params.autoscroll_button_delay, |
| 1956 params.preferred_scroller_style, params.redraw, | 1956 params.preferred_scroller_style, params.redraw, |
| 1957 params.scroll_animation_enabled, params.button_placement); | 1957 params.button_placement); |
| 1958 } | 1958 } |
| 1959 | 1959 |
| 1960 void RenderThreadImpl::OnSystemColorsChanged( | 1960 void RenderThreadImpl::OnSystemColorsChanged( |
| 1961 int aqua_color_variant, | 1961 int aqua_color_variant, |
| 1962 const std::string& highlight_text_color, | 1962 const std::string& highlight_text_color, |
| 1963 const std::string& highlight_color) { | 1963 const std::string& highlight_color) { |
| 1964 SystemColorsDidChange(aqua_color_variant, highlight_text_color, | 1964 SystemColorsDidChange(aqua_color_variant, highlight_text_color, |
| 1965 highlight_color); | 1965 highlight_color); |
| 1966 } | 1966 } |
| 1967 #endif | 1967 #endif |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2143 } | 2143 } |
| 2144 | 2144 |
| 2145 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() { | 2145 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() { |
| 2146 size_t erased = | 2146 size_t erased = |
| 2147 RenderThreadImpl::current()->pending_render_frame_connects_.erase( | 2147 RenderThreadImpl::current()->pending_render_frame_connects_.erase( |
| 2148 routing_id_); | 2148 routing_id_); |
| 2149 DCHECK_EQ(1u, erased); | 2149 DCHECK_EQ(1u, erased); |
| 2150 } | 2150 } |
| 2151 | 2151 |
| 2152 } // namespace content | 2152 } // namespace content |
| OLD | NEW |