Index: content/browser/renderer_host/render_widget_host_view_win.h |
diff --git a/content/browser/renderer_host/render_widget_host_view_win.h b/content/browser/renderer_host/render_widget_host_view_win.h |
index 17f6a47927c3e992f152b42ee14ccf56b060a3ee..815fd3867d6f08dfe45a73eae3c5e5e2f2b9ed4d 100644 |
--- a/content/browser/renderer_host/render_widget_host_view_win.h |
+++ b/content/browser/renderer_host/render_widget_host_view_win.h |
@@ -284,6 +284,9 @@ class RenderWidgetHostViewWin |
base::i18n::TextDirection direction) OVERRIDE; |
virtual void ExtendSelectionAndDelete(size_t before, size_t after) OVERRIDE; |
+ bool has_valid_long_press_gesture() { return has_valid_long_press_gesture_; } |
dcheng
2013/04/15 18:07:37
Nit: make this const.
Hongbo Min
2013/05/16 14:47:59
Done.
|
+ void CancelLongPressGesture() { has_valid_long_press_gesture_ = false; } |
+ |
protected: |
friend class RenderWidgetHostView; |
@@ -594,6 +597,10 @@ class RenderWidgetHostViewWin |
// The OS-provided default IAccessible instance for our hwnd. |
base::win::ScopedComPtr<IAccessible> window_iaccessible_; |
+ // True if the long press gesture is forwarded to renderer process and still |
+ // in a valid status, e.g. no mouse up event happens. |
+ bool has_valid_long_press_gesture_; |
dcheng
2013/04/15 18:07:37
Perhaps just call this "in_long_press_gesture".
Hongbo Min
2013/05/16 14:47:59
Done.
|
+ |
DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); |
}; |