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