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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 | 42 |
43 class ExceptionState; | 43 class ExceptionState; |
44 class Frame; | 44 class Frame; |
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 RefCountedWillBeGarbageCollectedFinalized<DOMS
election>, public ScriptWrappable, public DOMWindowProperty { | 51 class DOMSelection FINAL : public RefCountedWillBeGarbageCollectedFinalized<DOMS
election>, public ScriptWrappable, public DOMWindowProperty { |
52 DECLARE_GC_INFO; | |
53 public: | 52 public: |
54 static PassRefPtrWillBeRawPtr<DOMSelection> create(const TreeScope* treeScop
e) | 53 static PassRefPtrWillBeRawPtr<DOMSelection> create(const TreeScope* treeScop
e) |
55 { | 54 { |
56 return adoptRefWillBeNoop(new DOMSelection(treeScope)); | 55 return adoptRefWillBeNoop(new DOMSelection(treeScope)); |
57 } | 56 } |
58 | 57 |
59 void clearTreeScope(); | 58 void clearTreeScope(); |
60 | 59 |
61 // Safari Selection Object API | 60 // Safari Selection Object API |
62 // These methods return the valid equivalents of internal editing positions. | 61 // These methods return the valid equivalents of internal editing positions. |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 107 |
109 Node* shadowAdjustedNode(const Position&) const; | 108 Node* shadowAdjustedNode(const Position&) const; |
110 int shadowAdjustedOffset(const Position&) const; | 109 int shadowAdjustedOffset(const Position&) const; |
111 | 110 |
112 bool isValidForPosition(Node*) const; | 111 bool isValidForPosition(Node*) const; |
113 }; | 112 }; |
114 | 113 |
115 } // namespace WebCore | 114 } // namespace WebCore |
116 | 115 |
117 #endif // DOMSelection_h | 116 #endif // DOMSelection_h |
OLD | NEW |