| OLD | NEW | 
|   1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. |   1 // Copyright (c) 2006-2009 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 CHROME_COMMON_NAVIGATION_GESTURE_H_ |   5 #ifndef CHROME_COMMON_NAVIGATION_GESTURE_H_ | 
|   6 #define CHROME_COMMON_NAVIGATION_GESTURE_H_ |   6 #define CHROME_COMMON_NAVIGATION_GESTURE_H_ | 
|   7 #pragma once |   7 #pragma once | 
|   8  |   8  | 
|   9 enum NavigationGesture { |   9 enum NavigationGesture { | 
|  10   NavigationGestureUser,    // User initiated navigation/load. This is not |  10   NavigationGestureUser,    // User initiated navigation/load. | 
|  11                             // currently used due to the untrustworthy nature |  | 
|  12                             // of userGestureHint (wasRunByUserGesture). See |  | 
|  13                             // bug 1051891. |  | 
|  14   NavigationGestureAuto,    // Non-user initiated navigation / load. For example |  11   NavigationGestureAuto,    // Non-user initiated navigation / load. For example | 
|  15                             // onload or setTimeout triggered document.location |  12                             // onload or setTimeout triggered document.location | 
|  16                             // changes, and form.submits. See bug 1046841 for |  13                             // changes, and form.submits. See bug 1046841 for | 
|  17                             // some cases that should be treated this way but |  14                             // some cases that should be treated this way but | 
|  18                             // aren't yet. |  15                             // aren't yet. | 
|  19   NavigationGestureUnknown, // What we assign when userGestureHint returns true |  16   NavigationGestureUnknown, // Initial state. | 
|  20                             // because we can't trust it. |  | 
|  21 }; |  17 }; | 
|  22  |  18  | 
|  23 #endif  // CHROME_COMMON_NAVIGATION_GESTURE_H_ |  19 #endif  // CHROME_COMMON_NAVIGATION_GESTURE_H_ | 
| OLD | NEW |