| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 UI_VIEWS_CONTROLS_SCROLLBAR_BASE_SCROLL_BAR_BUTTON_H_ | 5 #ifndef UI_VIEWS_CONTROLS_SCROLLBAR_BASE_SCROLL_BAR_BUTTON_H_ |
| 6 #define UI_VIEWS_CONTROLS_SCROLLBAR_BASE_SCROLL_BAR_BUTTON_H_ | 6 #define UI_VIEWS_CONTROLS_SCROLLBAR_BASE_SCROLL_BAR_BUTTON_H_ |
| 7 | 7 |
| 8 #include "ui/views/controls/button/custom_button.h" | 8 #include "ui/views/controls/button/custom_button.h" |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
| 12 #include "ui/views/repeat_controller.h" | 12 #include "ui/views/repeat_controller.h" |
| 13 | 13 |
| 14 #if defined(OS_LINUX) | |
| 15 #include "ui/gfx/screen.h" | |
| 16 #endif | |
| 17 | |
| 18 namespace views { | 14 namespace views { |
| 19 | 15 |
| 20 /////////////////////////////////////////////////////////////////////////////// | 16 /////////////////////////////////////////////////////////////////////////////// |
| 21 // | 17 // |
| 22 // ScrollBarButton | 18 // ScrollBarButton |
| 23 // | 19 // |
| 24 // A button that activates on mouse pressed rather than released, and that | 20 // A button that activates on mouse pressed rather than released, and that |
| 25 // continues to fire the clicked action as the mouse button remains pressed | 21 // continues to fire the clicked action as the mouse button remains pressed |
| 26 // down on the button. | 22 // down on the button. |
| 27 // | 23 // |
| (...skipping 14 matching lines...) Expand all Loading... |
| 42 // The repeat controller that we use to repeatedly click the button when the | 38 // The repeat controller that we use to repeatedly click the button when the |
| 43 // mouse button is down. | 39 // mouse button is down. |
| 44 RepeatController repeater_; | 40 RepeatController repeater_; |
| 45 | 41 |
| 46 DISALLOW_COPY_AND_ASSIGN(BaseScrollBarButton); | 42 DISALLOW_COPY_AND_ASSIGN(BaseScrollBarButton); |
| 47 }; | 43 }; |
| 48 | 44 |
| 49 } // namespace views | 45 } // namespace views |
| 50 | 46 |
| 51 #endif // UI_VIEWS_CONTROLS_SCROLLBAR_BASE_SCROLL_BAR_BUTTON_H_ | 47 #endif // UI_VIEWS_CONTROLS_SCROLLBAR_BASE_SCROLL_BAR_BUTTON_H_ |
| OLD | NEW |