| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 // AppKit coordinates. | 53 // AppKit coordinates. |
| 54 BLINK_EXPORT static NSAttributedString* attributedWordAtPoint(WebView*, | 54 BLINK_EXPORT static NSAttributedString* attributedWordAtPoint(WebView*, |
| 55 WebPoint, | 55 WebPoint, |
| 56 WebPoint& baselinePoint); | 56 WebPoint& baselinePoint); |
| 57 | 57 |
| 58 // Returns an autoreleased NSAttributedString that is a substring of the | 58 // Returns an autoreleased NSAttributedString that is a substring of the |
| 59 // Frame at the given range, or nil on error. | 59 // Frame at the given range, or nil on error. |
| 60 BLINK_EXPORT static NSAttributedString* attributedSubstringInRange(WebLocalF
rame*, | 60 BLINK_EXPORT static NSAttributedString* attributedSubstringInRange(WebLocalF
rame*, |
| 61 size_t location, | 61 size_t location, |
| 62 size_t length); | 62 size_t length); |
| 63 |
| 64 // Returns an autoreleased NSAttributedString that is a substring of the |
| 65 // Frame at the given range, or nil on error. |
| 66 // It also gets the baseline point for the given range for showing |
| 67 // dictionary lookup bubble. |
| 68 BLINK_EXPORT static NSAttributedString* attributedSubstringInRange(WebLocalF
rame*, |
| 69 size_t location, |
| 70 size_t length, |
| 71 WebPoint* baselinePoint); |
| 63 }; | 72 }; |
| 64 | 73 |
| 65 } // namespace blink | 74 } // namespace blink |
| 66 | 75 |
| 67 #endif | 76 #endif |
| OLD | NEW |