#include "third_party/blink/public/mojom/input/input_handler.mojom-shared.h"
#include <ostream>
#include <utility>
#include "base/strings/stringprintf.h"
#include "mojo/public/cpp/bindings/lib/validate_params.h"
#include "mojo/public/cpp/bindings/lib/validation_errors.h"
#include "mojo/public/cpp/bindings/lib/validation_util.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value.h"
#include "third_party/blink/public/mojom/input/input_handler.mojom-params-data.h"
namespace blink {
namespace mojom {
NOINLINE static const char* SelectionGranularityToStringHelper(SelectionGranularity value) { … }
std::string SelectionGranularityToString(SelectionGranularity value) { … }
std::ostream& operator<<(std::ostream& os, SelectionGranularity value) { … }
NOINLINE static const char* PanActionToStringHelper(PanAction value) { … }
std::string PanActionToString(PanAction value) { … }
std::ostream& operator<<(std::ostream& os, PanAction value) { … }
NOINLINE static const char* FocusStateToStringHelper(FocusState value) { … }
std::string FocusStateToString(FocusState value) { … }
std::ostream& operator<<(std::ostream& os, FocusState value) { … }
namespace internal {
bool KeyData_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
KeyData_Data::KeyData_Data()
: … { … }
bool PointerData_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PointerData_Data::PointerData_Data()
: … { … }
bool WheelData_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WheelData_Data::WheelData_Data()
: … { … }
bool MouseData_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MouseData_Data::MouseData_Data()
: … { … }
bool ScrollData_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ScrollData_Data::ScrollData_Data()
: … { … }
bool PinchBeginData_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PinchBeginData_Data::PinchBeginData_Data()
: … { … }
bool PinchUpdateData_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PinchUpdateData_Data::PinchUpdateData_Data()
: … { … }
bool PinchEndData_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PinchEndData_Data::PinchEndData_Data()
: … { … }
bool FlingData_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FlingData_Data::FlingData_Data()
: … { … }
bool TapData_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
TapData_Data::TapData_Data()
: … { … }
bool TapDownData_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
TapDownData_Data::TapDownData_Data()
: … { … }
bool GestureData_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
GestureData_Data::GestureData_Data()
: … { … }
bool TouchPoint_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
TouchPoint_Data::TouchPoint_Data()
: … { … }
bool TouchData_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
TouchData_Data::TouchData_Data()
: … { … }
bool Event_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
Event_Data::Event_Data()
: … { … }
bool DidOverscrollParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
DidOverscrollParams_Data::DidOverscrollParams_Data()
: … { … }
bool TouchActionOptional_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
TouchActionOptional_Data::TouchActionOptional_Data()
: … { … }
bool EditCommand_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
EditCommand_Data::EditCommand_Data()
: … { … }
bool SelectAroundCaretResult_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SelectAroundCaretResult_Data::SelectAroundCaretResult_Data()
: … { … }
bool WidgetInputHandlerHost_SetTouchActionFromMain_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WidgetInputHandlerHost_SetTouchActionFromMain_Params_Data::WidgetInputHandlerHost_SetTouchActionFromMain_Params_Data()
: … { … }
bool WidgetInputHandlerHost_SetPanAction_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WidgetInputHandlerHost_SetPanAction_Params_Data::WidgetInputHandlerHost_SetPanAction_Params_Data()
: … { … }
bool WidgetInputHandlerHost_DidOverscroll_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WidgetInputHandlerHost_DidOverscroll_Params_Data::WidgetInputHandlerHost_DidOverscroll_Params_Data()
: … { … }
bool WidgetInputHandlerHost_DidStartScrollingViewport_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WidgetInputHandlerHost_DidStartScrollingViewport_Params_Data::WidgetInputHandlerHost_DidStartScrollingViewport_Params_Data()
: … { … }
bool WidgetInputHandlerHost_ImeCancelComposition_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WidgetInputHandlerHost_ImeCancelComposition_Params_Data::WidgetInputHandlerHost_ImeCancelComposition_Params_Data()
: … { … }
bool WidgetInputHandlerHost_ImeCompositionRangeChanged_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WidgetInputHandlerHost_ImeCompositionRangeChanged_Params_Data::WidgetInputHandlerHost_ImeCompositionRangeChanged_Params_Data()
: … { … }
bool WidgetInputHandlerHost_SetMouseCapture_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WidgetInputHandlerHost_SetMouseCapture_Params_Data::WidgetInputHandlerHost_SetMouseCapture_Params_Data()
: … { … }
bool WidgetInputHandlerHost_SetAutoscrollSelectionActiveInMainFrame_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WidgetInputHandlerHost_SetAutoscrollSelectionActiveInMainFrame_Params_Data::WidgetInputHandlerHost_SetAutoscrollSelectionActiveInMainFrame_Params_Data()
: … { … }
bool WidgetInputHandlerHost_RequestMouseLock_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WidgetInputHandlerHost_RequestMouseLock_Params_Data::WidgetInputHandlerHost_RequestMouseLock_Params_Data()
: … { … }
bool WidgetInputHandlerHost_RequestMouseLock_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WidgetInputHandlerHost_RequestMouseLock_ResponseParams_Data::WidgetInputHandlerHost_RequestMouseLock_ResponseParams_Data()
: … { … }
bool FrameWidgetInputHandler_AddImeTextSpansToExistingText_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FrameWidgetInputHandler_AddImeTextSpansToExistingText_Params_Data::FrameWidgetInputHandler_AddImeTextSpansToExistingText_Params_Data()
: … { … }
bool FrameWidgetInputHandler_ClearImeTextSpansByType_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FrameWidgetInputHandler_ClearImeTextSpansByType_Params_Data::FrameWidgetInputHandler_ClearImeTextSpansByType_Params_Data()
: … { … }
bool FrameWidgetInputHandler_SetCompositionFromExistingText_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FrameWidgetInputHandler_SetCompositionFromExistingText_Params_Data::FrameWidgetInputHandler_SetCompositionFromExistingText_Params_Data()
: … { … }
bool FrameWidgetInputHandler_ExtendSelectionAndDelete_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FrameWidgetInputHandler_ExtendSelectionAndDelete_Params_Data::FrameWidgetInputHandler_ExtendSelectionAndDelete_Params_Data()
: … { … }
bool FrameWidgetInputHandler_ExtendSelectionAndReplace_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FrameWidgetInputHandler_ExtendSelectionAndReplace_Params_Data::FrameWidgetInputHandler_ExtendSelectionAndReplace_Params_Data()
: … { … }
bool FrameWidgetInputHandler_DeleteSurroundingText_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FrameWidgetInputHandler_DeleteSurroundingText_Params_Data::FrameWidgetInputHandler_DeleteSurroundingText_Params_Data()
: … { … }
bool FrameWidgetInputHandler_DeleteSurroundingTextInCodePoints_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FrameWidgetInputHandler_DeleteSurroundingTextInCodePoints_Params_Data::FrameWidgetInputHandler_DeleteSurroundingTextInCodePoints_Params_Data()
: … { … }
bool FrameWidgetInputHandler_SetEditableSelectionOffsets_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FrameWidgetInputHandler_SetEditableSelectionOffsets_Params_Data::FrameWidgetInputHandler_SetEditableSelectionOffsets_Params_Data()
: … { … }
bool FrameWidgetInputHandler_HandleStylusWritingGestureAction_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FrameWidgetInputHandler_HandleStylusWritingGestureAction_Params_Data::FrameWidgetInputHandler_HandleStylusWritingGestureAction_Params_Data()
: … { … }
bool FrameWidgetInputHandler_HandleStylusWritingGestureAction_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FrameWidgetInputHandler_HandleStylusWritingGestureAction_ResponseParams_Data::FrameWidgetInputHandler_HandleStylusWritingGestureAction_ResponseParams_Data()
: … { … }
bool FrameWidgetInputHandler_ExecuteEditCommand_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FrameWidgetInputHandler_ExecuteEditCommand_Params_Data::FrameWidgetInputHandler_ExecuteEditCommand_Params_Data()
: … { … }
bool FrameWidgetInputHandler_Undo_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FrameWidgetInputHandler_Undo_Params_Data::FrameWidgetInputHandler_Undo_Params_Data()
: … { … }
bool FrameWidgetInputHandler_Redo_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FrameWidgetInputHandler_Redo_Params_Data::FrameWidgetInputHandler_Redo_Params_Data()
: … { … }
bool FrameWidgetInputHandler_Cut_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FrameWidgetInputHandler_Cut_Params_Data::FrameWidgetInputHandler_Cut_Params_Data()
: … { … }
bool FrameWidgetInputHandler_Copy_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FrameWidgetInputHandler_Copy_Params_Data::FrameWidgetInputHandler_Copy_Params_Data()
: … { … }
bool FrameWidgetInputHandler_CopyToFindPboard_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FrameWidgetInputHandler_CopyToFindPboard_Params_Data::FrameWidgetInputHandler_CopyToFindPboard_Params_Data()
: … { … }
bool FrameWidgetInputHandler_CenterSelection_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FrameWidgetInputHandler_CenterSelection_Params_Data::FrameWidgetInputHandler_CenterSelection_Params_Data()
: … { … }
bool FrameWidgetInputHandler_Paste_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FrameWidgetInputHandler_Paste_Params_Data::FrameWidgetInputHandler_Paste_Params_Data()
: … { … }
bool FrameWidgetInputHandler_PasteAndMatchStyle_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FrameWidgetInputHandler_PasteAndMatchStyle_Params_Data::FrameWidgetInputHandler_PasteAndMatchStyle_Params_Data()
: … { … }
bool FrameWidgetInputHandler_Delete_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FrameWidgetInputHandler_Delete_Params_Data::FrameWidgetInputHandler_Delete_Params_Data()
: … { … }
bool FrameWidgetInputHandler_SelectAll_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FrameWidgetInputHandler_SelectAll_Params_Data::FrameWidgetInputHandler_SelectAll_Params_Data()
: … { … }
bool FrameWidgetInputHandler_CollapseSelection_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FrameWidgetInputHandler_CollapseSelection_Params_Data::FrameWidgetInputHandler_CollapseSelection_Params_Data()
: … { … }
bool FrameWidgetInputHandler_Replace_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FrameWidgetInputHandler_Replace_Params_Data::FrameWidgetInputHandler_Replace_Params_Data()
: … { … }
bool FrameWidgetInputHandler_ReplaceMisspelling_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FrameWidgetInputHandler_ReplaceMisspelling_Params_Data::FrameWidgetInputHandler_ReplaceMisspelling_Params_Data()
: … { … }
bool FrameWidgetInputHandler_SelectRange_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FrameWidgetInputHandler_SelectRange_Params_Data::FrameWidgetInputHandler_SelectRange_Params_Data()
: … { … }
bool FrameWidgetInputHandler_AdjustSelectionByCharacterOffset_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FrameWidgetInputHandler_AdjustSelectionByCharacterOffset_Params_Data::FrameWidgetInputHandler_AdjustSelectionByCharacterOffset_Params_Data()
: … { … }
bool FrameWidgetInputHandler_SelectAroundCaret_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FrameWidgetInputHandler_SelectAroundCaret_Params_Data::FrameWidgetInputHandler_SelectAroundCaret_Params_Data()
: … { … }
bool FrameWidgetInputHandler_SelectAroundCaret_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FrameWidgetInputHandler_SelectAroundCaret_ResponseParams_Data::FrameWidgetInputHandler_SelectAroundCaret_ResponseParams_Data()
: … { … }
bool FrameWidgetInputHandler_MoveRangeSelectionExtent_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FrameWidgetInputHandler_MoveRangeSelectionExtent_Params_Data::FrameWidgetInputHandler_MoveRangeSelectionExtent_Params_Data()
: … { … }
bool FrameWidgetInputHandler_ScrollFocusedEditableNodeIntoView_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FrameWidgetInputHandler_ScrollFocusedEditableNodeIntoView_Params_Data::FrameWidgetInputHandler_ScrollFocusedEditableNodeIntoView_Params_Data()
: … { … }
bool FrameWidgetInputHandler_WaitForPageScaleAnimationForTesting_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FrameWidgetInputHandler_WaitForPageScaleAnimationForTesting_Params_Data::FrameWidgetInputHandler_WaitForPageScaleAnimationForTesting_Params_Data()
: … { … }
bool FrameWidgetInputHandler_WaitForPageScaleAnimationForTesting_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FrameWidgetInputHandler_WaitForPageScaleAnimationForTesting_ResponseParams_Data::FrameWidgetInputHandler_WaitForPageScaleAnimationForTesting_ResponseParams_Data()
: … { … }
bool FrameWidgetInputHandler_MoveCaret_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FrameWidgetInputHandler_MoveCaret_Params_Data::FrameWidgetInputHandler_MoveCaret_Params_Data()
: … { … }
bool WidgetInputHandler_SetFocus_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WidgetInputHandler_SetFocus_Params_Data::WidgetInputHandler_SetFocus_Params_Data()
: … { … }
bool WidgetInputHandler_MouseCaptureLost_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WidgetInputHandler_MouseCaptureLost_Params_Data::WidgetInputHandler_MouseCaptureLost_Params_Data()
: … { … }
bool WidgetInputHandler_SetEditCommandsForNextKeyEvent_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WidgetInputHandler_SetEditCommandsForNextKeyEvent_Params_Data::WidgetInputHandler_SetEditCommandsForNextKeyEvent_Params_Data()
: … { … }
bool WidgetInputHandler_CursorVisibilityChanged_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WidgetInputHandler_CursorVisibilityChanged_Params_Data::WidgetInputHandler_CursorVisibilityChanged_Params_Data()
: … { … }
bool WidgetInputHandler_ImeSetComposition_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WidgetInputHandler_ImeSetComposition_Params_Data::WidgetInputHandler_ImeSetComposition_Params_Data()
: … { … }
bool WidgetInputHandler_ImeSetComposition_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WidgetInputHandler_ImeSetComposition_ResponseParams_Data::WidgetInputHandler_ImeSetComposition_ResponseParams_Data()
: … { … }
bool WidgetInputHandler_ImeCommitText_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WidgetInputHandler_ImeCommitText_Params_Data::WidgetInputHandler_ImeCommitText_Params_Data()
: … { … }
bool WidgetInputHandler_ImeCommitText_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WidgetInputHandler_ImeCommitText_ResponseParams_Data::WidgetInputHandler_ImeCommitText_ResponseParams_Data()
: … { … }
bool WidgetInputHandler_ImeFinishComposingText_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WidgetInputHandler_ImeFinishComposingText_Params_Data::WidgetInputHandler_ImeFinishComposingText_Params_Data()
: … { … }
bool WidgetInputHandler_RequestTextInputStateUpdate_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WidgetInputHandler_RequestTextInputStateUpdate_Params_Data::WidgetInputHandler_RequestTextInputStateUpdate_Params_Data()
: … { … }
bool WidgetInputHandler_RequestCompositionUpdates_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WidgetInputHandler_RequestCompositionUpdates_Params_Data::WidgetInputHandler_RequestCompositionUpdates_Params_Data()
: … { … }
bool WidgetInputHandler_DispatchEvent_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WidgetInputHandler_DispatchEvent_Params_Data::WidgetInputHandler_DispatchEvent_Params_Data()
: … { … }
bool WidgetInputHandler_DispatchEvent_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WidgetInputHandler_DispatchEvent_ResponseParams_Data::WidgetInputHandler_DispatchEvent_ResponseParams_Data()
: … { … }
bool WidgetInputHandler_DispatchNonBlockingEvent_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WidgetInputHandler_DispatchNonBlockingEvent_Params_Data::WidgetInputHandler_DispatchNonBlockingEvent_Params_Data()
: … { … }
bool WidgetInputHandler_WaitForInputProcessed_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WidgetInputHandler_WaitForInputProcessed_Params_Data::WidgetInputHandler_WaitForInputProcessed_Params_Data()
: … { … }
bool WidgetInputHandler_WaitForInputProcessed_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WidgetInputHandler_WaitForInputProcessed_ResponseParams_Data::WidgetInputHandler_WaitForInputProcessed_ResponseParams_Data()
: … { … }
bool WidgetInputHandler_GetFrameWidgetInputHandler_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WidgetInputHandler_GetFrameWidgetInputHandler_Params_Data::WidgetInputHandler_GetFrameWidgetInputHandler_Params_Data()
: … { … }
bool WidgetInputHandler_UpdateBrowserControlsState_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WidgetInputHandler_UpdateBrowserControlsState_Params_Data::WidgetInputHandler_UpdateBrowserControlsState_Params_Data()
: … { … }
}
}
}
namespace perfetto {
void TraceFormatTraits<::blink::mojom::SelectionGranularity>::WriteIntoTrace(
perfetto::TracedValue context, ::blink::mojom::SelectionGranularity value) { … }
}
namespace perfetto {
void TraceFormatTraits<::blink::mojom::PanAction>::WriteIntoTrace(
perfetto::TracedValue context, ::blink::mojom::PanAction value) { … }
}
namespace perfetto {
void TraceFormatTraits<::blink::mojom::FocusState>::WriteIntoTrace(
perfetto::TracedValue context, ::blink::mojom::FocusState value) { … }
}