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

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

Issue 2986483002: Adding metrics logging for Simplified Gesture Navigation. (Closed)
Patch Set: Rebase 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/types.h
diff --git a/content/browser/web_contents/aura/uma_navigation_type.h b/content/browser/web_contents/aura/types.h
similarity index 51%
rename from content/browser/web_contents/aura/uma_navigation_type.h
rename to content/browser/web_contents/aura/types.h
index 53294b9d9196368d311d334630d2ac2a872c6b81..4257371468cabfac654a6f7e3000e8e9d87273f8 100644
--- a/content/browser/web_contents/aura/uma_navigation_type.h
+++ b/content/browser/web_contents/aura/types.h
@@ -2,8 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#ifndef CONTENT_BROWSER_WEB_CONTENTS_AURA_TYPES_H_
+#define CONTENT_BROWSER_WEB_CONTENTS_AURA_TYPES_H_
+
+#include "content/browser/renderer_host/overscroll_controller.h"
+
namespace content {
+enum class NavigationDirection { NONE, FORWARD, BACK, NAVIGATION_COUNT };
+
// Note that this enum is used to back an UMA histogram, so it should be
// treated as append-only.
enum UmaNavigationType {
@@ -15,4 +22,9 @@ enum UmaNavigationType {
NAVIGATION_TYPE_COUNT,
};
+UmaNavigationType GetUmaNavigationType(NavigationDirection direction,
+ OverscrollSource source);
+
} // namespace content
+
+#endif // CONTENT_BROWSER_WEB_CONTENTS_AURA_TYPES_H_

Powered by Google App Engine
This is Rietveld 408576698