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

Unified Diff: ui/gfx/selection_model.h

Issue 24012002: Move Range code to gfx. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: d Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/render_text_win.cc ('k') | ui/gfx/selection_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/selection_model.h
diff --git a/ui/gfx/selection_model.h b/ui/gfx/selection_model.h
index 3789584e7c0f9e3d116408076b82d2e56f7b208d..3832b9dacc20dff84e36b72fc1cff4aa94fff552 100644
--- a/ui/gfx/selection_model.h
+++ b/ui/gfx/selection_model.h
@@ -7,8 +7,8 @@
#include <string>
-#include "ui/base/range/range.h"
#include "ui/gfx/gfx_export.h"
+#include "ui/gfx/range/range.h"
namespace gfx {
@@ -67,9 +67,9 @@ class UI_EXPORT SelectionModel {
SelectionModel(size_t position, LogicalCursorDirection affinity);
// Create a SelectionModel representing a selection (which may be empty).
// The caret position is the end of the range.
- SelectionModel(ui::Range selection, LogicalCursorDirection affinity);
+ SelectionModel(gfx::Range selection, LogicalCursorDirection affinity);
- const ui::Range& selection() const { return selection_; }
+ const gfx::Range& selection() const { return selection_; }
size_t caret_pos() const { return selection_.end(); }
LogicalCursorDirection caret_affinity() const { return caret_affinity_; }
@@ -87,7 +87,7 @@ class UI_EXPORT SelectionModel {
void set_selection_start(size_t pos) { selection_.set_start(pos); }
// Logical selection. The logical caret position is the end of the selection.
- ui::Range selection_;
+ gfx::Range selection_;
// The logical direction from the caret position (selection_.end()) to the
// character it is attached to for display purposes. This matters only when
« no previous file with comments | « ui/gfx/render_text_win.cc ('k') | ui/gfx/selection_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698