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

Side by Side Diff: ui/touch_selection/touch_selection_controller_test_api.h

Issue 1404163004: Swap touch selection handles when they are interchanged (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: linux build error Created 5 years 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 unified diff | Download patch
OLDNEW
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 "ui/touch_selection/touch_selection_controller.h" 8 #include "ui/touch_selection/touch_selection_controller.h"
9 9
10 namespace ui { 10 namespace ui {
11 11
12 // Test api class to access internals of |ui::TouchSelectionController| in 12 // Test api class to access internals of |ui::TouchSelectionController| in
13 // tests. 13 // tests.
14 class TouchSelectionControllerTestApi { 14 class TouchSelectionControllerTestApi {
15 public: 15 public:
16 explicit TouchSelectionControllerTestApi( 16 explicit TouchSelectionControllerTestApi(
17 TouchSelectionController* controller); 17 TouchSelectionController* controller);
18 ~TouchSelectionControllerTestApi(); 18 ~TouchSelectionControllerTestApi();
19 19
20 bool GetStartVisible() const; 20 bool GetStartVisible() const;
21 bool GetEndVisible() const; 21 bool GetEndVisible() const;
22 TouchHandleOrientation GetStartHandleOrientation() const;
23 TouchHandleOrientation GetEndHandleOrientation() const;
22 24
23 bool temporarily_hidden() const { return controller_->temporarily_hidden_; } 25 bool temporarily_hidden() const { return controller_->temporarily_hidden_; }
24 26
25 private: 27 private:
26 TouchSelectionController* const controller_; 28 TouchSelectionController* const controller_;
27 29
28 DISALLOW_COPY_AND_ASSIGN(TouchSelectionControllerTestApi); 30 DISALLOW_COPY_AND_ASSIGN(TouchSelectionControllerTestApi);
29 }; 31 };
30 32
31 } // namespace ui 33 } // namespace ui
32 34
33 #endif // UI_TOUCH_SELECTION_TOUCH_SELECTION_CONTROLLER_TEST_API_H_ 35 #endif // UI_TOUCH_SELECTION_TOUCH_SELECTION_CONTROLLER_TEST_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698