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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 int baseOffset, | 68 int baseOffset, |
69 Node* extentNode, | 69 Node* extentNode, |
70 int extentOffset, | 70 int extentOffset, |
71 ExceptionState&); | 71 ExceptionState&); |
72 void modify(const String& alter, | 72 void modify(const String& alter, |
73 const String& direction, | 73 const String& direction, |
74 const String& granularity); | 74 const String& granularity); |
75 | 75 |
76 // Mozilla Selection Object API | 76 // Mozilla Selection Object API |
77 // In Firefox, anchor/focus are the equal to the start/end of the selection, | 77 // In Firefox, anchor/focus are the equal to the start/end of the selection, |
78 // but reflect the direction in which the selection was made by the user. That
does | 78 // but reflect the direction in which the selection was made by the user. That |
79 // not mean that they are base/extent, since the base/extent don't reflect | 79 // does not mean that they are base/extent, since the base/extent don't |
80 // expansion. | 80 // reflect expansion. |
81 // These methods return the valid equivalents of internal editing positions. | 81 // These methods return the valid equivalents of internal editing positions. |
82 Node* anchorNode() const; | 82 Node* anchorNode() const; |
83 int anchorOffset() const; | 83 int anchorOffset() const; |
84 Node* focusNode() const; | 84 Node* focusNode() const; |
85 int focusOffset() const; | 85 int focusOffset() const; |
86 bool isCollapsed() const; | 86 bool isCollapsed() const; |
87 int rangeCount() const; | 87 int rangeCount() const; |
88 void collapse(Node*, int offset, ExceptionState&); | 88 void collapse(Node*, int offset, ExceptionState&); |
89 void collapseToEnd(ExceptionState&); | 89 void collapseToEnd(ExceptionState&); |
90 void collapseToStart(ExceptionState&); | 90 void collapseToStart(ExceptionState&); |
(...skipping 26 matching lines...) Expand all 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 |