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 18 matching lines...) Expand all Loading... |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WebRange_h | 31 #ifndef WebRange_h |
32 #define WebRange_h | 32 #define WebRange_h |
33 | 33 |
34 #include "WebFrame.h" | 34 #include "WebFrame.h" |
35 #include "public/platform/WebCommon.h" | 35 #include "public/platform/WebCommon.h" |
36 #include "public/platform/WebPrivatePtr.h" | 36 #include "public/platform/WebPrivatePtr.h" |
37 #include "public/platform/WebVector.h" | 37 #include "public/platform/WebVector.h" |
38 | 38 |
39 namespace blink { class Range; } | |
40 | |
41 namespace blink { | 39 namespace blink { |
42 | 40 |
| 41 class Range; |
43 class WebNode; | 42 class WebNode; |
44 class WebString; | 43 class WebString; |
45 | 44 |
46 // Provides readonly access to some properties of a DOM range. | 45 // Provides readonly access to some properties of a DOM range. |
47 class WebRange { | 46 class WebRange { |
48 public: | 47 public: |
49 ~WebRange() { reset(); } | 48 ~WebRange() { reset(); } |
50 | 49 |
51 WebRange() { } | 50 WebRange() { } |
52 WebRange(const WebRange& r) { assign(r); } | 51 WebRange(const WebRange& r) { assign(r); } |
(...skipping 14 matching lines...) Expand all Loading... |
67 BLINK_EXPORT WebNode endContainer(int& exceptionCode) const; | 66 BLINK_EXPORT WebNode endContainer(int& exceptionCode) const; |
68 | 67 |
69 BLINK_EXPORT WebString toHTMLText() const; | 68 BLINK_EXPORT WebString toHTMLText() const; |
70 BLINK_EXPORT WebString toPlainText() const; | 69 BLINK_EXPORT WebString toPlainText() const; |
71 | 70 |
72 BLINK_EXPORT WebRange expandedToParagraph() const; | 71 BLINK_EXPORT WebRange expandedToParagraph() const; |
73 | 72 |
74 BLINK_EXPORT static WebRange fromDocumentRange(WebLocalFrame*, int start, in
t length); | 73 BLINK_EXPORT static WebRange fromDocumentRange(WebLocalFrame*, int start, in
t length); |
75 | 74 |
76 #if BLINK_IMPLEMENTATION | 75 #if BLINK_IMPLEMENTATION |
77 WebRange(const PassRefPtrWillBeRawPtr<blink::Range>&); | 76 WebRange(const PassRefPtrWillBeRawPtr<Range>&); |
78 operator PassRefPtrWillBeRawPtr<blink::Range>() const; | 77 operator PassRefPtrWillBeRawPtr<Range>() const; |
79 #endif | 78 #endif |
80 | 79 |
81 private: | 80 private: |
82 WebPrivatePtr<blink::Range> m_private; | 81 WebPrivatePtr<Range> m_private; |
83 }; | 82 }; |
84 | 83 |
85 } // namespace blink | 84 } // namespace blink |
86 | 85 |
87 #endif | 86 #endif |
OLD | NEW |