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

Side by Side Diff: third_party/WebKit/Source/core/editing/SelectionModifier.h

Issue 2930863002: Move LeftPositionOf() and RightPositionOf() to SelectionModifierCharacter.cpp (Closed)
Patch Set: 2017-06-08T18:53:47 Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
3 * reserved. 3 * reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 91
92 Member<LocalFrame> frame_; 92 Member<LocalFrame> frame_;
93 VisibleSelection selection_; 93 VisibleSelection selection_;
94 LayoutUnit x_pos_for_vertical_arrow_navigation_; 94 LayoutUnit x_pos_for_vertical_arrow_navigation_;
95 95
96 DISALLOW_COPY_AND_ASSIGN(SelectionModifier); 96 DISALLOW_COPY_AND_ASSIGN(SelectionModifier);
97 }; 97 };
98 98
99 LayoutUnit NoXPosForVerticalArrowNavigation(); 99 LayoutUnit NoXPosForVerticalArrowNavigation();
100 100
101 // Following functions are exported for using in SelectionModifier and
102 // testing only.
103
104 // TODO(yosin) Since return value of |leftPositionOf()| with |VisiblePosition|
105 // isn't defined well on flat tree, we should not use it for a position in
106 // flat tree.
107 CORE_EXPORT VisiblePosition LeftPositionOf(const VisiblePosition&);
108 CORE_EXPORT VisiblePositionInFlatTree
109 LeftPositionOf(const VisiblePositionInFlatTree&);
110 // TODO(yosin) Since return value of |rightPositionOf()| with |VisiblePosition|
111 // isn't defined well on flat tree, we should not use it for a position in
112 // flat tree.
113 CORE_EXPORT VisiblePosition RightPositionOf(const VisiblePosition&);
114 CORE_EXPORT VisiblePositionInFlatTree
115 RightPositionOf(const VisiblePositionInFlatTree&);
116
101 } // namespace blink 117 } // namespace blink
102 118
103 #endif // SelectionModifier_h 119 #endif // SelectionModifier_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/editing/BUILD.gn ('k') | third_party/WebKit/Source/core/editing/SelectionModifierCharacter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698