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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/mac/WebSubstringUtil.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/mac/WebSubstringUtil.h
diff --git a/public/web/mac/WebSubstringUtil.h b/public/web/mac/WebSubstringUtil.h
index 72fc464c9e14f31e5a4c8c09a7c116c68b99955b..29c9cdd24f2f73d09f49848938116d63811b772a 100644
--- a/public/web/mac/WebSubstringUtil.h
+++ b/public/web/mac/WebSubstringUtil.h
@@ -60,6 +60,15 @@ public:
BLINK_EXPORT static NSAttributedString* attributedSubstringInRange(WebLocalFrame*,
size_t location,
size_t length);
+
+ // Returns an autoreleased NSAttributedString that is a substring of the
+ // Frame at the given range, or nil on error.
+ // It also gets the baseline point for the given range for showing
+ // dictionary lookup bubble.
+ BLINK_EXPORT static NSAttributedString* attributedSubstringInRange(WebLocalFrame*,
+ size_t location,
+ size_t length,
+ WebPoint* baselinePoint);
};
} // namespace blink
« 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