1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_AURA_TYPES_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_AURA_TYPES_H_
7 
8 #include "content/browser/renderer_host/overscroll_controller.h"
9 
10 namespace content {
11 
12 enum class NavigationDirection {
13   NONE,
14   FORWARD,
15   BACK,
16   RELOAD,
17   NAVIGATION_COUNT,
18 };
19 
20 // Note that this enum is used to back an UMA histogram, so it should be
21 // treated as append-only.
22 enum UmaNavigationType {
23   NAVIGATION_TYPE_NONE,
24   FORWARD_TOUCHPAD,
25   BACK_TOUCHPAD,
26   FORWARD_TOUCHSCREEN,
27   BACK_TOUCHSCREEN,
28   RELOAD_TOUCHPAD,
29   RELOAD_TOUCHSCREEN,
30   NAVIGATION_TYPE_COUNT,
31 };
32 
33 UmaNavigationType GetUmaNavigationType(NavigationDirection direction,
34                                        OverscrollSource source);
35 
36 }  // namespace content
37 
38 #endif  // CONTENT_BROWSER_WEB_CONTENTS_AURA_TYPES_H_
39