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

Side by Side Diff: ui/views/controls/scrollbar/cocoa_scroll_bar.mm

Issue 2820133005: Revert of Back PaintRecord with PaintOpBuffer instead of SkPicture (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 | « third_party/WebKit/Source/platform/mac/LocalCurrentGraphicsContext.mm ('k') | 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #import "ui/views/controls/scrollbar/cocoa_scroll_bar.h" 5 #import "ui/views/controls/scrollbar/cocoa_scroll_bar.h"
6 6
7 #import "base/mac/sdk_forward_declarations.h" 7 #import "base/mac/sdk_forward_declarations.h"
8 #include "cc/paint/paint_shader.h"
9 #include "third_party/skia/include/core/SkColor.h" 8 #include "third_party/skia/include/core/SkColor.h"
10 #include "third_party/skia/include/effects/SkGradientShader.h" 9 #include "third_party/skia/include/effects/SkGradientShader.h"
11 #include "ui/compositor/layer.h" 10 #include "ui/compositor/layer.h"
12 #include "ui/compositor/layer_animator.h" 11 #include "ui/compositor/layer_animator.h"
13 #include "ui/compositor/scoped_layer_animation_settings.h" 12 #include "ui/compositor/scoped_layer_animation_settings.h"
14 #include "ui/gfx/canvas.h" 13 #include "ui/gfx/canvas.h"
15 #include "ui/views/controls/scrollbar/base_scroll_bar_thumb.h" 14 #include "ui/views/controls/scrollbar/base_scroll_bar_thumb.h"
16 15
17 namespace views { 16 namespace views {
18 17
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 CocoaScrollBarThumb* CocoaScrollBar::GetCocoaScrollBarThumb() const { 536 CocoaScrollBarThumb* CocoaScrollBar::GetCocoaScrollBarThumb() const {
538 return static_cast<CocoaScrollBarThumb*>(GetThumb()); 537 return static_cast<CocoaScrollBarThumb*>(GetThumb());
539 } 538 }
540 539
541 // static 540 // static
542 base::Timer* BaseScrollBar::GetHideTimerForTest(BaseScrollBar* scroll_bar) { 541 base::Timer* BaseScrollBar::GetHideTimerForTest(BaseScrollBar* scroll_bar) {
543 return &static_cast<CocoaScrollBar*>(scroll_bar)->hide_scrollbar_timer_; 542 return &static_cast<CocoaScrollBar*>(scroll_bar)->hide_scrollbar_timer_;
544 } 543 }
545 544
546 } // namespace views 545 } // namespace views
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/mac/LocalCurrentGraphicsContext.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698