OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef BASE_MAC_SCOPED_SMOOTH_SCROLLING_DISABLER_MAC |
| 6 #define BASE_MAC_SCOPED_SMOOTH_SCROLLING_DISABLER_MAC |
| 7 #pragma once |
| 8 |
| 9 namespace base { |
| 10 |
| 11 // A RAII class that disables smooth scrolling. This only has an effect if |
| 12 // it's done in the same process as the renderer, i.e. in-process tests. |
| 13 class ScopedSmoothScrollingDisabler { |
| 14 public: |
| 15 ScopedSmoothScrollingDisabler(bool actually_disable = true); |
| 16 ~ScopedSmoothScrollingDisabler(); |
| 17 }; |
| 18 |
| 19 } // namespace base |
| 20 |
| 21 #endif // BASE_MAC_SCOPED_SMOOTH_SCROLLING_DISABLER_MAC |
OLD | NEW |