
    +g?                       S SK Jr  SSKJrJr  S SKJr  S SKrS SKrSSK	J
r
  SSK	Jr  SSK	Jr  \ " S	 S
5      5       r\ " S S5      5       r\ " S S5      5       r\ " S S5      5       r " S S\R"                  5      r\ " S S5      5       r\ " S S5      5       r " S S\R"                  5      r\ " S S5      5       r\ " S S5      5       r\ " S S5      5       r\ " S S 5      5       r\ " S! S"5      5       r " S# S$\R"                  5      r " S% S&\R"                  5      r\ " S' S(5      5       r " S) S*\R"                  5      rSRS+ jrSSS, jr SSS- jr!SSS. jr"    STS/ jr# SU   SVS0 jjr$    SWS1 jr% SU   SXS2 jjr&          SY                             SZS3 jjr'    S[S4 jr(SSS5 jr)    S\S6 jr*    S]S7 jr+ SU     S^S8 jjr,  S_     S`S9 jjr-    SaS: jr.   Sb       ScS; jjr/    SdS< jr0 SU       SeS= jjr1      SfS> jr2 SU       SgS? jjr3      ShS@ jr4      SiSA jr5SSSB jr6    SjSC jr7    SkSD jr8    SlSE jr9 SU     SmSF jjr:   Sb         SnSG jjr; SU   SoSH jjr<    SpSI jr=      SqSJ jr>    SrSK jr?    SsSL jr@   Sb         StSM jjrA    STSN jrB\" SO5      \ " SP SQ5      5       5       rCg)u    )annotations   )event_classT_JSON_DICT)	dataclassN)dom)network)pagec                  D    \ rS rSr% SrS\S'   S\S'   S r\S 5       rS	r	g
)ScreenOrientation   z
Screen orientation.
strtype_intanglec                V    [        5       nU R                  US'   U R                  US'   U$ )Ntyper   )dictr   r   selfjsons     y/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/selenium/webdriver/common/devtools/v132/emulation.pyto_jsonScreenOrientation.to_json   s(    vzzV

W    c                @    U " [        US   5      [        US   5      S9$ )Nr   r   )r   r   r   r   clsr   s     r   	from_jsonScreenOrientation.from_json"   s'    d6l#d7m$
 	
r    N
__name__
__module____qualname____firstlineno____doc____annotations__r   classmethodr    __static_attributes__r"   r   r   r   r      s.     J J 
 
r   r   c                  J    \ rS rSr% S\S'   S\S'   S\S'   S r\S 5       rS	rg
)DisplayFeature*   r   orientationr   offsetmask_lengthc                t    [        5       nU R                  US'   U R                  US'   U R                  US'   U$ )Nr/   r0   
maskLength)r   r/   r0   r1   r   s     r   r   DisplayFeature.to_json8   s;    v"..]X!--\r   c                Z    U " [        US   5      [        US   5      [        US   5      S9$ )Nr/   r0   r3   )r/   r0   r1   r   r   s     r   r    DisplayFeature.from_json?   s5    D/0tH~&D./
 	
r   r"   N	r$   r%   r&   r'   r)   r   r*   r    r+   r"   r   r   r-   r-   *   s2      K
  
 
r   r-   c                  6    \ rS rSr% S\S'   S r\S 5       rSrg)DevicePostureH   r   r   c                8    [        5       nU R                  US'   U$ )Nr   )r   r   r   s     r   r   DevicePosture.to_jsonM   s    vzzVr   c                &    U " [        US   5      S9$ )Nr   )r   r   r   s     r   r    DevicePosture.from_jsonR   s    d6l#
 	
