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

Unified Diff: Source/core/layout/api/SelectionState.h

Issue 1261653002: Move SelectionState out of LayoutObject and into Line Layout API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 2 legit 5ever Created 5 years, 5 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 | « Source/core/layout/LayoutObject.h ('k') | Source/core/layout/line/EllipsisBox.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/api/SelectionState.h
diff --git a/Source/core/layout/api/SelectionState.h b/Source/core/layout/api/SelectionState.h
new file mode 100644
index 0000000000000000000000000000000000000000..8efd5eab11d8754092d2325aca500ad0f7607dd1
--- /dev/null
+++ b/Source/core/layout/api/SelectionState.h
@@ -0,0 +1,20 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SelectionState_h
+#define SelectionState_h
+
+namespace blink {
+
+enum SelectionState {
+ SelectionNone, // The object is not selected.
+ SelectionStart, // The object either contains the start of a selection run or is the start of a run.
+ SelectionInside, // The object is fully encompassed by a selection run.
+ SelectionEnd, // The object either contains the end of a selection run or is the end of a run.
+ SelectionBoth // The object contains an entire run or is the sole selected object in that run.
+};
+
+} // namespace blink
+
+#endif // SelectionState_h
« no previous file with comments | « Source/core/layout/LayoutObject.h ('k') | Source/core/layout/line/EllipsisBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698