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 WebCore { class Range; } | 39 namespace blink { class Range; } |
40 | 40 |
41 namespace blink { | 41 namespace blink { |
42 | 42 |
43 struct WebFloatQuad; | 43 struct WebFloatQuad; |
44 class WebNode; | 44 class WebNode; |
45 class WebString; | 45 class WebString; |
46 | 46 |
47 // Provides readonly access to some properties of a DOM range. | 47 // Provides readonly access to some properties of a DOM range. |
48 class WebRange { | 48 class WebRange { |
49 public: | 49 public: |
(...skipping 20 matching lines...) Expand all Loading... |
70 BLINK_EXPORT WebString toHTMLText() const; | 70 BLINK_EXPORT WebString toHTMLText() const; |
71 BLINK_EXPORT WebString toPlainText() const; | 71 BLINK_EXPORT WebString toPlainText() const; |
72 | 72 |
73 BLINK_EXPORT WebRange expandedToParagraph() const; | 73 BLINK_EXPORT WebRange expandedToParagraph() const; |
74 | 74 |
75 BLINK_EXPORT static WebRange fromDocumentRange(WebLocalFrame*, int start, in
t length); | 75 BLINK_EXPORT static WebRange fromDocumentRange(WebLocalFrame*, int start, in
t length); |
76 | 76 |
77 BLINK_EXPORT WebVector<WebFloatQuad> textQuads() const; | 77 BLINK_EXPORT WebVector<WebFloatQuad> textQuads() const; |
78 | 78 |
79 #if BLINK_IMPLEMENTATION | 79 #if BLINK_IMPLEMENTATION |
80 WebRange(const PassRefPtrWillBeRawPtr<WebCore::Range>&); | 80 WebRange(const PassRefPtrWillBeRawPtr<blink::Range>&); |
81 operator PassRefPtrWillBeRawPtr<WebCore::Range>() const; | 81 operator PassRefPtrWillBeRawPtr<blink::Range>() const; |
82 #endif | 82 #endif |
83 | 83 |
84 private: | 84 private: |
85 WebPrivatePtr<WebCore::Range> m_private; | 85 WebPrivatePtr<blink::Range> m_private; |
86 }; | 86 }; |
87 | 87 |
88 } // namespace blink | 88 } // namespace blink |
89 | 89 |
90 #endif | 90 #endif |
OLD | NEW |