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

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

Issue 2023793002: Move VisibleSelection::nonBoundaryShadowTreeRootNode() to FrameSelection.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-05-30T17:24:37 Created 4 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 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2004 Apple Computer, Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // TODO(yosin) Most callers probably don't want these functions, but 118 // TODO(yosin) Most callers probably don't want these functions, but
119 // are using them for historical reasons. |toNormalizedEphemeralRange()| 119 // are using them for historical reasons. |toNormalizedEphemeralRange()|
120 // contracts the range around text, and moves the caret most backward 120 // contracts the range around text, and moves the caret most backward
121 // visually equivalent position before returning the range/positions. 121 // visually equivalent position before returning the range/positions.
122 EphemeralRangeTemplate<Strategy> toNormalizedEphemeralRange() const; 122 EphemeralRangeTemplate<Strategy> toNormalizedEphemeralRange() const;
123 123
124 Element* rootEditableElement() const; 124 Element* rootEditableElement() const;
125 bool isContentEditable() const; 125 bool isContentEditable() const;
126 bool hasEditableStyle() const; 126 bool hasEditableStyle() const;
127 bool isContentRichlyEditable() const; 127 bool isContentRichlyEditable() const;
128 // Returns a shadow tree node for legacy shadow trees, a child of the
129 // ShadowRoot node for new shadow trees, or 0 for non-shadow trees.
130 Node* nonBoundaryShadowTreeRootNode() const;
131 128
132 VisiblePositionTemplate<Strategy> visiblePositionRespectingEditingBoundary(c onst LayoutPoint& localPoint, Node* targetNode) const; 129 VisiblePositionTemplate<Strategy> visiblePositionRespectingEditingBoundary(c onst LayoutPoint& localPoint, Node* targetNode) const;
133 PositionWithAffinityTemplate<Strategy> positionRespectingEditingBoundary(con st LayoutPoint& localPoint, Node* targetNode) const; 130 PositionWithAffinityTemplate<Strategy> positionRespectingEditingBoundary(con st LayoutPoint& localPoint, Node* targetNode) const;
134 131
135 bool isValidFor(const Document&) const; 132 bool isValidFor(const Document&) const;
136 void setWithoutValidation(const PositionTemplate<Strategy>&, const PositionT emplate<Strategy>&); 133 void setWithoutValidation(const PositionTemplate<Strategy>&, const PositionT emplate<Strategy>&);
137 134
138 void setChangeObserver(VisibleSelectionChangeObserver&); 135 void setChangeObserver(VisibleSelectionChangeObserver&);
139 void clearChangeObserver(); 136 void clearChangeObserver();
140 void didChange(); // Fire the change observer, if any. 137 void didChange(); // Fire the change observer, if any.
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 221
225 #ifndef NDEBUG 222 #ifndef NDEBUG
226 // Outside the WebCore namespace for ease of invocation from gdb. 223 // Outside the WebCore namespace for ease of invocation from gdb.
227 void showTree(const blink::VisibleSelection&); 224 void showTree(const blink::VisibleSelection&);
228 void showTree(const blink::VisibleSelection*); 225 void showTree(const blink::VisibleSelection*);
229 void showTree(const blink::VisibleSelectionInFlatTree&); 226 void showTree(const blink::VisibleSelectionInFlatTree&);
230 void showTree(const blink::VisibleSelectionInFlatTree*); 227 void showTree(const blink::VisibleSelectionInFlatTree*);
231 #endif 228 #endif
232 229
233 #endif // VisibleSelection_h 230 #endif // VisibleSelection_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/editing/FrameSelection.cpp ('k') | third_party/WebKit/Source/core/editing/VisibleSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698