Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(564)

Side by Side Diff: public/web/mac/WebSubstringUtil.h

Issue 1329103002: [blink/mac] Support getting baseline point for showing dictionary lookup bubble. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: avoid |const NSClass*| Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/web/mac/WebSubstringUtil.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/web/mac/WebSubstringUtil.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698