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

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

Issue 996373002: Add Aura handles to be used in unified touch selection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed issues with loading resources Created 5 years, 9 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 unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #ifndef UI_TOUCH_SELECTION_TOUCH_SELECTION_CONTROLLER_AURA_TEST_API_H_
6 #define UI_TOUCH_SELECTION_TOUCH_SELECTION_CONTROLLER_AURA_TEST_API_H_
7
8 #include "ui/touch_selection/touch_selection_controller_aura.h"
9 #include "ui/touch_selection/ui_touch_selection_export.h"
10
11 namespace ui {
12
13 class TouchSelectionControllerAuraTestApi {
14 public:
15 explicit TouchSelectionControllerAuraTestApi(
16 TouchSelectionControllerAura* selection_controller);
17 ~TouchSelectionControllerAuraTestApi();
18
19 bool immediate_quick_menu() const {
20 return immediate_quick_menu_;
21 }
22
23 void set_immediate_quick_menu(bool immediate) {
24 immediate_quick_menu_ = immediate;
25 }
26
27 bool is_insertion_active() const {
28 return selection_controller_->controller_->is_insertion_active();
29 }
30
31 bool is_selection_active() const {
32 return selection_controller_->controller_->is_selection_active();
33 }
34
35 private:
36 TouchSelectionControllerAura* selection_controller_;
37
38 bool immediate_quick_menu_;
39
40 DISALLOW_COPY_AND_ASSIGN(TouchSelectionControllerAuraTestApi);
41 };
42
43 } // namespace ui
44
45 #endif // UI_TOUCH_SELECTION_TOUCH_SELECTION_CONTROLLER_AURA_TEST_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698