MCPcopy Create free account
hub / github.com/aeroxy/chrome-devtools-cli / has_emulation

Method has_emulation

src/commands/emulation.rs:51–62  ·  view source on GitHub ↗

Returns true if any flag that triggers emulation is set.

(&self)

Source from the content-addressed store, hash-verified

49
50 /// Returns true if any flag that triggers emulation is set.
51 pub fn has_emulation(&self) -> bool {
52 self.viewport.is_some()
53 || self.geolocation.is_some()
54 || self.device_scale_factor.is_some()
55 || self.mobile
56 || self.clear_all
57 || self.clear_viewport
58 || self.clear_geolocation
59 || !self.block_url.is_empty()
60 || !self.unblock_url.is_empty()
61 || self.clear_blocks
62 }
63}
64
65/// Execute the unified emulation command.

Callers 3

run_directFunction · 0.80
execute_commandFunction · 0.80
inner_executeFunction · 0.80

Calls 1

is_emptyMethod · 0.80

Tested by

no test coverage detected