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 15 matching lines...) Expand all Loading... |
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 blink { | 33 namespace blink { |
34 | 34 |
35 class SurroundingText; | 35 class SurroundingText; |
36 class WebHitTestResult; | |
37 class WebNode; | 36 class WebNode; |
38 class WebRange; | 37 class WebRange; |
39 struct WebPoint; | 38 struct WebPoint; |
40 | 39 |
41 // WebSurroundingText is a Blink API that gives access to the SurroundingText | 40 // WebSurroundingText is a Blink API that gives access to the SurroundingText |
42 // API. It allows caller to know the text surrounding a point or a range. | 41 // API. It allows caller to know the text surrounding a point or a range. |
43 class WebSurroundingText { | 42 class WebSurroundingText { |
44 public: | 43 public: |
45 WebSurroundingText() { } | 44 WebSurroundingText() { } |
46 ~WebSurroundingText() { reset(); } | 45 ~WebSurroundingText() { reset(); } |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 // range. | 77 // range. |
79 BLINK_EXPORT WebRange rangeFromContentOffsets(size_t startOffsetInContent, s
ize_t endOffsetInContent); | 78 BLINK_EXPORT WebRange rangeFromContentOffsets(size_t startOffsetInContent, s
ize_t endOffsetInContent); |
80 | 79 |
81 protected: | 80 protected: |
82 WebPrivateOwnPtr<SurroundingText> m_private; | 81 WebPrivateOwnPtr<SurroundingText> m_private; |
83 }; | 82 }; |
84 | 83 |
85 } // namespace blink | 84 } // namespace blink |
86 | 85 |
87 #endif | 86 #endif |
OLD | NEW |