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

Side by Side Diff: cc/input/scrollbar_animation_controller.cc

Issue 2836243002: Temporarily ignore ScrollbarAnimationController::DidRequestShowFromMainThread. (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "cc/input/scrollbar_animation_controller.h" 5 #include "cc/input/scrollbar_animation_controller.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "cc/trees/layer_tree_impl.h" 10 #include "cc/trees/layer_tree_impl.h"
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 horizontal_controller_->UpdateThumbThicknessScale(); 219 horizontal_controller_->UpdateThumbThicknessScale();
220 } 220 }
221 } 221 }
222 222
223 void ScrollbarAnimationController::WillUpdateScroll() { 223 void ScrollbarAnimationController::WillUpdateScroll() {
224 if (show_scrollbars_on_scroll_gesture_) 224 if (show_scrollbars_on_scroll_gesture_)
225 DidScrollUpdate(); 225 DidScrollUpdate();
226 } 226 }
227 227
228 void ScrollbarAnimationController::DidRequestShowFromMainThread() { 228 void ScrollbarAnimationController::DidRequestShowFromMainThread() {
229 DidScrollUpdate(); 229 // TODO(skobes): Call DidScrollUpdate here (suppressed for crbug.com/706927).
230 } 230 }
231 231
232 void ScrollbarAnimationController::DidResize() { 232 void ScrollbarAnimationController::DidResize() {
233 StopAnimation(); 233 StopAnimation();
234 Show(); 234 Show();
235 235
236 // As an optimization, we avoid spamming fade delay tasks during active fast 236 // As an optimization, we avoid spamming fade delay tasks during active fast
237 // scrolls. 237 // scrolls.
238 if (!currently_scrolling_) { 238 if (!currently_scrolling_) {
239 PostDelayedFadeOut(true); 239 PostDelayedFadeOut(true);
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 if (opacity_ != opacity) 377 if (opacity_ != opacity)
378 client_->SetNeedsRedrawForScrollbarAnimation(); 378 client_->SetNeedsRedrawForScrollbarAnimation();
379 379
380 opacity_ = opacity; 380 opacity_ = opacity;
381 381
382 if (previouslyVisible != currentlyVisible) 382 if (previouslyVisible != currentlyVisible)
383 client_->DidChangeScrollbarVisibility(); 383 client_->DidChangeScrollbarVisibility();
384 } 384 }
385 385
386 } // namespace cc 386 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698