OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/pinch_zoom_scrollbar.h" | 5 #include "cc/pinch_zoom_scrollbar.h" |
6 | 6 |
7 #include "cc/layer.h" | 7 #include "cc/layers/layer.h" |
8 #include "cc/pinch_zoom_scrollbar_geometry.h" | 8 #include "cc/pinch_zoom_scrollbar_geometry.h" |
9 #include "cc/trees/layer_tree_host.h" | 9 #include "cc/trees/layer_tree_host.h" |
10 | 10 |
11 namespace cc { | 11 namespace cc { |
12 | 12 |
13 const float PinchZoomScrollbar::kDefaultOpacity = 0.5f; | 13 const float PinchZoomScrollbar::kDefaultOpacity = 0.5f; |
14 const float PinchZoomScrollbar::kFadeDurationInSeconds = 0.5f; | 14 const float PinchZoomScrollbar::kFadeDurationInSeconds = 0.5f; |
15 | 15 |
16 PinchZoomScrollbar::PinchZoomScrollbar( | 16 PinchZoomScrollbar::PinchZoomScrollbar( |
17 WebKit::WebScrollbar::Orientation orientation, LayerTreeHost* owner) | 17 WebKit::WebScrollbar::Orientation orientation, LayerTreeHost* owner) |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 } | 108 } |
109 bool PinchZoomScrollbar::isCustomScrollbar() const { | 109 bool PinchZoomScrollbar::isCustomScrollbar() const { |
110 return false; | 110 return false; |
111 } | 111 } |
112 | 112 |
113 WebKit::WebScrollbar::Orientation PinchZoomScrollbar::orientation() const { | 113 WebKit::WebScrollbar::Orientation PinchZoomScrollbar::orientation() const { |
114 return orientation_; | 114 return orientation_; |
115 } | 115 } |
116 | 116 |
117 } // namespace cc | 117 } // namespace cc |
OLD | NEW |