void InspectorEmulationAgent::disable(ErrorString*) { ErrorString error; setScriptExecutionDisabled(&error, false); setTouchEmulationEnabled(&error, false, protocol::Maybe<String>()); setEmulatedMedia(&error, String()); }
void InspectorEmulationAgent::disable(ErrorString*) { ErrorString error; setScriptExecutionDisabled(&error, false); setTouchEmulationEnabled(&error, false, nullptr); setEmulatedMedia(&error, String()); }
void InspectorEmulationAgent::restore() { ErrorString error; setScriptExecutionDisabled(&error, m_state->getBoolean(EmulationAgentState::scriptExecutionDisabled)); setTouchEmulationEnabled(&error, m_state->getBoolean(EmulationAgentState::touchEventEmulationEnabled), nullptr); setEmulatedMedia(&error, m_state->getString(EmulationAgentState::emulatedMedia)); }
Response InspectorEmulationAgent::disable() { setScriptExecutionDisabled(false); setTouchEmulationEnabled(false, Maybe<String>()); setEmulatedMedia(String()); setCPUThrottlingRate(1); resetViewport(); return Response::OK(); }
void InspectorEmulationAgent::restore() { ErrorString error; setScriptExecutionDisabled(&error, m_state->booleanProperty(EmulationAgentState::scriptExecutionDisabled, false)); setTouchEmulationEnabled(&error, m_state->booleanProperty(EmulationAgentState::touchEventEmulationEnabled, false), protocol::Maybe<String>()); String16 emulatedMedia; m_state->getString(EmulationAgentState::emulatedMedia, &emulatedMedia); setEmulatedMedia(&error, emulatedMedia); }
void InspectorEmulationAgent::restore() { setScriptExecutionDisabled(m_state->booleanProperty( EmulationAgentState::scriptExecutionDisabled, false)); setTouchEmulationEnabled( m_state->booleanProperty(EmulationAgentState::touchEventEmulationEnabled, false), protocol::Maybe<String>()); String emulatedMedia; m_state->getString(EmulationAgentState::emulatedMedia, &emulatedMedia); setEmulatedMedia(emulatedMedia); if (m_state->booleanProperty(EmulationAgentState::forcedViewportEnabled, false)) { forceViewport( m_state->doubleProperty(EmulationAgentState::forcedViewportX, 0), m_state->doubleProperty(EmulationAgentState::forcedViewportY, 0), m_state->doubleProperty(EmulationAgentState::forcedViewportScale, 1)); } }