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

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

Issue 14294003: Touch-initiated drag-out to download file but fails. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase to trunk Created 7 years, 7 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
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2990541ec86d361aaf2766263e9238df50a2ef3e..49b66ce595e47df1f8e91cf01aa128d9b35b81e3 100644
--- a/content/browser/renderer_host/render_widget_host_view_win.h
+++ b/content/browser/renderer_host/render_widget_host_view_win.h
@@ -285,6 +285,9 @@ class RenderWidgetHostViewWin
virtual void ExtendSelectionAndDelete(size_t before, size_t after) OVERRIDE;
virtual void EnsureCaretInRect(const gfx::Rect& rect) OVERRIDE;
+ bool in_long_press_gesture() const { return in_long_press_gesture_; }
+ void CancelLongPressGesture() { in_long_press_gesture_ = false; }
+
protected:
friend class RenderWidgetHostView;
@@ -595,6 +598,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 in_long_press_gesture_;
+
DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin);
};
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698