| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_PAGE_TRANSITION_TYPES_H_ | 5 #ifndef CONTENT_COMMON_PAGE_TRANSITION_TYPES_H_ |
| 6 #define CONTENT_COMMON_PAGE_TRANSITION_TYPES_H_ | 6 #define CONTENT_COMMON_PAGE_TRANSITION_TYPES_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 | 10 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 LAST_CORE = KEYWORD_GENERATED, | 98 LAST_CORE = KEYWORD_GENERATED, |
| 99 CORE_MASK = 0xFF, | 99 CORE_MASK = 0xFF, |
| 100 | 100 |
| 101 // Qualifiers | 101 // Qualifiers |
| 102 // Any of the core values above can be augmented by one or more qualifiers. | 102 // Any of the core values above can be augmented by one or more qualifiers. |
| 103 // These qualifiers further define the transition. | 103 // These qualifiers further define the transition. |
| 104 | 104 |
| 105 // User used the Forward or Back button to navigate among browsing history. | 105 // User used the Forward or Back button to navigate among browsing history. |
| 106 FORWARD_BACK = 0x01000000, | 106 FORWARD_BACK = 0x01000000, |
| 107 | 107 |
| 108 // User is navigating to the home page. |
| 109 HOME_PAGE = 0x02000000, |
| 110 |
| 108 // The beginning of a navigation chain. | 111 // The beginning of a navigation chain. |
| 109 CHAIN_START = 0x10000000, | 112 CHAIN_START = 0x10000000, |
| 110 | 113 |
| 111 // The last transition in a redirect chain. | 114 // The last transition in a redirect chain. |
| 112 CHAIN_END = 0x20000000, | 115 CHAIN_END = 0x20000000, |
| 113 | 116 |
| 114 // Redirects caused by JavaScript or a meta refresh tag on the page. | 117 // Redirects caused by JavaScript or a meta refresh tag on the page. |
| 115 CLIENT_REDIRECT = 0x40000000, | 118 CLIENT_REDIRECT = 0x40000000, |
| 116 | 119 |
| 117 // Redirects sent from the server by HTTP headers. It might be nice to | 120 // Redirects sent from the server by HTTP headers. It might be nice to |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 // Return the qualifier | 159 // Return the qualifier |
| 157 static int32 GetQualifier(Type type) { | 160 static int32 GetQualifier(Type type) { |
| 158 return type & QUALIFIER_MASK; | 161 return type & QUALIFIER_MASK; |
| 159 } | 162 } |
| 160 | 163 |
| 161 // Return a string version of the core type values. | 164 // Return a string version of the core type values. |
| 162 static const char* CoreTransitionString(Type type); | 165 static const char* CoreTransitionString(Type type); |
| 163 }; | 166 }; |
| 164 | 167 |
| 165 #endif // CONTENT_COMMON_PAGE_TRANSITION_TYPES_H_ | 168 #endif // CONTENT_COMMON_PAGE_TRANSITION_TYPES_H_ |
| OLD | NEW |