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

Unified Diff: content/browser/web_contents/aura/gesture_nav_simple.h

Issue 2986483002: Adding metrics logging for Simplified Gesture Navigation. (Closed)
Patch Set: Fixing tests. Created 3 years, 5 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/web_contents/aura/gesture_nav_simple.h
diff --git a/content/browser/web_contents/aura/gesture_nav_simple.h b/content/browser/web_contents/aura/gesture_nav_simple.h
index 70b474f3f1fc2bab9512ec5213485cc0871bedea..00d09e5bbcd843bf7fb75827540be1372e51cf55 100644
--- a/content/browser/web_contents/aura/gesture_nav_simple.h
+++ b/content/browser/web_contents/aura/gesture_nav_simple.h
@@ -9,6 +9,7 @@
#include "base/macros.h"
#include "content/browser/renderer_host/overscroll_controller_delegate.h"
+#include "content/browser/web_contents/aura/types.h"
namespace content {
@@ -43,6 +44,8 @@ class GestureNavSimple : public OverscrollControllerDelegate {
WebContentsImpl* web_contents_;
std::unique_ptr<Affordance> affordance_;
float completion_threshold_;
+ NavigationDirection direction_ = NavigationDirection::NONE;
mohsen 2017/07/20 18:00:41 Instead of adding |direction_|, can you use Oversc
mfomitchev 2017/07/21 00:10:07 Got rid of direction. I left NavigationDirection,
+ OverscrollSource source_ = OverscrollSource::NONE;
DISALLOW_COPY_AND_ASSIGN(GestureNavSimple);
};

Powered by Google App Engine
This is Rietveld 408576698