r   r"   Nr7   r"   r   r   r9   r9   H   s"     J
 
 
r   r9   c                  @    \ rS rSr% S\S'   S\S'   S r\S 5       rSrg)	MediaFeatureY   r   namevaluec                V    [        5       nU R                  US'   U R                  US'   U$ )NrC   rD   )r   rC   rD   r   s     r   r   MediaFeature.to_json_   s(    vyyV

Wr   c                @    U " [        US   5      [        US   5      S9$ )NrC   rD   )rC   rD   r>   r   s     r   r    MediaFeature.from_jsone   s'    T&\"d7m$
 	
r   r"   Nr7   r"   r   r   rA   rA   Y   s%    
IJ 
 
r   rA   c                  :    \ rS rSrSrSrSrSrS r\	S 5       r
Srg	)
VirtualTimePolicym   a+  
advance: If the scheduler runs out of immediate work, the virtual time base may fast forward to
allow the next delayed task (if any) to run; pause: The virtual time base may not advance;
pauseIfNetworkFetchesPending: The virtual time base may not advance if there are any pending
resource fetches.
advancepausepauseIfNetworkFetchesPendingc                    U R                   $ NrD   r   s    r   r   VirtualTimePolicy.to_jsonx       zzr   c                    U " U5      $ rP   r"   r   s     r   r    VirtualTimePolicy.from_json{       4yr   r"   N)r$   r%   r&   r'   r(   ADVANCEPAUSE PAUSE_IF_NETWORK_FETCHES_PENDINGr   r*   r    r+   r"   r   r   rJ   rJ   m   s2     GE'E$  r   rJ   c                  D    \ rS rSr% SrS\S'   S\S'   S r\S 5       rSr	g	)
UserAgentBrandVersion   z`
Used to specify User Agent Client Hints to emulate. See https://wicg.github.io/ua-client-hints
r   brandversionc                V    [        5       nU R                  US'   U R                  US'   U$ )Nr^   r_   )r   r^   r_   r   s     r   r   UserAgentBrandVersion.to_json   s(    v

W,,Yr   c                @    U " [        US   5      [        US   5      S9$ )Nr^   r_   )r^   r_   r>   r   s     r   r    UserAgentBrandVersion.from_json   s'    d7m$Y(
 	
r   r"   Nr#   r"   r   r   r\   r\      s,     JL 
 
r   r\   c                      \ rS rSr% SrS\S'   S\S'   S\S'   S\S'   S\S	'   S
rS\S'   S
rS\S'   S
rS\S'   S
r	S\S'   S
r
S\S'   S r\S 5       rSrg
)UserAgentMetadata   z
Used to specify User Agent Client Hints to emulate. See https://wicg.github.io/ua-client-hints
Missing optional values will be filled in by the target with what it would normally use.
r   platformplatform_versionarchitecturemodelboolmobileNz3typing.Optional[typing.List[UserAgentBrandVersion]]brandsfull_version_listtyping.Optional[str]full_versionbitnesstyping.Optional[bool]wow64c                T   [        5       nU R                  US'   U R                  US'   U R                  US'   U R                  US'   U R
                  US'   U R                  b-  U R                   Vs/ s H  o"R                  5       PM     snUS'   U R                  b-  U R                   Vs/ s H  o"R                  5       PM     snUS'   U R                  b  U R                  US'   U R                  b  U R                  US	'   U R                  b  U R                  US
'   U$ s  snf s  snf )Nrg   platformVersionri   rj   rl   rm   fullVersionListfullVersionrq   rs   )r   rg   rh   ri   rj   rl   rm   r   rn   rp   rq   rs   )r   r   is      r   r   UserAgentMetadata.to_json   s   v==Z"&"7"7#00^

WX;;"37;;?;aiik;?DN!!-<@<R<R&S<Rqyy{<R&SD"#("&"3"3D<<#"llDO::! JJDM @&Ss   1D +D%c                   U " [        US   5      [        US   5      [        US   5      [        US   5      [        US   5      SU;   a)  US    Vs/ s H  n[        R                  U5      PM     snOS SU;   a)  US    Vs/ s H  n[        R                  U5      PM     snOS SU;   a  [        US   5      OS S	U;   a  [        US	   5      OS S
U;   a  [        US
   5      S9
$ S S9
$ s  snf s  snf )Nrg   ru   ri   rj   rl   rm   rv   rw   rq   rs   )
rg   rh   ri   rj   rl   rm   rn   rp   rq   rs   )r   rk   r\   r    )r   r   rx   s      r   r    UserAgentMetadata.from_json   s   j)* &7!89T.12d7m$X'S[_cScXO1)33A6Oimgx  }A  hA4PaKbcKba4>>qAKbc  GK5Bd5JT-01PT,5,=CY(4)0D$tG}%
 	
 ?C
 	
 Pcs   C(C-r"   )r$   r%   r&   r'   r(   r)   rm   rn   rp   rq   rs   r   r*   r    r+   r"   r   r   re   re      s}     MJL CGF?F NRJQ)-L&-$(G!(#'E '& 
 
r   re   c                  N    \ rS rSrSrSrSrSrSrSr	Sr
S	rS
rS r\S 5       rSrg)
SensorType   zn
Used to specify sensor types to emulate.
See https://w3c.github.io/sensors/#automation for more information.
zabsolute-orientationaccelerometerzambient-lightgravity	gyroscopezlinear-accelerationmagnetometerzrelative-orientationc                    U R                   $ rP   rQ   rR   s    r   r   SensorType.to_json   rT   r   c                    U " U5      $ rP   r"   r   s     r   r    SensorType.from_json   rW   r   r"   N)r$   r%   r&   r'   r(   ABSOLUTE_ORIENTATIONACCELEROMETERAMBIENT_LIGHTGRAVITY	GYROSCOPELINEAR_ACCELERATIONMAGNETOMETERRELATIVE_ORIENTATIONr   r*   r    r+   r"   r   r   r}   r}      sM     2#M#MGI/!L1  r   r}   c                  V    \ rS rSr% SrS\S'   SrS\S'   SrS\S'   S r\	S	 5       r
S
rg)SensorMetadata   Nrr   	availabletyping.Optional[float]minimum_frequencymaximum_frequencyc                    [        5       nU R                  b  U R                  US'   U R                  b  U R                  US'   U R                  b  U R                  US'   U$ )Nr   minimumFrequencymaximumFrequency)r   r   r   r   r   s     r   r   SensorMetadata.to_json   s`    v>>% $D!!-'+'='=D#$!!-'+'='=D#$r   c                    U " SU;   a  [        US   5      OS SU;   a  [        US   5      OS SU;   a  [        US   5      S9$ S S9$ )Nr   r   r   )r   r   r   )rk   floatr   s     r   r    SensorMetadata.from_json   se    1<1Dd4,-$ASW[A[eD);$<=aeASW[A[eD);$<=
 	
 bf
 	
r   r"   )r$   r%   r&   r'   r   r)   r   r   r   r*   r    r+   r"   r   r   r   r      s>    '+I$+04-404-4 
 
r   r   c                  6    \ rS rSr% S\S'   S r\S 5       rSrg)SensorReadingSinglei  r   rD   c                8    [        5       nU R                  US'   U$ )NrD   )r   rD   r   s     r   r   SensorReadingSingle.to_json  s    v

