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. |