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

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, 9 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/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..3337b5a6e3b3141fd3e0067b16e960174b807649 100644
--- a/public/web/WebWidget.h
+++ b/public/web/WebWidget.h
@@ -194,6 +194,12 @@ 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. |bounds| coordinates will be relative to the
+ // contents window and will take into account the current scale level.
+ // Returns false if there is no selection.
+ virtual bool selectionRootBounds(WebRect& bounds) const { return false; }
jamesr 2014/03/06 21:55:07 why add this to WebWidget if you are only implemen
mlamouri (slow - plz ping) 2014/03/07 13:50:29 This is being used in RenderWidget and it is inter
+
// 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.
« no previous file with comments | « Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698