| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |