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

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

Issue 8742030: views: Move view.h to ui/views/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase and fix conflicts Created 9 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 | Annotate | Revision Log
« no previous file with comments | « ui/views/touchui/gesture_manager.cc ('k') | ui/views/touchui/touch_selection_controller_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_H_ 5 #ifndef UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_H_
6 #define UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_H_ 6 #define UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ui/base/models/simple_menu_model.h" 9 #include "ui/base/models/simple_menu_model.h"
10 #include "ui/gfx/point.h" 10 #include "ui/gfx/point.h"
11 #include "views/view.h" 11 #include "ui/views/view.h"
12 12
13 namespace views { 13 namespace views {
14 14
15 // An interface implemented by a View that has text that can be selected. 15 // An interface implemented by a View that has text that can be selected.
16 class VIEWS_EXPORT TouchSelectionClientView 16 class VIEWS_EXPORT TouchSelectionClientView
17 : public View, 17 : public View,
18 public ui::SimpleMenuModel::Delegate { 18 public ui::SimpleMenuModel::Delegate {
19 public: 19 public:
20 // Select everything between start and end (points are in view's local 20 // Select everything between start and end (points are in view's local
21 // coordinate system). |start| is the logical start and |end| is the logical 21 // coordinate system). |start| is the logical start and |end| is the logical
(...skipping 25 matching lines...) Expand all
47 // p1 could be to the right of p2 in the figure above. 47 // p1 could be to the right of p2 in the figure above.
48 virtual void SelectionChanged(const gfx::Point& p1, const gfx::Point& p2) = 0; 48 virtual void SelectionChanged(const gfx::Point& p1, const gfx::Point& p2) = 0;
49 49
50 // Notification that the TouchSelectionClientView has lost focus. 50 // Notification that the TouchSelectionClientView has lost focus.
51 virtual void ClientViewLostFocus() = 0; 51 virtual void ClientViewLostFocus() = 0;
52 }; 52 };
53 53
54 } // namespace views 54 } // namespace views
55 55
56 #endif // UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_H_ 56 #endif // UI_VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ui/views/touchui/gesture_manager.cc ('k') | ui/views/touchui/touch_selection_controller_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698