Index: content/renderer/render_view.h |
diff --git a/content/renderer/render_view.h b/content/renderer/render_view.h |
index 0db56159c59f059d08cb67a305904d0e979d55b0..a51a4a939152160f3801c04300a4f2a427167fe4 100644 |
--- a/content/renderer/render_view.h |
+++ b/content/renderer/render_view.h |
@@ -819,6 +819,7 @@ class RenderView : public RenderWidget, |
int id, |
bool notify_result); |
void OnSelectAll(); |
+ void OnSelectRect(const gfx::Point& start, const gfx::Point& end); |
void OnSetAccessibilityFocus(int acc_obj_id); |
void OnSetActive(bool active); |
void OnSetAltErrorPageURL(const GURL& gurl); |
@@ -1197,6 +1198,14 @@ class RenderView : public RenderWidget, |
// is fine. |
ObserverList<RenderViewObserver> observers_; |
+ // Set if we received a ViewMsg_SelectRange from the browser and are waiting |
+ // for WebKit to update the selection and call us back through |
+ // didChangeSelection(). |
+ // This is used by didChangeSelection() to determine if the selection change |
+ // has happened due to an input event or due to ViewMsg_SelectRange message |
+ // from the browser. |
+ bool selection_ack_pending_; |
+ |
// --------------------------------------------------------------------------- |
// ADDING NEW DATA? Please see if it fits appropriately in one of the above |
// sections rather than throwing it randomly at the end. If you're adding a |