Lines Matching refs:geolocation
467 var geolocation = WebInspector.OverridesSupport.GeolocationPosition.parseSetting(geolocationSetting);
468 this.element.appendChild(this._createSettingCheckbox(WebInspector.UIString("Emulate geolocation coordinates"), WebInspector.overridesSupport.settings.overrideGeolocation, this._geolocationOverrideCheckboxClicked.bind(this)));
469 this.element.appendChild(this._createGeolocationOverrideElement(geolocation));
488 * @param {?WebInspector.OverridesSupport.GeolocationPosition} geolocation
491 _setGeolocationPosition: function(geolocation, userInputModified)
493 if (!geolocation)
497 this._latitudeElement.value = geolocation.latitude;
498 this._longitudeElement.value = geolocation.longitude;
501 var value = geolocation.toSetting();
506 * @param {!WebInspector.OverridesSupport.GeolocationPosition} geolocation
509 _createGeolocationOverrideElement: function(geolocation)
512 fieldsetElement.id = "geolocation-override-section";
519 this._latitudeElement = WebInspector.SettingsUI.createInput(cellElement, "geolocation-override-latitude", String(geolocation.latitude), this._applyGeolocationUserInput.bind(this), true);
522 this._longitudeElement = WebInspector.SettingsUI.createInput(cellElement, "geolocation-override-longitude", String(geolocation.longitude), this._applyGeolocationUserInput.bind(this), true);
528 geolocationErrorCheckboxElement.id = "geolocation-error";
530 geolocationErrorCheckboxElement.checked = !geolocation || geolocation.error;