OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 return *this; | 55 return *this; |
56 } | 56 } |
57 | 57 |
58 BLINK_EXPORT void reset(); | 58 BLINK_EXPORT void reset(); |
59 BLINK_EXPORT void assign(const WebRange&); | 59 BLINK_EXPORT void assign(const WebRange&); |
60 | 60 |
61 bool isNull() const { return m_private.isNull(); } | 61 bool isNull() const { return m_private.isNull(); } |
62 | 62 |
63 BLINK_EXPORT int startOffset() const; | 63 BLINK_EXPORT int startOffset() const; |
64 BLINK_EXPORT int endOffset() const; | 64 BLINK_EXPORT int endOffset() const; |
65 BLINK_EXPORT WebNode startContainer(int& exceptionCode) const; | |
66 BLINK_EXPORT WebNode endContainer(int& exceptionCode) const; | |
67 | |
68 BLINK_EXPORT WebString toHTMLText() const; | |
69 BLINK_EXPORT WebString toPlainText() const; | 65 BLINK_EXPORT WebString toPlainText() const; |
70 | 66 |
71 BLINK_EXPORT WebRange expandedToParagraph() const; | |
72 | |
73 BLINK_EXPORT static WebRange fromDocumentRange(WebLocalFrame*, int start, in
t length); | 67 BLINK_EXPORT static WebRange fromDocumentRange(WebLocalFrame*, int start, in
t length); |
74 | 68 |
75 #if BLINK_IMPLEMENTATION | 69 #if BLINK_IMPLEMENTATION |
76 WebRange(const PassRefPtrWillBeRawPtr<Range>&); | 70 WebRange(const PassRefPtrWillBeRawPtr<Range>&); |
77 operator PassRefPtrWillBeRawPtr<Range>() const; | 71 operator PassRefPtrWillBeRawPtr<Range>() const; |
78 #endif | 72 #endif |
79 | 73 |
80 private: | 74 private: |
81 WebPrivatePtr<Range> m_private; | 75 WebPrivatePtr<Range> m_private; |
82 }; | 76 }; |
83 | 77 |
84 } // namespace blink | 78 } // namespace blink |
85 | 79 |
86 #endif | 80 #endif |
OLD | NEW |