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

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

Issue 1123563003: Improving direction-based selection strategy. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 bool isContentEditable() const; 111 bool isContentEditable() const;
112 bool hasEditableStyle() const; 112 bool hasEditableStyle() const;
113 bool isContentRichlyEditable() const; 113 bool isContentRichlyEditable() const;
114 // Returns a shadow tree node for legacy shadow trees, a child of the 114 // Returns a shadow tree node for legacy shadow trees, a child of the
115 // ShadowRoot node for new shadow trees, or 0 for non-shadow trees. 115 // ShadowRoot node for new shadow trees, or 0 for non-shadow trees.
116 Node* nonBoundaryShadowTreeRootNode() const; 116 Node* nonBoundaryShadowTreeRootNode() const;
117 117
118 VisiblePosition visiblePositionRespectingEditingBoundary(const LayoutPoint& localPoint, Node* targetNode) const; 118 VisiblePosition visiblePositionRespectingEditingBoundary(const LayoutPoint& localPoint, Node* targetNode) const;
119 119
120 void setWithoutValidation(const Position&, const Position&); 120 void setWithoutValidation(const Position&, const Position&);
121 void setWithoutValidation(const Position&, const Position&, const Position&, const Position&);
121 122
122 // Listener of VisibleSelection modification. didChangeVisibleSelection() wi ll be invoked when base, extent, start 123 // Listener of VisibleSelection modification. didChangeVisibleSelection() wi ll be invoked when base, extent, start
123 // or end is moved to a different position. 124 // or end is moved to a different position.
124 // 125 //
125 // Objects implementing |ChangeObserver| interface must outlive the VisibleS election object. 126 // Objects implementing |ChangeObserver| interface must outlive the VisibleS election object.
126 class CORE_EXPORT ChangeObserver : public WillBeGarbageCollectedMixin { 127 class CORE_EXPORT ChangeObserver : public WillBeGarbageCollectedMixin {
127 WTF_MAKE_NONCOPYABLE(ChangeObserver); 128 WTF_MAKE_NONCOPYABLE(ChangeObserver);
128 public: 129 public:
129 ChangeObserver(); 130 ChangeObserver();
130 virtual ~ChangeObserver(); 131 virtual ~ChangeObserver();
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 200
200 } // namespace blink 201 } // namespace blink
201 202
202 #ifndef NDEBUG 203 #ifndef NDEBUG
203 // Outside the WebCore namespace for ease of invocation from gdb. 204 // Outside the WebCore namespace for ease of invocation from gdb.
204 void showTree(const blink::VisibleSelection&); 205 void showTree(const blink::VisibleSelection&);
205 void showTree(const blink::VisibleSelection*); 206 void showTree(const blink::VisibleSelection*);
206 #endif 207 #endif
207 208
208 #endif // VisibleSelection_h 209 #endif // VisibleSelection_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698