summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/inspector/front-end/Settings.js
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/inspector/front-end/Settings.js')
-rw-r--r--Source/WebCore/inspector/front-end/Settings.js63
1 files changed, 1 insertions, 62 deletions
diff --git a/Source/WebCore/inspector/front-end/Settings.js b/Source/WebCore/inspector/front-end/Settings.js
index 9995ca2..856153a 100644
--- a/Source/WebCore/inspector/front-end/Settings.js
+++ b/Source/WebCore/inspector/front-end/Settings.js
@@ -72,13 +72,8 @@ WebInspector.Settings = function()
this.installApplicationSetting("watchExpressions", []);
this.installApplicationSetting("breakpoints", []);
this.installApplicationSetting("eventListenerBreakpoints", []);
+ this.installApplicationSetting("domBreakpoints", []);
this.installApplicationSetting("xhrBreakpoints", []);
-
- this.installProjectSetting("nativeBreakpoints", []);
-}
-
-WebInspector.Settings.Events = {
- ProjectChanged: "project-changed"
}
WebInspector.Settings.prototype = {
@@ -91,47 +86,6 @@ WebInspector.Settings.prototype = {
this.__defineSetter__(key, this._set.bind(this, key));
},
- installProjectSetting: function(key, defaultValue)
- {
- this.__defineGetter__(key, this._getProjectSetting.bind(this, key, defaultValue));
- this.__defineSetter__(key, this._setProjectSetting.bind(this, key));
- },
-
- inspectedURLChanged: function(url)
- {
- var fragmentIndex = url.indexOf("#");
- if (fragmentIndex !== -1)
- url = url.substring(0, fragmentIndex);
- this._projectId = url;
- this.dispatchEventToListeners(WebInspector.Settings.Events.ProjectChanged);
- },
-
- get projectId()
- {
- return this._projectId;
- },
-
- findSettingForAllProjects: function(key)
- {
- var result = {};
- if (window.localStorage == null)
- return result;
-
- var regexp = "^" + key + ":(.*)";
- for (var i = 0; i < window.localStorage.length; ++i) {
- var fullKey = window.localStorage.key(i);
- var match = fullKey.match(regexp);
- if (!match)
- continue;
- try {
- result[match[1]] = JSON.parse(window.localStorage[fullKey]);
- } catch(e) {
- window.localStorage.removeItem(fullKey);
- }
- }
- return result;
- },
-
_get: function(key, defaultValue)
{
if (window.localStorage != null && key in window.localStorage) {
@@ -148,21 +102,6 @@ WebInspector.Settings.prototype = {
{
if (window.localStorage != null)
window.localStorage[key] = JSON.stringify(value);
- },
-
- _getProjectSetting: function(key, defaultValue)
- {
- return this._get(this._formatProjectKey(key), defaultValue);
- },
-
- _setProjectSetting: function(key, value)
- {
- return this._set(this._formatProjectKey(key), value);
- },
-
- _formatProjectKey: function(key)
- {
- return key + ":" + this._projectId;
}
}