OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 12 matching lines...) Expand all Loading... |
23 */ | 23 */ |
24 | 24 |
25 #ifndef WebSurroundingText_h | 25 #ifndef WebSurroundingText_h |
26 #define WebSurroundingText_h | 26 #define WebSurroundingText_h |
27 | 27 |
28 #include "../platform/WebPrivateOwnPtr.h" | 28 #include "../platform/WebPrivateOwnPtr.h" |
29 #include "../platform/WebString.h" | 29 #include "../platform/WebString.h" |
30 #include "WebNode.h" | 30 #include "WebNode.h" |
31 #include "WebRange.h" | 31 #include "WebRange.h" |
32 | 32 |
33 namespace WebCore { | 33 namespace blink { |
34 class SurroundingText; | 34 class SurroundingText; |
35 } | 35 } |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 | 38 |
39 class WebHitTestResult; | 39 class WebHitTestResult; |
40 class WebNode; | 40 class WebNode; |
41 class WebRange; | 41 class WebRange; |
42 struct WebPoint; | 42 struct WebPoint; |
43 | 43 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 BLINK_EXPORT size_t startOffsetInTextContent() const; | 75 BLINK_EXPORT size_t startOffsetInTextContent() const; |
76 | 76 |
77 // End offset of the initial text in the text content. | 77 // End offset of the initial text in the text content. |
78 BLINK_EXPORT size_t endOffsetInTextContent() const; | 78 BLINK_EXPORT size_t endOffsetInTextContent() const; |
79 | 79 |
80 // Convert start/end positions in the content text string into a WebKit text | 80 // Convert start/end positions in the content text string into a WebKit text |
81 // range. | 81 // range. |
82 BLINK_EXPORT WebRange rangeFromContentOffsets(size_t startOffsetInContent, s
ize_t endOffsetInContent); | 82 BLINK_EXPORT WebRange rangeFromContentOffsets(size_t startOffsetInContent, s
ize_t endOffsetInContent); |
83 | 83 |
84 protected: | 84 protected: |
85 WebPrivateOwnPtr<WebCore::SurroundingText> m_private; | 85 WebPrivateOwnPtr<blink::SurroundingText> m_private; |
86 }; | 86 }; |
87 | 87 |
88 } // namespace blink | 88 } // namespace blink |
89 | 89 |
90 #endif | 90 #endif |
OLD | NEW |