| 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 29 matching lines...) Expand all Loading... |
| 40 namespace WebCore { | 40 namespace WebCore { |
| 41 | 41 |
| 42 class ExceptionState; | 42 class ExceptionState; |
| 43 class Frame; | 43 class Frame; |
| 44 class Node; | 44 class Node; |
| 45 class Position; | 45 class Position; |
| 46 class Range; | 46 class Range; |
| 47 class TreeScope; | 47 class TreeScope; |
| 48 class VisibleSelection; | 48 class VisibleSelection; |
| 49 | 49 |
| 50 class DOMSelection : public RefCounted<DOMSelection>, public ScriptWrappable, pu
blic DOMWindowProperty { | 50 class DOMSelection FINAL : public RefCounted<DOMSelection>, public ScriptWrappab
le, public DOMWindowProperty { |
| 51 public: | 51 public: |
| 52 static PassRefPtr<DOMSelection> create(const TreeScope* treeScope) { return
adoptRef(new DOMSelection(treeScope)); } | 52 static PassRefPtr<DOMSelection> create(const TreeScope* treeScope) { return
adoptRef(new DOMSelection(treeScope)); } |
| 53 | 53 |
| 54 void clearTreeScope(); | 54 void clearTreeScope(); |
| 55 | 55 |
| 56 // Safari Selection Object API | 56 // Safari Selection Object API |
| 57 // These methods return the valid equivalents of internal editing positions. | 57 // These methods return the valid equivalents of internal editing positions. |
| 58 Node* baseNode() const; | 58 Node* baseNode() const; |
| 59 Node* extentNode() const; | 59 Node* extentNode() const; |
| 60 int baseOffset() const; | 60 int baseOffset() const; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 | 101 |
| 102 Node* shadowAdjustedNode(const Position&) const; | 102 Node* shadowAdjustedNode(const Position&) const; |
| 103 int shadowAdjustedOffset(const Position&) const; | 103 int shadowAdjustedOffset(const Position&) const; |
| 104 | 104 |
| 105 bool isValidForPosition(Node*) const; | 105 bool isValidForPosition(Node*) const; |
| 106 }; | 106 }; |
| 107 | 107 |
| 108 } // namespace WebCore | 108 } // namespace WebCore |
| 109 | 109 |
| 110 #endif // DOMSelection_h | 110 #endif // DOMSelection_h |
| OLD | NEW |