Changeset 84351 in webkit


Ignore:
Timestamp:
Apr 20, 2011 2:21:36 AM (13 years ago)
Author:
pfeldman@chromium.org
Message:

2011-04-20 Pavel Feldman <pfeldman@google.com>

Reviewed by Yury Semikhatsky.

Web Inspector: minor protocol cleanups (refined types).
https://bugs.webkit.org/show_bug.cgi?id=58970

  • inspector/InjectedScriptSource.js:
  • inspector/Inspector.json:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r84350 r84351  
     12011-04-20  Pavel Feldman  <pfeldman@google.com>
     2
     3        Reviewed by Yury Semikhatsky.
     4
     5        Web Inspector: minor protocol cleanups (refined types).
     6        https://bugs.webkit.org/show_bug.cgi?id=58970
     7
     8        * inspector/InjectedScriptSource.js:
     9        * inspector/Inspector.json:
     10
    1112011-04-20  Leo Yang  <leo.yang@torchmobile.com.cn>
    212
  • trunk/Source/WebCore/inspector/InjectedScriptSource.js

    r83434 r84351  
    475475    this.id = "{\"ordinal\":" + ordinal + ",\"injectedScriptId\":" + injectedScriptId + "}";
    476476    this.functionName = (callFrame.type === "function" ? callFrame.functionName : "");
    477     this.location = { sourceID: callFrame.sourceID, lineNumber: callFrame.line, columnNumber: callFrame.column };
     477    this.location = { sourceID: String(callFrame.sourceID), lineNumber: callFrame.line, columnNumber: callFrame.column };
    478478    this.scopeChain = this._wrapScopeChain(callFrame);
    479479}
  • trunk/Source/WebCore/inspector/Inspector.json

    r84080 r84351  
    134134                "properties": [
    135135                    { "name": "description", "type": "string", "description": "String representation of the object." },
    136                     { "name": "hasChildren", "type": "integer", "optional": true, "description": "True when this object can be queried for children." },
     136                    { "name": "hasChildren", "type": "boolean", "optional": true, "description": "True when this object can be queried for children." },
    137137                    { "name": "objectId", "type": "string", "optional": true, "description": "Unique object identifier (for non-primitive values)." },
    138138                    { "name": "type", "type": "string", "enum": ["object", "array", "function", "null", "node", "undefined", "string", "number", "boolean", "error", "regexp", "date"], "description": "Object type." }
     
    146146                    { "name": "name", "type": "string", "description": "Property name." },
    147147                    { "name": "value", "$ref": "RemoteObject", "description": "Property value." },
    148                     { "name": "isGetter", "type": "string", "description": "True if this property is getter." }
     148                    { "name": "isGetter", "type": "boolean", "optional": true, "description": "True if this property is getter." }
    149149                ]
    150150            }
     
    181181                ],
    182182                "returns": [
    183                     { "name": "result", "type": "array", "items": { "$ref": "RuntimeProperty"}, "description": "Object properties." }
     183                    { "name": "result", "type": "array", "items": { "$ref": "RemoteProperty"}, "description": "Object properties." }
    184184                ],
    185185                "description": "Returns properties of a given object."
Note: See TracChangeset for help on using the changeset viewer.