MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / StoreState

Method StoreState

cpp/webdriver-interactions/interactions_linux.cpp:118–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118void XModifierKey::StoreState(guint32* state_store) const
119{
120 guint32 non_mask_bits = ~gdk_mod_mask_;
121 guint32 toggle_bit = (toggle_ ? gdk_mod_mask_ : 0);
122
123 *state_store = (*state_store & non_mask_bits) | toggle_bit;
124 LOG(DEBUG) << "Storing state for " << gdk_mod_mask_ << " toggled? " << toggle_ <<
125 " state store: " << *state_store << " non-mask bits: " << std::hex << non_mask_bits;
126}
127
128// Definition of a key press, release events pair.
129typedef std::pair<GdkEvent*, GdkEvent*> KeyEventsPair;

Callers

nothing calls this directly

Calls 1

LOGClass · 0.70

Tested by

no test coverage detected