| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 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 |
| 5 namespace content { | 10 namespace content { |
| 6 | 11 |
| 12 enum class NavigationDirection { NONE, FORWARD, BACK, NAVIGATION_COUNT }; |
| 13 |
| 7 // Note that this enum is used to back an UMA histogram, so it should be | 14 // Note that this enum is used to back an UMA histogram, so it should be |
| 8 // treated as append-only. | 15 // treated as append-only. |
| 9 enum UmaNavigationType { | 16 enum UmaNavigationType { |
| 10 NAVIGATION_TYPE_NONE, | 17 NAVIGATION_TYPE_NONE, |
| 11 FORWARD_TOUCHPAD, | 18 FORWARD_TOUCHPAD, |
| 12 BACK_TOUCHPAD, | 19 BACK_TOUCHPAD, |
| 13 FORWARD_TOUCHSCREEN, | 20 FORWARD_TOUCHSCREEN, |
| 14 BACK_TOUCHSCREEN, | 21 BACK_TOUCHSCREEN, |
| 15 NAVIGATION_TYPE_COUNT, | 22 NAVIGATION_TYPE_COUNT, |
| 16 }; | 23 }; |
| 17 | 24 |
| 25 UmaNavigationType GetUmaNavigationType(NavigationDirection direction, |
| 26 OverscrollSource source); |
| 27 |
| 18 } // namespace content | 28 } // namespace content |
| 29 |
| 30 #endif // CONTENT_BROWSER_WEB_CONTENTS_AURA_TYPES_H_ |
| OLD | NEW |