OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_COMMON_NAVIGATION_GESTURE_H_ | 5 #ifndef CONTENT_COMMON_NAVIGATION_GESTURE_H_ |
6 #define CONTENT_COMMON_NAVIGATION_GESTURE_H_ | 6 #define CONTENT_COMMON_NAVIGATION_GESTURE_H_ |
7 | 7 |
| 8 namespace content { |
| 9 |
8 enum NavigationGesture { | 10 enum NavigationGesture { |
9 // User initiated navigation/load. | 11 // User initiated navigation/load. |
10 NavigationGestureUser, | 12 NavigationGestureUser, |
11 // Non-user initiated navigation/load. For example, onload- or | 13 // Non-user initiated navigation/load. For example, onload- or |
12 // setTimeout-triggered document.location changes and form.submits. See | 14 // setTimeout-triggered document.location changes and form.submits. See |
13 // http://b/1046841 for some cases that should be treated this way but aren't. | 15 // http://b/1046841 for some cases that should be treated this way but aren't. |
14 NavigationGestureAuto, | 16 NavigationGestureAuto, |
15 // Initial state. | 17 // Initial state. |
16 NavigationGestureUnknown, | 18 NavigationGestureUnknown, |
17 }; | 19 }; |
18 | 20 |
| 21 } // namespace content |
| 22 |
19 #endif // CONTENT_COMMON_NAVIGATION_GESTURE_H_ | 23 #endif // CONTENT_COMMON_NAVIGATION_GESTURE_H_ |
OLD | NEW |