| 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 | 30 |
| 31 #ifndef SKY_ENGINE_CORE_EDITING_DOMSELECTION_H_ | 31 #ifndef SKY_ENGINE_CORE_EDITING_DOMSELECTION_H_ |
| 32 #define SKY_ENGINE_CORE_EDITING_DOMSELECTION_H_ | 32 #define SKY_ENGINE_CORE_EDITING_DOMSELECTION_H_ |
| 33 | 33 |
| 34 #include "sky/engine/bindings/core/v8/ScriptWrappable.h" | 34 #include "sky/engine/tonic/dart_wrappable.h" |
| 35 #include "sky/engine/core/frame/DOMWindowProperty.h" | 35 #include "sky/engine/core/frame/DOMWindowProperty.h" |
| 36 #include "sky/engine/platform/heap/Handle.h" | 36 #include "sky/engine/platform/heap/Handle.h" |
| 37 #include "sky/engine/wtf/Forward.h" | 37 #include "sky/engine/wtf/Forward.h" |
| 38 #include "sky/engine/wtf/PassRefPtr.h" | 38 #include "sky/engine/wtf/PassRefPtr.h" |
| 39 #include "sky/engine/wtf/RefCounted.h" | 39 #include "sky/engine/wtf/RefCounted.h" |
| 40 | 40 |
| 41 namespace blink { | 41 namespace blink { |
| 42 | 42 |
| 43 class ExceptionState; | 43 class ExceptionState; |
| 44 class LocalFrame; | 44 class LocalFrame; |
| 45 class Node; | 45 class Node; |
| 46 class Position; | 46 class Position; |
| 47 class Range; | 47 class Range; |
| 48 class TreeScope; | 48 class TreeScope; |
| 49 class VisibleSelection; | 49 class VisibleSelection; |
| 50 | 50 |
| 51 class DOMSelection final : public RefCounted<DOMSelection>, public ScriptWrappab
le, public DOMWindowProperty { | 51 class DOMSelection final : public RefCounted<DOMSelection>, public DartWrappable
, public DOMWindowProperty { |
| 52 DEFINE_WRAPPERTYPEINFO(); | 52 DEFINE_WRAPPERTYPEINFO(); |
| 53 public: | 53 public: |
| 54 static PassRefPtr<DOMSelection> create(const TreeScope* treeScope) | 54 static PassRefPtr<DOMSelection> create(const TreeScope* treeScope) |
| 55 { | 55 { |
| 56 return adoptRef(new DOMSelection(treeScope)); | 56 return adoptRef(new DOMSelection(treeScope)); |
| 57 } | 57 } |
| 58 | 58 |
| 59 void clearTreeScope(); | 59 void clearTreeScope(); |
| 60 | 60 |
| 61 // Safari Selection Object API | 61 // Safari Selection Object API |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 bool isValidForPosition(Node*) const; | 108 bool isValidForPosition(Node*) const; |
| 109 | 109 |
| 110 void addConsoleError(const String& message); | 110 void addConsoleError(const String& message); |
| 111 | 111 |
| 112 RawPtr<const TreeScope> m_treeScope; | 112 RawPtr<const TreeScope> m_treeScope; |
| 113 }; | 113 }; |
| 114 | 114 |
| 115 } // namespace blink | 115 } // namespace blink |
| 116 | 116 |
| 117 #endif // SKY_ENGINE_CORE_EDITING_DOMSELECTION_H_ | 117 #endif // SKY_ENGINE_CORE_EDITING_DOMSELECTION_H_ |
| OLD | NEW |