Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Unified Diff: ui/touch_selection/touch_selection_controller_test_api.h

Issue 698253004: Reland: Implement Aura side of unified touch text selection for contents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed test failures Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698