Wr   c                &    U " [        US   5      S9$ )NrD   rQ   r   r   s     r   r    SensorReadingSingle.from_json  s    W&
 	
r   r"   Nr7   r"   r   r   r   r     s     L
 
 
r   r   c                  J    \ rS rSr% S\S'   S\S'   S\S'   S r\S 5       rSrg	)
SensorReadingXYZi  r   xyzc                t    [        5       nU R                  US'   U R                  US'   U R                  US'   U$ )Nr   r   r   )r   r   r   r   r   s     r   r   SensorReadingXYZ.to_json  s5    vFFS	FFS	FFS	r   c                Z    U " [        US   5      [        US   5      [        US   5      S9$ )Nr   r   r   )r   r   r   r   r   s     r   r    SensorReadingXYZ.from_json&  s3    DIDIDI
 	
r   r"   Nr7   r"   r   r   r   r     s*    HHH 
 
r   r   c                  T    \ rS rSr% S\S'   S\S'   S\S'   S\S'   S r\S 5       rS	rg
)SensorReadingQuaternioni/  r   r   r   r   wc                    [        5       nU R                  US'   U R                  US'   U R                  US'   U R                  US'   U$ )Nr   r   r   r   )r   r   r   r   r   r   s     r   r   SensorReadingQuaternion.to_json9  sB    vFFS	FFS	FFS	FFS	r   c           	     t    U " [        US   5      [        US   5      [        US   5      [        US   5      S9$ )Nr   r   r   r   )r   r   r   r   r   r   s     r   r    !SensorReadingQuaternion.from_jsonA  s?    DIDIDIDI	
 	
r   r"   Nr7   r"   r   r   r   r   /  s/    HHHH 
 
r   r   c                  V    \ rS rSr% SrS\S'   SrS\S'   SrS\S'   S	 r\	S
 5       r
Srg)SensorReadingiK  Nz$typing.Optional[SensorReadingSingle]singlez!typing.Optional[SensorReadingXYZ]xyzz(typing.Optional[SensorReadingQuaternion]
quaternionc                   [        5       nU R                  b  U R                  R                  5       US'   U R                  b  U R                  R                  5       US'   U R                  b  U R                  R                  5       US'   U$ )Nr   r   r   )r   r   r   r   r   r   s     r   r   SensorReading.to_jsonS  so    v;;"![[002DN88((**,DK??&!%!8!8!:Dr   c                    U " SU;   a  [         R                  US   5      OS SU;   a  [        R                  US   5      OS SU;   a  [        R                  US   5      S9$ S S9$ )Nr   r   r   )r   r   r   )r   r    r   r   r   s     r   r    SensorReading.from_json]  su    DLPTDT&00h@Z^;@D= **4;7dP\`dPd.88l9KL
 	
 ko
 	
r   r"   )r$   r%   r&   r'   r   r)   r   r   r   r*   r    r+   r"   r   r   r   r   K  s<    37F07-1C	*1;?J8? 
 
r   r   c                  .    \ rS rSrSrS r\S 5       rSrg)PressureSourceif  cpuc                    U R                   $ rP   rQ   rR   s    r   r   PressureSource.to_jsoni  rT   r   c                    U " U5      $ rP   r"   r   s     r   r    PressureSource.from_jsonl  rW   r   r"   N)	r$   r%   r&   r'   CPUr   r*   r    r+   r"   r   r   r   r   f  s     
C  r   r   c                  :    \ rS rSrSrSrSrSrS r\	S 5       r
Srg	)
PressureStateiq  nominalfairseriouscriticalc                    U R                   $ rP   rQ   rR   s    r   r   PressureState.to_jsonw  rT   r   c                    U " U5      $ rP   r"   r   s     r   r    PressureState.from_jsonz  rW   r   r"   N)r$   r%   r&   r'   NOMINALFAIRSERIOUSCRITICALr   r*   r    r+   r"   r   r   r   r   q  s/    GDGH  r   r   c                  :    \ rS rSr% SrS\S'   S r\S 5       rSr	g)PressureMetadatai  Nrr   r   c                R    [        5       nU R                  b  U R                  US'   U$ )Nr   )r   r   r   s     r   r   PressureMetadata.to_json  s&    v>>% $Dr   c                :    U " SU;   a  [        US   5      S9$ S S9$ )Nr   )r   rk   r   s     r   r    PressureMetadata.from_json  s0    1<1Dd4,-
 	
