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

Side by Side Diff: content/renderer/render_thread_impl.cc

Issue 1653003002: Make scrollAnimatorEnabled work on Mac like it does on other platforms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move from base/mac to animation_mac.mm Created 4 years, 10 months 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
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698