| 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_PUBLIC_COMMON_PAGE_TRANSITION_TYPES_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_PAGE_TRANSITION_TYPES_H_ |
| 6 #define CONTENT_PUBLIC_COMMON_PAGE_TRANSITION_TYPES_H_ | 6 #define CONTENT_PUBLIC_COMMON_PAGE_TRANSITION_TYPES_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 | 10 |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 // Returns true if the given transition is a top-level frame transition, or | 142 // Returns true if the given transition is a top-level frame transition, or |
| 143 // false if the transition was for a subframe. | 143 // false if the transition was for a subframe. |
| 144 CONTENT_EXPORT bool PageTransitionIsMainFrame(PageTransition type); | 144 CONTENT_EXPORT bool PageTransitionIsMainFrame(PageTransition type); |
| 145 | 145 |
| 146 // Returns whether a transition involves a redirection | 146 // Returns whether a transition involves a redirection |
| 147 CONTENT_EXPORT bool PageTransitionIsRedirect(PageTransition type); | 147 CONTENT_EXPORT bool PageTransitionIsRedirect(PageTransition type); |
| 148 | 148 |
| 149 // Return the qualifier | 149 // Return the qualifier |
| 150 CONTENT_EXPORT int32 PageTransitionGetQualifier(PageTransition type); | 150 CONTENT_EXPORT int32 PageTransitionGetQualifier(PageTransition type); |
| 151 | 151 |
| 152 // Returns true if the transition can be triggered by the web instead of |
| 153 // through UI or similar. |
| 154 CONTENT_EXPORT bool PageTransitionIsWebTriggerable(PageTransition type); |
| 155 |
| 152 // Return a string version of the core type values. | 156 // Return a string version of the core type values. |
| 153 CONTENT_EXPORT const char* PageTransitionGetCoreTransitionString( | 157 CONTENT_EXPORT const char* PageTransitionGetCoreTransitionString( |
| 154 PageTransition type); | 158 PageTransition type); |
| 155 | 159 |
| 156 } // namespace content | 160 } // namespace content |
| 157 | 161 |
| 158 #endif // CONTENT_PUBLIC_COMMON_PAGE_TRANSITION_TYPES_H_ | 162 #endif // CONTENT_PUBLIC_COMMON_PAGE_TRANSITION_TYPES_H_ |
| OLD | NEW |