Skip to main content

rustenium_cdp_definitions/browser_protocol/input/
events.rs

1use serde::{Deserialize, Serialize};
2#[doc = "Emitted only when `Input.setInterceptDrags` is enabled. Use this data with `Input.dispatchDragEvent` to\nrestore normal drag and drop behavior.\n[dragIntercepted](https://chromedevtools.github.io/devtools-protocol/tot/Input/#event-dragIntercepted)"]
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct DragInterceptedParams {
5    #[serde(rename = "data")]
6    pub data: super::types::DragData,
7}
8#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
9pub enum DragInterceptedMethod {
10    #[serde(rename = "Input.dragIntercepted")]
11    DragIntercepted,
12}
13#[doc = "Emitted only when `Input.setInterceptDrags` is enabled. Use this data with `Input.dispatchDragEvent` to\nrestore normal drag and drop behavior.\n[dragIntercepted](https://chromedevtools.github.io/devtools-protocol/tot/Input/#event-dragIntercepted)"]
14#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
15pub struct DragIntercepted {
16    pub method: DragInterceptedMethod,
17    pub params: DragInterceptedParams,
18}
19impl DragIntercepted {
20    pub const IDENTIFIER: &'static str = "Input.dragIntercepted";
21    pub fn identifier(&self) -> &'static str {
22        Self::IDENTIFIER
23    }
24}
25group_enum ! (InputEvents { DragIntercepted (DragIntercepted) } + identifiable);