| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 COMPONENTS_ARC_INTENT_HELPER_PAGE_TRANSITION_UTIL_H_ | 5 #ifndef COMPONENTS_ARC_INTENT_HELPER_PAGE_TRANSITION_UTIL_H_ |
| 6 #define COMPONENTS_ARC_INTENT_HELPER_PAGE_TRANSITION_UTIL_H_ | 6 #define COMPONENTS_ARC_INTENT_HELPER_PAGE_TRANSITION_UTIL_H_ |
| 7 | 7 |
| 8 #include "ui/base/page_transition_types.h" | 8 #include "ui/base/page_transition_types.h" |
| 9 | 9 |
| 10 namespace arc { | 10 namespace arc { |
| 11 | 11 |
| 12 // Returns true if ARC should ignore the navigation with the |page_transition|. | 12 // Returns true if ARC should ignore the navigation with the |page_transition|. |
| 13 bool ShouldIgnoreNavigation(ui::PageTransition page_transition, | 13 bool ShouldIgnoreNavigation(ui::PageTransition page_transition, |
| 14 bool allow_form_submit, | 14 bool allow_form_submit, |
| 15 bool allow_client_redirect); | 15 bool allow_client_redirect); |
| 16 | 16 |
| 17 ui::PageTransition MaskOutPageTransitionForTesting( | 17 // Removes |mask| bits from |page_transition|. |
| 18 ui::PageTransition page_transition, | 18 // TODO(djacobo): Move this to ui/base/page_transition_types.cc. |
| 19 ui::PageTransition mask); | 19 ui::PageTransition MaskOutPageTransition(ui::PageTransition page_transition, |
| 20 ui::PageTransition mask); |
| 20 | 21 |
| 21 } // namespace arc | 22 } // namespace arc |
| 22 | 23 |
| 23 #endif // COMPONENTS_ARC_INTENT_HELPER_PAGE_TRANSITION_UTIL_H_ | 24 #endif // COMPONENTS_ARC_INTENT_HELPER_PAGE_TRANSITION_UTIL_H_ |
| OLD | NEW |