| Index: ui/touch_selection/touch_selection_controller_test_api.h
|
| diff --git a/ui/touch_selection/touch_selection_controller_test_api.h b/ui/touch_selection/touch_selection_controller_test_api.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b55b26282232004921acc40b7f8d005ce0f35f10
|
| --- /dev/null
|
| +++ b/ui/touch_selection/touch_selection_controller_test_api.h
|
| @@ -0,0 +1,33 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef UI_TOUCH_SELECTION_TOUCH_SELECTION_CONTROLLER_TEST_API_H_
|
| +#define UI_TOUCH_SELECTION_TOUCH_SELECTION_CONTROLLER_TEST_API_H_
|
| +
|
| +#include "ui/touch_selection/touch_selection_controller.h"
|
| +
|
| +namespace ui {
|
| +
|
| +// Test api class to access internals of |ui::TouchSelectionController| in
|
| +// tests.
|
| +class TouchSelectionControllerTestApi {
|
| + public:
|
| + explicit TouchSelectionControllerTestApi(
|
| + TouchSelectionController* controller);
|
| + ~TouchSelectionControllerTestApi();
|
| +
|
| + bool GetStartVisible() const;
|
| + bool GetEndVisible() const;
|
| +
|
| + bool temporarily_hidden() const { return controller_->temporarily_hidden_; }
|
| +
|
| + private:
|
| + TouchSelectionController* const controller_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(TouchSelectionControllerTestApi);
|
| +};
|
| +
|
| +} // namespace ui
|
| +
|
| +#endif // UI_TOUCH_SELECTION_TOUCH_SELECTION_CONTROLLER_TEST_API_H_
|
|
|