JN
 	
r   r"   )
r$   r%   r&   r'   r   r)   r   r*   r    r+   r"   r   r   r   r     s&    '+I$+ 
 
r   r   c                  6    \ rS rSrSrSrSrS r\S 5       r	Sr
g)	DisabledImageTypei  z+
Enum of image types that can be disabled.
avifwebpc                    U R                   $ rP   rQ   rR   s    r   r   DisabledImageType.to_json  rT   r   c                    U " U5      $ rP   r"   r   s     r   r    DisabledImageType.from_json  rW   r   r"   N)r$   r%   r&   r'   r(   AVIFWEBPr   r*   r    r+   r"   r   r   r   r     s,     DD  r   r   c               #  6   #    SS0n U v n[        US   5      $ 7f)zR
Tells whether emulation is supported.

:returns: True if emulation is supported.
methodzEmulation.canEmulateresultr   cmd_dictr   s     r   can_emulater     s,      	(H >DXs   c               #     #    SS0n U v ng7f)z'
Clears the overridden device metrics.
r   z$Emulation.clearDeviceMetricsOverrideNr"   r   s     r   clear_device_metrics_overrider     s     
 	8H >D   
c               #     #    SS0n U v ng7f)z7
Clears the overridden Geolocation Position and Error.
r   z"Emulation.clearGeolocationOverrideNr"   r   s     r   clear_geolocation_overrider     s     
 	6H >Dr   c               #     #    SS0n U v ng7f)zO
Requests that page scale factor is reset to initial values.

**EXPERIMENTAL**
r   zEmulation.resetPageScaleFactorNr"   r   s     r   reset_page_scale_factorr     s      	2H >Dr   c              #  :   #    [        5       nXS'   SUS.nUv ng7f)z
Enables or disables simulating a focused and active page.

**EXPERIMENTAL**

:param enabled: Whether to enable to disable focus emulation.
enabledz"Emulation.setFocusEmulationEnabledr   paramsNr   r   r   r   r   s       r   set_focus_emulation_enabledr     s,      &F96H >D   c              #  @   #    [        5       nU b  XS'   SUS.nUv ng7f)z
Automatically render all web contents using a dark theme.

**EXPERIMENTAL**

:param enabled: *(Optional)* Whether to enable or disable automatic dark mode. If not specified, any existing override will be cleared.
Nr   z!Emulation.setAutoDarkModeOverrider   r   r   s       r   set_auto_dark_mode_overrider     s2      &F#y5H >D   c              #  :   #    [        5       nXS'   SUS.nUv ng7f)z
Enables CPU throttling to emulate slow CPUs.

:param rate: Throttling rate as a slowdown factor (1 is no throttle, 2 is 2x slowdown, etc).
ratezEmulation.setCPUThrottlingRater   Nr   )r   r   r   r   s       r   set_cpu_throttling_rater     s+      &F6N2H >Dr   c              #  ^   #    [        5       nU b  U R                  5       US'   SUS.nUv ng7f)a   
Sets or clears an override of the default background color of the frame. This override is used
if the content does not specify one.

:param color: *(Optional)* RGBA of the default background color. If not specified, any existing override will be cleared.
Ncolorz+Emulation.setDefaultBackgroundColorOverrider   r   r   )r   r   r   r   s       r   %set_default_background_color_overrider    s9      &F--/w?H >Ds   +-c              #  V  #    [        5       nXS'   XS'   X.S'   X>S'   Ub  XNS'   Ub  X^S'   Ub  XnS'   Ub  X~S	'   Ub  XS
'   U	b  XS'   U
b  U
R                  5       US'   Ub  UR                  5       US'   Ub  UR                  5       US'   Ub  UR                  5       US'   SUS.nUv ng7f)a  
Overrides the values of device screen dimensions (window.screen.width, window.screen.height,
window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media
query results).

