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

Unified Diff: ui/base/touch/touch_editing_controller.h

Issue 759433002: Reland: Move TouchSelectionController from content to ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Excluded ui/touch_selection from Windows GN build Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/touch/selection_bound_unittest.cc ('k') | ui/base/touch/touch_editing_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/touch/touch_editing_controller.h
diff --git a/ui/base/touch/touch_editing_controller.h b/ui/base/touch/touch_editing_controller.h
index c8c531d74e1900576add497ca0b34f32974cc9fc..e4f5205b4f6c9c8c9a94c2653cd1efcc538296d9 100644
--- a/ui/base/touch/touch_editing_controller.h
+++ b/ui/base/touch/touch_editing_controller.h
@@ -6,40 +6,14 @@
#define UI_BASE_TOUCH_TOUCH_EDITING_CONTROLLER_H_
#include "ui/base/models/simple_menu_model.h"
-#include "ui/gfx/point.h"
-#include "ui/gfx/rect.h"
-namespace ui {
-
-// Bound of a selected region.
-struct UI_BASE_EXPORT SelectionBound {
- public:
- enum Type {
- LEFT,
- RIGHT,
- CENTER,
- EMPTY,
- LAST = EMPTY
- };
-
- SelectionBound();
- ~SelectionBound();
-
- int GetHeight() const;
+namespace gfx {
+class Point;
+class Rect;
+}
- Type type;
-
- gfx::Point edge_top;
- gfx::Point edge_bottom;
-};
-
-UI_BASE_EXPORT bool operator==(const SelectionBound& lhs,
- const SelectionBound& rhs);
-UI_BASE_EXPORT bool operator!=(const SelectionBound& lhs,
- const SelectionBound& rhs);
-
-UI_BASE_EXPORT gfx::Rect RectBetweenSelectionBounds(const SelectionBound& b1,
- const SelectionBound& b2);
+namespace ui {
+class SelectionBound;
// An interface implemented by widget that has text that can be selected/edited
// using touch.
« no previous file with comments | « ui/base/touch/selection_bound_unittest.cc ('k') | ui/base/touch/touch_editing_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698