Chromium Code Reviews| 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 #ifndef CC_LAYERS_SCROLLBAR_LAYER_IMPL_BASE_H_ | 5 #ifndef CC_LAYERS_SCROLLBAR_LAYER_IMPL_BASE_H_ |
| 6 #define CC_LAYERS_SCROLLBAR_LAYER_IMPL_BASE_H_ | 6 #define CC_LAYERS_SCROLLBAR_LAYER_IMPL_BASE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "cc/cc_export.h" | 9 #include "cc/cc_export.h" |
| 10 #include "cc/input/scrollbar.h" | 10 #include "cc/input/scrollbar.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 89 ScrollbarOrientation orientation_; | 89 ScrollbarOrientation orientation_; |
| 90 bool is_left_side_vertical_scrollbar_; | 90 bool is_left_side_vertical_scrollbar_; |
| 91 | 91 |
| 92 // Difference between the clip layer's height and the visible viewport | 92 // Difference between the clip layer's height and the visible viewport |
| 93 // height (which may differ in the presence of top-controls hiding). | 93 // height (which may differ in the presence of top-controls hiding). |
| 94 float vertical_adjust_; | 94 float vertical_adjust_; |
| 95 | 95 |
| 96 DISALLOW_COPY_AND_ASSIGN(ScrollbarLayerImplBase); | 96 DISALLOW_COPY_AND_ASSIGN(ScrollbarLayerImplBase); |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 typedef std::set<ScrollbarLayerImplBase*> ScrollbarSet; | 99 typedef base::flat_set<ScrollbarLayerImplBase*> ScrollbarSet; |
|
wkorman
2017/05/20 01:46:29
Switch to 'using' rather than typedef?
pdr.
2017/05/22 16:20:40
Done
| |
| 100 | 100 |
| 101 } // namespace cc | 101 } // namespace cc |
| 102 | 102 |
| 103 #endif // CC_LAYERS_SCROLLBAR_LAYER_IMPL_BASE_H_ | 103 #endif // CC_LAYERS_SCROLLBAR_LAYER_IMPL_BASE_H_ |
| OLD | NEW |