| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 used the address bar to trigger this navigation. | 108 // User used the address bar to trigger this navigation. |
| 109 FROM_ADDRESS_BAR = 0x02000000, | 109 FROM_ADDRESS_BAR = 0x02000000, |
| 110 | 110 |
| 111 // User is navigating to the home page. |
| 112 HOME_PAGE = 0x04000000, |
| 113 |
| 111 // The beginning of a navigation chain. | 114 // The beginning of a navigation chain. |
| 112 CHAIN_START = 0x10000000, | 115 CHAIN_START = 0x10000000, |
| 113 | 116 |
| 114 // The last transition in a redirect chain. | 117 // The last transition in a redirect chain. |
| 115 CHAIN_END = 0x20000000, | 118 CHAIN_END = 0x20000000, |
| 116 | 119 |
| 117 // Redirects caused by JavaScript or a meta refresh tag on the page. | 120 // Redirects caused by JavaScript or a meta refresh tag on the page. |
| 118 CLIENT_REDIRECT = 0x40000000, | 121 CLIENT_REDIRECT = 0x40000000, |
| 119 | 122 |
| 120 // Redirects sent from the server by HTTP headers. It might be nice to | 123 // 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... |
| 159 // Return the qualifier | 162 // Return the qualifier |
| 160 static int32 GetQualifier(Type type) { | 163 static int32 GetQualifier(Type type) { |
| 161 return type & QUALIFIER_MASK; | 164 return type & QUALIFIER_MASK; |
| 162 } | 165 } |
| 163 | 166 |
| 164 // Return a string version of the core type values. | 167 // Return a string version of the core type values. |
| 165 static const char* CoreTransitionString(Type type); | 168 static const char* CoreTransitionString(Type type); |
| 166 }; | 169 }; |
| 167 | 170 |
| 168 #endif // CONTENT_COMMON_PAGE_TRANSITION_TYPES_H_ | 171 #endif // CONTENT_COMMON_PAGE_TRANSITION_TYPES_H_ |
| OLD | NEW |