:param width: Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override.
:param height: Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override.
:param device_scale_factor: Overriding device scale factor value. 0 disables the override.
:param mobile: Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text autosizing and more.
:param scale: **(EXPERIMENTAL)** *(Optional)* Scale to apply to resulting view image.
:param screen_width: **(EXPERIMENTAL)** *(Optional)* Overriding screen width value in pixels (minimum 0, maximum 10000000).
:param screen_height: **(EXPERIMENTAL)** *(Optional)* Overriding screen height value in pixels (minimum 0, maximum 10000000).
:param position_x: **(EXPERIMENTAL)** *(Optional)* Overriding view X position on screen in pixels (minimum 0, maximum 10000000).
:param position_y: **(EXPERIMENTAL)** *(Optional)* Overriding view Y position on screen in pixels (minimum 0, maximum 10000000).
:param dont_set_visible_size: **(EXPERIMENTAL)** *(Optional)* Do not set visible view size, rely upon explicit setVisibleSize call.
:param screen_orientation: *(Optional)* Screen orientation override.
:param viewport: **(EXPERIMENTAL)** *(Optional)* If set, the visible area of the page will be overridden to this viewport. This viewport change is not observed by the page, e.g. viewport-relative elements do not change positions.
:param display_feature: **(EXPERIMENTAL)** *(Optional)* If set, the display feature of a multi-segment screen. If not set, multi-segment support is turned-off.
:param device_posture: **(EXPERIMENTAL)** *(Optional)* If set, the posture of a foldable device. If not set the posture is set to continuous. Deprecated, use Emulation.setDevicePostureOverride.
widthheightdeviceScaleFactorrl   NscalescreenWidthscreenHeight	positionX	positionYdontSetVisibleSizescreenOrientationviewportdisplayFeaturedevicePosturez"Emulation.setDeviceMetricsOverrider   r  )r  r  device_scale_factorrl   r  screen_widthscreen_height
position_x
position_ydont_set_visible_sizescreen_orientationr  display_featuredevice_posturer   r   r   s                    r   set_device_metrics_overrider    s     H &F7O8"58w ,} !.~({({('<#$%&8&@&@&B"#%--/z"#2#:#:#< !"0"8"8":6H >Ds   B'B)c              #  X   #    [        5       nU R                  5       US'   SUS.nUv ng7f)z
Start reporting the given posture value to the Device Posture API.
This override can also be set in setDeviceMetricsOverride().

**EXPERIMENTAL**

:param posture:
posturez"Emulation.setDevicePostureOverrider   Nr  )r  r   r   r   s       r   set_device_posture_overrider  [  s5      &F)F96H >Ds   (*c               #     #    SS0n U v ng7f)z
Clears a device posture override set with either setDeviceMetricsOverride()
or setDevicePostureOverride() and starts using posture information from the
platform again.
Does nothing if no override is set.

**EXPERIMENTAL**
r   z$Emulation.clearDevicePostureOverrideNr"   r   s     r   clear_device_posture_overrider  o  s      	8H >Dr   c              #  :   #    [        5       nXS'   SUS.nUv ng7f)zP


**EXPERIMENTAL**

:param hidden: Whether scrollbars should be always hidden.
hiddenzEmulation.setScrollbarsHiddenr   Nr   )r!  r   r   r   s       r   set_scrollbars_hiddenr"  ~  s,      &F81H >Dr   c              #  :   #    [        5       nXS'   SUS.nUv ng7f)zW


**EXPERIMENTAL**

:param disabled: Whether document.coookie API should be disabled.
disabledz#Emulation.setDocumentCookieDisabledr   Nr   )r$  r   r   r   s       r   set_document_cookie_disabledr%    s,      &F!:7H >Dr   c              #  H   #    [        5       nXS'   Ub  XS'   SUS.nUv ng7f)z


**EXPERIMENTAL**

:param enabled: Whether touch emulation based on mouse input should be enabled.
:param configuration: *(Optional)* Touch/gesture events configuration. Default: current platform.
r   Nconfigurationz$Emulation.setEmitTouchEventsForMouser   r   )r   r'  r   r   r   s        r   set_emit_touch_events_for_mouser(    s:      &F9 "/8H >D    "c              #     #    [        5       nU b  XS'   Ub#  U Vs/ s H  o3R                  5       PM     snUS'   SUS.nUv ngs  snf 7f)z
Emulates the given media type or media feature for CSS media queries.

:param media: *(Optional)* Media type to emulate. Empty string disables the override.
:param features: *(Optional)* Media features to emulate.
NmediafeatureszEmulation.setEmulatedMediar   r  )r+  r,  r   rx   r   r   s         r   set_emulated_mediar-    sY      &Fw3;<8aiik8<z.H >D =s   A	AA	c              #  :   #    [        5       nXS'   SUS.nUv ng7f)z
Emulates the given vision deficiency.

