diff options
Diffstat (limited to 'chromium/ui/base/interaction/interaction_sequence.h')
-rw-r--r-- | chromium/ui/base/interaction/interaction_sequence.h | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/chromium/ui/base/interaction/interaction_sequence.h b/chromium/ui/base/interaction/interaction_sequence.h index 392f38e9cdb..05fb1c05eb9 100644 --- a/chromium/ui/base/interaction/interaction_sequence.h +++ b/chromium/ui/base/interaction/interaction_sequence.h @@ -74,7 +74,9 @@ class COMPONENT_EXPORT(UI_BASE) InteractionSequence { // Represents a custom event with a specific custom event type. You may // further specify a required element name or ID to filter down which // events you actually want to step on vs. ignore. - kCustomEvent + kCustomEvent, + // Update this if values are added to the enumeration. + kMaxValue = kCustomEvent }; // Details why a sequence was aborted. @@ -86,7 +88,9 @@ class COMPONENT_EXPORT(UI_BASE) InteractionSequence { // An element should have been visible at the start of a step but was not. kElementNotVisibleAtStartOfStep, // An element should have remained visible during a step but did not. - kElementHiddenDuringStep + kElementHiddenDuringStep, + // Update this if values are added to the enumeration. + kMaxValue = kElementHiddenDuringStep }; // Callback when a step in the sequence starts. If |element| is no longer @@ -408,6 +412,21 @@ class COMPONENT_EXPORT(UI_BASE) InteractionSequence { base::WeakPtrFactory<InteractionSequence> weak_factory_{this}; }; +COMPONENT_EXPORT(UI_BASE) +extern void PrintTo(InteractionSequence::StepType step_type, std::ostream* os); + +COMPONENT_EXPORT(UI_BASE) +extern void PrintTo(InteractionSequence::AbortedReason reason, + std::ostream* os); + +COMPONENT_EXPORT(UI_BASE) +extern std::ostream& operator<<(std::ostream& os, + InteractionSequence::StepType step_type); + +COMPONENT_EXPORT(UI_BASE) +extern std::ostream& operator<<(std::ostream& os, + InteractionSequence::AbortedReason reason); + } // namespace ui #endif // UI_BASE_INTERACTION_INTERACTION_SEQUENCE_H_ |