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

Unified Diff: Source/core/editing/VisibleSelection.h

Issue 1292303005: Make core/editing/ files to match Blink coding style (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-18T10:48:50 Created 5 years, 4 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/editing/TextAffinity.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/VisibleSelection.h
diff --git a/Source/core/editing/VisibleSelection.h b/Source/core/editing/VisibleSelection.h
index 3a8dfef68713e2eb388fdd272f3d567f9bde8498..ba23acd0627a11b91f9a47acc414d49990b07692 100644
--- a/Source/core/editing/VisibleSelection.h
+++ b/Source/core/editing/VisibleSelection.h
@@ -38,7 +38,8 @@ namespace blink {
class LayoutPoint;
-const EAffinity SEL_DEFAULT_AFFINITY = DOWNSTREAM;
+// TODO(yosin) We should use capitalized name instead of |SEL_DEFAULT_AFFINITY|.
+const EAffinity SEL_DEFAULT_AFFINITY = DOWNSTREAM; // NOLINT
enum SelectionDirection { DirectionForward, DirectionBackward, DirectionRight, DirectionLeft };
class CORE_EXPORT VisibleSelection {
@@ -222,13 +223,13 @@ private:
// We need to store these as Positions because VisibleSelection is
// used to store values in editing commands for use when
- // undoing the command. We need to be able to create a selection that, while currently
- // invalid, will be valid once the changes are undone.
+ // undoing the command. We need to be able to create a selection that, while
+ // currently invalid, will be valid once the changes are undone.
- Position m_base; // Where the first click happened
+ Position m_base; // Where the first click happened
Position m_extent; // Where the end click happened
- Position m_start; // Leftmost position when expanded to respect granularity
- Position m_end; // Rightmost position when expanded to respect granularity
+ Position m_start; // Leftmost position when expanded to respect granularity
+ Position m_end; // Rightmost position when expanded to respect granularity
// TODO(hajimehoshi, yosin): The members m_*InComposedTree are now always
// computed from the respective positions at validate(). To have selections
« no previous file with comments | « Source/core/editing/TextAffinity.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698