| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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; |
| 61 int extentOffset() const; | 61 int extentOffset() const; |
| 62 String type() const; | 62 String type() const; |
| 63 void setBaseAndExtent(Node* baseNode, int baseOffset, Node* extentNode, int
extentOffset, ExceptionState&); | 63 void setBaseAndExtent(Node* baseNode, int baseOffset, Node* extentNode, int
extentOffset, ExceptionState&); |
| 64 void setPosition(Node*, int offset, ExceptionState&); | |
| 65 void modify(const String& alter, const String& direction, const String& gran
ularity); | 64 void modify(const String& alter, const String& direction, const String& gran
ularity); |
| 66 | 65 |
| 67 // Mozilla Selection Object API | 66 // Mozilla Selection Object API |
| 68 // In Firefox, anchor/focus are the equal to the start/end of the selection, | 67 // In Firefox, anchor/focus are the equal to the start/end of the selection, |
| 69 // but reflect the direction in which the selection was made by the user. Th
at does | 68 // but reflect the direction in which the selection was made by the user. Th
at does |
| 70 // not mean that they are base/extent, since the base/extent don't reflect | 69 // not mean that they are base/extent, since the base/extent don't reflect |
| 71 // expansion. | 70 // expansion. |
| 72 // These methods return the valid equivalents of internal editing positions. | 71 // These methods return the valid equivalents of internal editing positions. |
| 73 Node* anchorNode() const; | 72 Node* anchorNode() const; |
| 74 int anchorOffset() const; | 73 int anchorOffset() const; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 102 | 101 |
| 103 Node* shadowAdjustedNode(const Position&) const; | 102 Node* shadowAdjustedNode(const Position&) const; |
| 104 int shadowAdjustedOffset(const Position&) const; | 103 int shadowAdjustedOffset(const Position&) const; |
| 105 | 104 |
| 106 bool isValidForPosition(Node*) const; | 105 bool isValidForPosition(Node*) const; |
| 107 }; | 106 }; |
| 108 | 107 |
| 109 } // namespace WebCore | 108 } // namespace WebCore |
| 110 | 109 |
| 111 #endif // DOMSelection_h | 110 #endif // DOMSelection_h |
| OLD | NEW |