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

Unified Diff: content/browser/renderer_host/render_widget_host_view_win.h

Issue 14122008: Enable touch-initiated drag-drop work on Windows (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 8 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
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);
};

Powered by Google App Engine
This is Rietveld 408576698