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

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: Fix for ios build and some typos Created 6 years, 1 month 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
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..e1a924e73b37931b765961fe3c71d5ab338f765b 100644
--- a/ui/base/touch/touch_editing_controller.h
+++ b/ui/base/touch/touch_editing_controller.h
@@ -6,41 +6,12 @@
#define UI_BASE_TOUCH_TOUCH_EDITING_CONTROLLER_H_
#include "ui/base/models/simple_menu_model.h"
+#include "ui/base/touch/selection_bound.h"
mfomitchev 2014/12/01 21:36:24 Declare class here and move include to cc?
mohsen 2014/12/02 05:17:02 Done.
#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;
-
- 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);
-
// An interface implemented by widget that has text that can be selected/edited
// using touch.
class UI_BASE_EXPORT TouchEditable : public ui::SimpleMenuModel::Delegate {

Powered by Google App Engine
This is Rietveld 408576698