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

Side by Side Diff: ui/views/touchui/touch_selection_controller_impl.h

Issue 154783002: Honor can_activate flag in ShowWindowWithState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 6 years, 7 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
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_ 5 #ifndef UI_UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_
6 #define UI_UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_ 6 #define UI_UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_
7 7
8 #include "base/timer/timer.h" 8 #include "base/timer/timer.h"
9 #include "ui/base/touch/touch_editing_controller.h" 9 #include "ui/base/touch/touch_editing_controller.h"
10 #include "ui/gfx/point.h" 10 #include "ui/gfx/point.h"
(...skipping 12 matching lines...) Expand all
23 public ui::EventHandler { 23 public ui::EventHandler {
24 public: 24 public:
25 class EditingHandleView; 25 class EditingHandleView;
26 26
27 // Use TextSelectionController::create(). 27 // Use TextSelectionController::create().
28 explicit TouchSelectionControllerImpl( 28 explicit TouchSelectionControllerImpl(
29 ui::TouchEditable* client_view); 29 ui::TouchEditable* client_view);
30 30
31 virtual ~TouchSelectionControllerImpl(); 31 virtual ~TouchSelectionControllerImpl();
32 32
33 static void SetOpenQuickMenuImmediatelyForTest(bool immediate);
sky 2014/05/15 16:44:01 I'm not a fan of the ForTest methods, especially w
mohsen 2014/05/16 15:56:09 Agreed. Done.
34
33 // TextSelectionController. 35 // TextSelectionController.
34 virtual void SelectionChanged() OVERRIDE; 36 virtual void SelectionChanged() OVERRIDE;
35 virtual bool IsHandleDragInProgress() OVERRIDE; 37 virtual bool IsHandleDragInProgress() OVERRIDE;
36 virtual void HideHandles(bool quick) OVERRIDE; 38 virtual void HideHandles(bool quick) OVERRIDE;
37 39
38 private: 40 private:
39 friend class TouchSelectionControllerImplTest; 41 friend class TouchSelectionControllerImplTest;
40 42
41 void SetDraggingHandle(EditingHandleView* handle); 43 void SetDraggingHandle(EditingHandleView* handle);
42 44
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 // Selection end points, clipped to client view's boundaries. 122 // Selection end points, clipped to client view's boundaries.
121 gfx::Rect selection_end_point_1_clipped_; 123 gfx::Rect selection_end_point_1_clipped_;
122 gfx::Rect selection_end_point_2_clipped_; 124 gfx::Rect selection_end_point_2_clipped_;
123 125
124 DISALLOW_COPY_AND_ASSIGN(TouchSelectionControllerImpl); 126 DISALLOW_COPY_AND_ASSIGN(TouchSelectionControllerImpl);
125 }; 127 };
126 128
127 } // namespace views 129 } // namespace views
128 130
129 #endif // UI_UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_ 131 #endif // UI_UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698