Chromium Code Reviews| Index: third_party/WebKit/public/web/mac/WebSubstringUtil.h |
| diff --git a/third_party/WebKit/public/web/mac/WebSubstringUtil.h b/third_party/WebKit/public/web/mac/WebSubstringUtil.h |
| index 29c9cdd24f2f73d09f49848938116d63811b772a..de2469cdd00743afee711f3ea791598ad1e09b63 100644 |
| --- a/third_party/WebKit/public/web/mac/WebSubstringUtil.h |
| +++ b/third_party/WebKit/public/web/mac/WebSubstringUtil.h |
| @@ -32,7 +32,6 @@ |
| #define WebSubstringUtil_h |
| #include "../../platform/WebCommon.h" |
| -#include "public/web/WebFrame.h" |
| #if __OBJC__ |
| @class NSAttributedString; |
| @@ -42,16 +41,18 @@ class NSAttributedString; |
| namespace blink { |
| -class WebView; |
| +class WebFrameWidget; |
| +class WebLocalFrame; |
|
dcheng
2016/09/21 00:38:34
Nit: remove this, it appears unused.
EhsanK
2016/09/23 15:16:59
Actually, I think they are all needed here since t
|
| struct WebPoint; |
| class WebSubstringUtil { |
| public: |
| // Returns an autoreleased NSAttributedString that is the word under |
| - // the given point, or nil on error. |
| + // the given point inside the given WebFrameWidget or nil on error. |
| // Upon return, |baselinePoint| is set to the left baseline point in |
| // AppKit coordinates. |
| - BLINK_EXPORT static NSAttributedString* attributedWordAtPoint(WebView*, |
| + BLINK_EXPORT static NSAttributedString* attributedWordAtPoint( |
| + WebFrameWidget*, |
| WebPoint, |
| WebPoint& baselinePoint); |