Index: public/web/WebWidget.h |
diff --git a/public/web/WebWidget.h b/public/web/WebWidget.h |
index 10ad2912191bb0750c0e60ee673b856d11d07c1b..281b721858ac225fc14513221f7807e6bcfd4856 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| coordinate will be relative to the |
timvolodine
2014/03/05 19:41:02
coordinate -> coordinates
mlamouri (slow - plz ping)
2014/03/06 13:45:31
Done.
|
+ // contents window and will take into account the current scale level. |
+ // Returns false if there is no selection or on failure. |
timvolodine
2014/03/05 19:41:02
what does failure mean here? instead maybe better
mlamouri (slow - plz ping)
2014/03/06 13:45:31
You can have a selection even though there is no e
|
+ virtual bool selectionRootBounds(WebRect& bounds) const { return false; } |
+ |
// 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. |