| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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; | 65 BLINK_EXPORT WebNode startContainer(int& exceptionCode) const; |
| 66 BLINK_EXPORT WebNode endContainer(int& exceptionCode) const; | 66 BLINK_EXPORT WebNode endContainer(int& exceptionCode) const; |
| 67 | 67 |
| 68 BLINK_EXPORT WebString toHTMLText() const; | |
| 69 BLINK_EXPORT WebString toPlainText() const; | 68 BLINK_EXPORT WebString toPlainText() const; |
| 70 | 69 |
| 71 BLINK_EXPORT WebRange expandedToParagraph() const; | 70 BLINK_EXPORT WebRange expandedToParagraph() const; |
| 72 | 71 |
| 73 BLINK_EXPORT static WebRange fromDocumentRange(WebLocalFrame*, int start, in
t length); | 72 BLINK_EXPORT static WebRange fromDocumentRange(WebLocalFrame*, int start, in
t length); |
| 74 | 73 |
| 75 #if BLINK_IMPLEMENTATION | 74 #if BLINK_IMPLEMENTATION |
| 76 WebRange(const PassRefPtr<Range>&); | 75 WebRange(const PassRefPtr<Range>&); |
| 77 operator PassRefPtr<Range>() const; | 76 operator PassRefPtr<Range>() const; |
| 78 #endif | 77 #endif |
| 79 | 78 |
| 80 private: | 79 private: |
| 81 WebPrivatePtr<Range> m_private; | 80 WebPrivatePtr<Range> m_private; |
| 82 }; | 81 }; |
| 83 | 82 |
| 84 } // namespace blink | 83 } // namespace blink |
| 85 | 84 |
| 86 #endif // SKY_ENGINE_PUBLIC_WEB_WEBRANGE_H_ | 85 #endif // SKY_ENGINE_PUBLIC_WEB_WEBRANGE_H_ |
| OLD | NEW |