| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_TOUCH_SELECTION_TOUCH_SELECTION_CONTROLLER_TEST_API_H_ | 5 #ifndef UI_TOUCH_SELECTION_TOUCH_SELECTION_CONTROLLER_TEST_API_H_ |
| 6 #define UI_TOUCH_SELECTION_TOUCH_SELECTION_CONTROLLER_TEST_API_H_ | 6 #define UI_TOUCH_SELECTION_TOUCH_SELECTION_CONTROLLER_TEST_API_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" |
| 8 #include "ui/touch_selection/touch_selection_controller.h" | 9 #include "ui/touch_selection/touch_selection_controller.h" |
| 9 | 10 |
| 10 namespace ui { | 11 namespace ui { |
| 11 | 12 |
| 12 // Test api class to access internals of |ui::TouchSelectionController| in | 13 // Test api class to access internals of |ui::TouchSelectionController| in |
| 13 // tests. | 14 // tests. |
| 14 class TouchSelectionControllerTestApi { | 15 class TouchSelectionControllerTestApi { |
| 15 public: | 16 public: |
| 16 explicit TouchSelectionControllerTestApi( | 17 explicit TouchSelectionControllerTestApi( |
| 17 TouchSelectionController* controller); | 18 TouchSelectionController* controller); |
| 18 ~TouchSelectionControllerTestApi(); | 19 ~TouchSelectionControllerTestApi(); |
| 19 | 20 |
| 20 bool GetStartVisible() const; | 21 bool GetStartVisible() const; |
| 21 bool GetEndVisible() const; | 22 bool GetEndVisible() const; |
| 22 TouchHandleOrientation GetStartHandleOrientation() const; | 23 TouchHandleOrientation GetStartHandleOrientation() const; |
| 23 TouchHandleOrientation GetEndHandleOrientation() const; | 24 TouchHandleOrientation GetEndHandleOrientation() const; |
| 24 | 25 |
| 25 bool temporarily_hidden() const { return controller_->temporarily_hidden_; } | 26 bool temporarily_hidden() const { return controller_->temporarily_hidden_; } |
| 26 | 27 |
| 27 private: | 28 private: |
| 28 TouchSelectionController* const controller_; | 29 TouchSelectionController* const controller_; |
| 29 | 30 |
| 30 DISALLOW_COPY_AND_ASSIGN(TouchSelectionControllerTestApi); | 31 DISALLOW_COPY_AND_ASSIGN(TouchSelectionControllerTestApi); |
| 31 }; | 32 }; |
| 32 | 33 |
| 33 } // namespace ui | 34 } // namespace ui |
| 34 | 35 |
| 35 #endif // UI_TOUCH_SELECTION_TOUCH_SELECTION_CONTROLLER_TEST_API_H_ | 36 #endif // UI_TOUCH_SELECTION_TOUCH_SELECTION_CONTROLLER_TEST_API_H_ |
| OLD | NEW |