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

Unified Diff: public/web/WebWidget.h

Issue 177903010: Expose the selection root bounds in WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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
« Source/web/WebViewImpl.cpp ('K') | « Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebWidget.h
diff --git a/public/web/WebWidget.h b/public/web/WebWidget.h
index 10ad2912191bb0750c0e60ee673b856d11d07c1b..e14244f499285bf8c1ceb18ac6179543299544eb 100644
--- a/public/web/WebWidget.h
+++ b/public/web/WebWidget.h
@@ -194,6 +194,11 @@ public:
// If the selection range is empty, it returns the caret bounds.
virtual bool selectionBounds(WebRect& anchor, WebRect& focus) const { return false; }
+ // Compute the bounds of the root element of the current selection and fills
+ // the out-parameter on success.
+ // Returns false if there is no selection or on failure.
+ virtual bool selectionRootBounds(WebRect& bounds) const { return false; }
tkent 2014/03/05 04:48:10 * Why do you add this function to WebWidget though
mlamouri (slow - plz ping) 2014/03/05 09:52:45 Done.
+
// Called to notify that IME candidate window has changed its visibility or
// its appearance. These calls correspond to trigger
// candidatewindow{show,update,hide} events defined in W3C IME API.
« Source/web/WebViewImpl.cpp ('K') | « Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698