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
3 // found in the LICENSE file.
5 #ifndef UI_TOUCH_SELECTION_TOUCH_SELECTION_CONTROLLER_TEST_API_H_
6 #define UI_TOUCH_SELECTION_TOUCH_SELECTION_CONTROLLER_TEST_API_H_
8 #include "ui/touch_selection/touch_selection_controller.h"
12 // Test api class to access internals of |ui::TouchSelectionController| in
14 class TouchSelectionControllerTestApi
{
16 explicit TouchSelectionControllerTestApi(
17 TouchSelectionController
* controller
);
18 ~TouchSelectionControllerTestApi();
20 bool GetStartVisible() const;
21 bool GetEndVisible() const;
23 bool temporarily_hidden() const { return controller_
->temporarily_hidden_
; }
26 TouchSelectionController
* const controller_
;
28 DISALLOW_COPY_AND_ASSIGN(TouchSelectionControllerTestApi
);
33 #endif // UI_TOUCH_SELECTION_TOUCH_SELECTION_CONTROLLER_TEST_API_H_