:param type_: Vision deficiency to emulate. Order: best-effort emulations come first, followed by any physiologically accurate emulations for medically recognized color vision deficiencies.
r   z%Emulation.setEmulatedVisionDeficiencyr   Nr   r   r   r   r   s       r   set_emulated_vision_deficiencyr0    s+      &F6N9H >Dr   c              #  \   #    [        5       nU b  XS'   Ub  XS'   Ub  X#S'   SUS.nUv ng7f)z
Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position
unavailable.

:param latitude: *(Optional)* Mock latitude
:param longitude: *(Optional)* Mock longitude
:param accuracy: *(Optional)* Mock accuracy
Nlatitude	longitudeaccuracyz Emulation.setGeolocationOverrider   r   )r2  r3  r4  r   r   r   s         r   set_geolocation_overrider5    sN      &F%z'{%z4H >Ds   *,c              #  r   #    [        5       nU R                  5       US'   SUS.nUv n[        US   5      $ 7f)z.


**EXPERIMENTAL**

:param type_:
:returns: 
r   z(Emulation.getOverriddenSensorInformationr   requestedSamplingFrequencyr   r   r   r/  s       r   !get_overridden_sensor_informationr9    sD      &F]]_F6N<H >D2344s   57c              #     #    [        5       nXS'   UR                  5       US'   Ub  UR                  5       US'   SUS.nUv ng7f)a  
Overrides a platform sensor of a given type. If ``enabled`` is true, calls to
Sensor.start() will use a virtual sensor as backend rather than fetching
data from a real hardware sensor. Otherwise, existing virtual
sensor-backend Sensor objects will fire an error event and new calls to
Sensor.start() will attempt to use a real sensor instead.

**EXPERIMENTAL**

:param enabled:
:param type_:
:param metadata: *(Optional)*
r   r   Nmetadataz"Emulation.setSensorOverrideEnabledr   r  )r   r   r;  r   r   r   s         r   set_sensor_override_enabledr<    sT     $ &F9]]_F6N%--/z6H >D   AAc              #  ~   #    [        5       nU R                  5       US'   UR                  5       US'   SUS.nUv ng7f)z
Updates the sensor readings reported by a sensor type previously overridden
by setSensorOverrideEnabled.

**EXPERIMENTAL**

:param type_:
:param reading:
r   readingz#Emulation.setSensorOverrideReadingsr   Nr  )r   r?  r   r   r   s        r   set_sensor_override_readingsr@  0  sD      &F]]_F6N)F97H >D   ;=c              #     #    [        5       nXS'   UR                  5       US'   Ub  UR                  5       US'   SUS.nUv ng7f)a=  
Overrides a pressure source of a given type, as used by the Compute
Pressure API, so that updates to PressureObserver.observe() are provided
via setPressureStateOverride instead of being retrieved from
platform-provided telemetry data.

**EXPERIMENTAL**

:param enabled:
:param source:
:param metadata: *(Optional)*
r   sourceNr;  z*Emulation.setPressureSourceOverrideEnabledr   r  )r   rC  r;  r   r   r   s         r   $set_pressure_source_override_enabledrD  G  sV     " &F9~~'F8%--/z>H >Dr=  c              #  ~   #    [        5       nU R                  5       US'   UR                  5       US'   SUS.nUv ng7f)z
Provides a given pressure state that will be processed and eventually be
delivered to PressureObserver users. ``source`` must have been previously
overridden by setPressureSourceOverrideEnabled.

**EXPERIMENTAL**

:param source:
:param state:
rC  statez"Emulation.setPressureStateOverrider   Nr  )rC  rF  r   r   r   s        r   set_pressure_state_overriderG  d  sD      &F~~'F8mmoF7O6H >DrA  c              #  B   #    [        5       nXS'   XS'   SUS.nUv ng7f)zv
Overrides the Idle state.

:param is_user_active: Mock isUserActive
:param is_screen_unlocked: Mock isScreenUnlocked
isUserActiveisScreenUnlockedzEmulation.setIdleOverrider   Nr   )is_user_activeis_screen_unlockedr   r   r   s        r   set_idle_overriderM  |  s5      &F+>!3-H >D   c               #     #    SS0n U v ng7f)z
Clears Idle state overrides.
r   zEmulation.clearIdleOverrideNr"   r   s     r   clear_idle_overriderP    s     
 	/H >Dr   c              #  :   #    [        5       nXS'   SUS.nUv ng7f)z
Overrides value returned by the javascript navigator object.

**EXPERIMENTAL**

:param platform: The platform navigator.platform should return.
rg   zEmulation.setNavigatorOverridesr   Nr   )rg   r   r   r   s       r   set_navigator_overridesrR    s,      &F!:3H >Dr   c              #  :   #    [        5       nXS'   SUS.nUv ng7f)ze
Sets a specified page scale factor.

