| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2012 Google Inc. All rights reserved. | 3 * Copyright (C) 2012 Google Inc. All rights 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 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 28 */ | 28 */ |
| 29 | 29 |
| 30 #ifndef DOMSelection_h | 30 #ifndef DOMSelection_h |
| 31 #define DOMSelection_h | 31 #define DOMSelection_h |
| 32 | 32 |
| 33 #include "bindings/core/v8/ScriptWrappable.h" | 33 #include "bindings/core/v8/ScriptWrappable.h" |
| 34 #include "core/dom/ContextLifecycleObserver.h" |
| 34 #include "core/editing/Position.h" | 35 #include "core/editing/Position.h" |
| 35 #include "core/editing/VisibleSelection.h" | 36 #include "core/editing/VisibleSelection.h" |
| 36 #include "core/frame/DOMWindowProperty.h" | |
| 37 #include "platform/heap/Handle.h" | 37 #include "platform/heap/Handle.h" |
| 38 #include "wtf/Forward.h" | 38 #include "wtf/Forward.h" |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 | 41 |
| 42 class ExceptionState; | 42 class ExceptionState; |
| 43 class Node; | 43 class Node; |
| 44 class Range; | 44 class Range; |
| 45 class TreeScope; | 45 class TreeScope; |
| 46 | 46 |
| 47 class CORE_EXPORT DOMSelection final : public GarbageCollected<DOMSelection>, | 47 class CORE_EXPORT DOMSelection final : public GarbageCollected<DOMSelection>, |
| 48 public ScriptWrappable, | 48 public ScriptWrappable, |
| 49 public DOMWindowProperty { | 49 public ContextClient { |
| 50 DEFINE_WRAPPERTYPEINFO(); | 50 DEFINE_WRAPPERTYPEINFO(); |
| 51 USING_GARBAGE_COLLECTED_MIXIN(DOMSelection); | 51 USING_GARBAGE_COLLECTED_MIXIN(DOMSelection); |
| 52 | 52 |
| 53 public: | 53 public: |
| 54 static DOMSelection* create(const TreeScope* treeScope) { | 54 static DOMSelection* create(const TreeScope* treeScope) { |
| 55 return new DOMSelection(treeScope); | 55 return new DOMSelection(treeScope); |
| 56 } | 56 } |
| 57 | 57 |
| 58 void clearTreeScope(); | 58 void clearTreeScope(); |
| 59 | 59 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 bool isValidForPosition(Node*) const; | 117 bool isValidForPosition(Node*) const; |
| 118 | 118 |
| 119 void addConsoleError(const String& message); | 119 void addConsoleError(const String& message); |
| 120 | 120 |
| 121 Member<const TreeScope> m_treeScope; | 121 Member<const TreeScope> m_treeScope; |
| 122 }; | 122 }; |
| 123 | 123 |
| 124 } // namespace blink | 124 } // namespace blink |
| 125 | 125 |
| 126 #endif // DOMSelection_h | 126 #endif // DOMSelection_h |
| OLD | NEW |