OLD | NEW |
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" |
8 #include "third_party/skia/include/core/SkColor.h" | 9 #include "third_party/skia/include/core/SkColor.h" |
9 #include "third_party/skia/include/effects/SkGradientShader.h" | 10 #include "third_party/skia/include/effects/SkGradientShader.h" |
10 #include "ui/compositor/layer.h" | 11 #include "ui/compositor/layer.h" |
11 #include "ui/compositor/layer_animator.h" | 12 #include "ui/compositor/layer_animator.h" |
12 #include "ui/compositor/scoped_layer_animation_settings.h" | 13 #include "ui/compositor/scoped_layer_animation_settings.h" |
13 #include "ui/gfx/canvas.h" | 14 #include "ui/gfx/canvas.h" |
14 #include "ui/views/controls/scrollbar/base_scroll_bar_thumb.h" | 15 #include "ui/views/controls/scrollbar/base_scroll_bar_thumb.h" |
15 | 16 |
16 namespace views { | 17 namespace views { |
17 | 18 |
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
536 CocoaScrollBarThumb* CocoaScrollBar::GetCocoaScrollBarThumb() const { | 537 CocoaScrollBarThumb* CocoaScrollBar::GetCocoaScrollBarThumb() const { |
537 return static_cast<CocoaScrollBarThumb*>(GetThumb()); | 538 return static_cast<CocoaScrollBarThumb*>(GetThumb()); |
538 } | 539 } |
539 | 540 |
540 // static | 541 // static |
541 base::Timer* BaseScrollBar::GetHideTimerForTest(BaseScrollBar* scroll_bar) { | 542 base::Timer* BaseScrollBar::GetHideTimerForTest(BaseScrollBar* scroll_bar) { |
542 return &static_cast<CocoaScrollBar*>(scroll_bar)->hide_scrollbar_timer_; | 543 return &static_cast<CocoaScrollBar*>(scroll_bar)->hide_scrollbar_timer_; |
543 } | 544 } |
544 | 545 |
545 } // namespace views | 546 } // namespace views |
OLD | NEW |