**EXPERIMENTAL**

:param page_scale_factor: Page scale factor.
pageScaleFactorzEmulation.setPageScaleFactorr   Nr   )page_scale_factorr   r   r   s       r   set_page_scale_factorrV    s-      &F 10H >Dr   c              #  :   #    [        5       nXS'   SUS.nUv ng7f)zp
Switches script execution in the page.

:param value: Whether script execution should be disabled in the page.
rD   z$Emulation.setScriptExecutionDisabledr   Nr   )rD   r   r   r   s       r   set_script_execution_disabledrX    s+      &F7O8H >Dr   c              #  H   #    [        5       nXS'   Ub  XS'   SUS.nUv ng7f)z
Enables touch on platforms which do not support them.

:param enabled: Whether the touch event emulation should be enabled.
:param max_touch_points: *(Optional)* Maximum touch points supported. Defaults to one.
r   NmaxTouchPointsz"Emulation.setTouchEmulationEnabledr   r   )r   max_touch_pointsr   r   r   s        r   set_touch_emulation_enabledr\    s;      &F9##3 6H >Dr)  c              #     #    [        5       nU R                  5       US'   Ub  XS'   Ub  X$S'   Ub  UR                  5       US'   SUS.nUv n[        US   5      $ 7f)a  
Turns on virtual time for all frames (replacing real-time with a synthetic time source) and sets
the current virtual time policy.  Note this supersedes any previous time budget.

**EXPERIMENTAL**

:param policy:
:param budget: *(Optional)* If set, after this many virtual milliseconds have elapsed virtual time will be paused and a virtualTimeBudgetExpired event is sent.
:param max_virtual_time_task_starvation_count: *(Optional)* If set this specifies the maximum number of tasks that can be run before virtual is forced forwards to prevent deadlock.
:param initial_virtual_time: *(Optional)* If set, base::Time::Now will be overridden to initially return this value.
:returns: Absolute timestamp at which virtual time was first enabled (up time in milliseconds).
policybudget!maxVirtualTimeTaskStarvationCountinitialVirtualTimezEmulation.setVirtualTimePolicyr   virtualTimeTicksBaser8  )r^  r_  &max_virtual_time_task_starvation_countinitial_virtual_timer   r   r   s          r   set_virtual_time_policyre    s}     $ &F~~'F8!x-96\23'';'C'C'E#$2H >D,-..s   AAc              #  @   #    [        5       nU b  XS'   SUS.nUv ng7f)z
Overrides default host system locale with the specified one.

**EXPERIMENTAL**

:param locale: *(Optional)* ICU style C locale (e.g. "en_US"). If not specified or empty, disables the override and restores default host system locale.
NlocalezEmulation.setLocaleOverrider   r   )rg  r   r   r   s       r   set_locale_overriderh    s2      &F!x/H >Dr   c              #  :   #    [        5       nXS'   SUS.nUv ng7f)a[  
Overrides default host system timezone with the specified one.

:param timezone_id: The timezone identifier. List of supported timezones: https://source.chromium.org/chromium/chromium/deps/icu.git/+/faee8bc70570192d82d2978a71e2a615788597d1:source/data/misc/metaZones.txt If empty, disables the override and restores default host system timezone.

timezoneIdzEmulation.setTimezoneOverrider   Nr   )timezone_idr   r   r   s       r   set_timezone_overriderl    s,      &F&<1H >Dr   c              #  B   #    [        5       nXS'   XS'   SUS.nUv ng7f)a   
Resizes the frame/viewport of the page. Note that this does not affect the frame's container
(e.g. browser window). Can be used to produce screenshots of the specified size. Not supported
on Android.

**EXPERIMENTAL**

:param width: Frame width (DIP).
:param height: Frame height (DIP).
r  r  zEmulation.setVisibleSizer   Nr   )r  r  r   r   r   s        r   set_visible_sizern  -  s3      &F7O8,H >DrN  c              #     #    [        5       nU  Vs/ s H  o"R                  5       PM     snUS'   SUS.nUv ngs  snf 7f)zA


**EXPERIMENTAL**

:param image_types: Image types to disable.

imageTypeszEmulation.setDisabledImageTypesr   Nr  )image_typesr   rx   r   r   s        r   set_disabled_image_typesrr  E  sF      &F1<=AIIK=F<3H >D >s   ?:?c              #  :   #    [        5       nXS'   SUS.nUv ng7f)zQ


**EXPERIMENTAL**

:param hardware_concurrency: Hardware concurrency to report
hardwareConcurrencyz(Emulation.setHardwareConcurrencyOverrider   Nr   )hardware_concurrencyr   r   r   s       r   !set_hardware_concurrency_overriderv  X  s-      &F$8 !<H >Dr   c              #     #    [        5       nXS'   Ub  XS'   Ub  X$S'   Ub  UR                  5       US'   SUS.nUv ng7f)a  
Allows overriding user agent with the given string.
``userAgentMetadata`` must be set for Client Hint headers to be sent.

