| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 Node* nonBoundaryShadowTreeRootNode() const; | 110 Node* nonBoundaryShadowTreeRootNode() const; |
| 111 | 111 |
| 112 VisiblePosition visiblePositionRespectingEditingBoundary(const LayoutPoint&
localPoint, Node* targetNode) const; | 112 VisiblePosition visiblePositionRespectingEditingBoundary(const LayoutPoint&
localPoint, Node* targetNode) const; |
| 113 | 113 |
| 114 void setWithoutValidation(const Position&, const Position&); | 114 void setWithoutValidation(const Position&, const Position&); |
| 115 | 115 |
| 116 // Listener of VisibleSelection modification. didChangeVisibleSelection() wi
ll be invoked when base, extent, start | 116 // Listener of VisibleSelection modification. didChangeVisibleSelection() wi
ll be invoked when base, extent, start |
| 117 // or end is moved to a different position. | 117 // or end is moved to a different position. |
| 118 // | 118 // |
| 119 // Objects implementing |ChangeObserver| interface must outlive the VisibleS
election object. | 119 // Objects implementing |ChangeObserver| interface must outlive the VisibleS
election object. |
| 120 class ChangeObserver : public DummyBase<void> { | 120 class ChangeObserver { |
| 121 WTF_MAKE_NONCOPYABLE(ChangeObserver); | 121 WTF_MAKE_NONCOPYABLE(ChangeObserver); |
| 122 public: | 122 public: |
| 123 ChangeObserver(); | 123 ChangeObserver(); |
| 124 virtual ~ChangeObserver(); | 124 virtual ~ChangeObserver(); |
| 125 virtual void didChangeVisibleSelection() = 0; | 125 virtual void didChangeVisibleSelection() = 0; |
| 126 virtual void trace(Visitor*) { } | 126 virtual void trace(Visitor*) { } |
| 127 }; | 127 }; |
| 128 | 128 |
| 129 void setChangeObserver(ChangeObserver&); | 129 void setChangeObserver(ChangeObserver&); |
| 130 void clearChangeObserver(); | 130 void clearChangeObserver(); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 | 185 |
| 186 } // namespace blink | 186 } // namespace blink |
| 187 | 187 |
| 188 #ifndef NDEBUG | 188 #ifndef NDEBUG |
| 189 // Outside the WebCore namespace for ease of invocation from gdb. | 189 // Outside the WebCore namespace for ease of invocation from gdb. |
| 190 void showTree(const blink::VisibleSelection&); | 190 void showTree(const blink::VisibleSelection&); |
| 191 void showTree(const blink::VisibleSelection*); | 191 void showTree(const blink::VisibleSelection*); |
| 192 #endif | 192 #endif |
| 193 | 193 |
| 194 #endif // VisibleSelection_h | 194 #endif // VisibleSelection_h |
| OLD | NEW |