:param user_agent: User agent to use.
:param accept_language: *(Optional)* Browser language to emulate.
:param platform: *(Optional)* The platform navigator.platform should return.
:param user_agent_metadata: **(EXPERIMENTAL)** *(Optional)* To be sent in Sec-CH-UA-* headers and returned in navigator.userAgentData
	userAgentNacceptLanguagerg   userAgentMetadatazEmulation.setUserAgentOverrider   r  )
user_agentaccept_languagerg   user_agent_metadatar   r   r   s          r   set_user_agent_overrider~  k  sc      &F$;"#2 %z&&9&A&A&C"#2H >Ds   =?c              #  :   #    [        5       nXS'   SUS.nUv ng7f)zs
Allows overriding the automation flag.

**EXPERIMENTAL**

:param enabled: Whether the override should be enabled.
r   zEmulation.setAutomationOverrider   Nr   r   s       r   set_automation_overrider    s,      &F93H >Dr   z"Emulation.virtualTimeBudgetExpiredc                  ,    \ rS rSrSr\SS j5       rSrg)VirtualTimeBudgetExpiredi  zr
**EXPERIMENTAL**

Notification sent after the virtual time budget for the current VirtualTimePolicy has run out.
c                    U " 5       $ rP   r"   r   s     r   r    "VirtualTimeBudgetExpired.from_json  s     
 	
r   r"   N)r   r   returnr  )r$   r%   r&   r'   r(   r*   r    r+   r"   r   r   r  r    s     
 
r   r  )r  z0typing.Generator[T_JSON_DICT, T_JSON_DICT, bool])r  0typing.Generator[T_JSON_DICT, T_JSON_DICT, None])r   rk   r  r  rP   )r   rr   r  r  )r   r   r  r  )r   ztyping.Optional[dom.RGBA]r  r  )
NNNNNNNNNN)r  r   r  r   r  r   rl   rk   r  r   r  typing.Optional[int]r  r  r  r  r  r  r  rr   r  z"typing.Optional[ScreenOrientation]r  ztyping.Optional[page.Viewport]r  ztyping.Optional[DisplayFeature]r  ztyping.Optional[DevicePosture]r  r  )r  r9   r  r  )r!  rk   r  r  )r$  rk   r  r  )r   rk   r'  ro   r  r  )NN)r+  ro   r,  z*typing.Optional[typing.List[MediaFeature]]r  r  )r   r   r  r  )NNN)r2  r   r3  r   r4  r   r  r  )r   r}   r  1typing.Generator[T_JSON_DICT, T_JSON_DICT, float])r   rk   r   r}   r;  ztyping.Optional[SensorMetadata]r  r  )r   r}   r?  r   r  r  )r   rk   rC  r   r;  z!typing.Optional[PressureMetadata]r  r  )rC  r   rF  r   r  r  )rK  rk   rL  rk   r  r  )rg   r   r  r  )rU  r   r  r  )rD   rk   r  r  )r   rk   r[  r  r  r  )
r^  rJ   r_  r   rc  r  rd  z'typing.Optional[network.TimeSinceEpoch]r  r  )rg  ro   r  r  )rk  r   r  r  )r  r   r  r   r  r  )rq  ztyping.List[DisabledImageType]r  r  )ru  r   r  r  )
r{  r   r|  ro   rg   ro   r}  z"typing.Optional[UserAgentMetadata]r  r  )D
__future__r   utilr   r   dataclassesr   enumtyping r   r	   r
   r   r-   r9   rA   EnumrJ   r\   re   r}   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r  r  r"  r%  r(  r-  r0  r5  r9  r<  r@  rD  rG  rM  rP  rR  rV  rX  r\  re  rh  rl  rn  rr  rv  r~  r  r  r"   r   r   <module>r     s   # * !      
 
 
0 
 
 
: 
 
 
  
 
 
&		 & 
 
 
, ;
 ;
 ;
| , 
 
 
4 
 
 
 
 
 
. 
 
 
6 
 
 
4TYY DII  
 
 
 		 
 		7( *.&	7(	7$ ,0(	70 )--1.2+/+/7;AE37;?9=AAA #A 	A
 &A +A ,A )A )A  5A ?A 1A 9A 7A 
8AH	7(	7&	7* /3+ 
80 '+?C#< 
8,	7$ ,0,0+/() ) 
8	655	850 59 2 
8	< 
84 7; 4 
8	: 
80  
8(	7& 	7&	7& 26. 
8. *.GKHL	/!/&/ 1E/ F	/
 
9/F (,$	7(	7" 
803	7&!	7* 15)-BF	- ' @	
 
8<	7& 12

 
  3
r   