Changeset 172688 in webkit
- Timestamp:
- Aug 15, 2014 10:49:19 PM (10 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r172682 r172688 1 2014-08-15 Joseph Pecoraro <pecoraro@apple.com> 2 3 Web Inspector: Update Scripts/update-LegacyInspectorBackendCommands.rb for the new generator 4 https://bugs.webkit.org/show_bug.cgi?id=136006 5 6 Reviewed by Timothy Hatcher. 7 8 * Scripts/update-LegacyInspectorBackendCommands.rb: 9 Use the new generator and pass the appropriate flags. 10 11 * UserInterface/Protocol/Legacy/6.0/InspectorWebBackendCommands.js: 12 * UserInterface/Protocol/Legacy/7.0/InspectorWebBackendCommands.js: 13 Newly generated files using the new generator. 14 15 * Versions/Inspector-iOS-6.0.json: 16 Remove unsupported features. 17 1 18 2014-08-15 Joseph Pecoraro <pecoraro@apple.com> 2 19 -
trunk/Source/WebInspectorUI/Scripts/update-LegacyInspectorBackendCommands.rb
r165838 r172688 12 12 JAVASCRIPTCORE_PATH = File.expand_path File.join(File.dirname(__FILE__), "..", "..", "JavaScriptCore") 13 13 14 $code_generator_path = File.join JAVASCRIPTCORE_PATH, "inspector", "scripts", " CodeGeneratorInspector.py"14 $code_generator_path = File.join JAVASCRIPTCORE_PATH, "inspector", "scripts", "generate-inspector-protocol-bindings.py" 15 15 $versions_directory_path = File.join WEB_INSPECTOR_PATH, "Versions" 16 16 $web_inspector_protocol_legacy_path = File.join WEB_INSPECTOR_PATH, "UserInterface", "Protocol", "Legacy" … … 26 26 def run 27 27 output_filename_prefix = {"JavaScript" => "JS", "Web" => "Web"}[@type] 28 framework = {"JavaScript" => "JavaScriptCore", "Web" => "WebCore"}[@type] 28 29 output_filename = "Inspector#{output_filename_prefix}BackendCommands.js" 29 30 display_input = File.basename @input_json_path … … 33 34 Dir.mktmpdir do |tmpdir| 34 35 dependency = @dependency_json_path ? "'#{@dependency_json_path}'" : "" 35 cmd = "#{$code_generator_path} '#{@input_json_path}' #{dependency} --no_verification --output_h_dir '#{tmpdir}' --output_cpp_dir '#{tmpdir}' --output_js_dir '#{tmpdir}' --write_always --output_type '#{@type}'"36 cmd = "#{$code_generator_path} --force --outputDir '#{tmpdir}' --framework #{framework} '#{@input_json_path}' #{dependency}" 36 37 %x{ #{cmd} } 37 38 if $?.exitstatus != 0 -
trunk/Source/WebInspectorUI/UserInterface/Protocol/Legacy/6.0/InspectorWebBackendCommands.js
r166846 r172688 1 // File is generated by JavaScriptCore/inspector/scripts/CodeGeneratorInspector.py 2 3 // Copyright (c) 2013 Apple Inc. All Rights Reserved. 4 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 5 // Use of this source code is governed by a BSD-style license that can be 6 // found in the LICENSE file. 7 1 /* 2 * Copyright (C) 2013 Google Inc. All rights reserved. 3 * Copyright (C) 2013, 2014 Apple Inc. All rights reserved. 4 * Copyright (C) 2014 University of Washington. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: 9 * 1. Redistributions of source code must retain the above copyright 10 * notice, this list of conditions and the following disclaimer. 11 * 2. Redistributions in binary form must reproduce the above copyright 12 * notice, this list of conditions and the following disclaimer in the 13 * documentation and/or other materials provided with the distribution. 14 * 15 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 16 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 17 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 18 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 19 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 20 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 21 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 24 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 25 * THE POSSIBILITY OF SUCH DAMAGE. 26 */ 27 28 // DO NOT EDIT THIS FILE. It is automatically generated from Inspector-iOS-6.0.json 29 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 8 30 9 31 // Inspector. … … 41 63 42 64 // Runtime. 43 InspectorBackend.registerRuntimeDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Runtime");44 65 InspectorBackend.registerEnum("Runtime.RemoteObjectType", {Object: "object", Function: "function", Undefined: "undefined", String: "string", Number: "number", Boolean: "boolean"}); 45 66 InspectorBackend.registerEnum("Runtime.RemoteObjectSubtype", {Array: "array", Null: "null", Node: "node", Regexp: "regexp", Date: "date"}); … … 53 74 // Console. 54 75 InspectorBackend.registerConsoleDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Console"); 55 InspectorBackend.registerEnum("Console.ConsoleMessageSource", {HTML: "html", WML: "wml",XML: "xml", Javascript: "javascript", Network: "network", ConsoleAPI: "console-api", Other: "other"});76 InspectorBackend.registerEnum("Console.ConsoleMessageSource", {HTML: "html", XML: "xml", Javascript: "javascript", Network: "network", ConsoleAPI: "console-api", Other: "other"}); 56 77 InspectorBackend.registerEnum("Console.ConsoleMessageLevel", {Tip: "tip", Log: "log", Warning: "warning", Error: "error", Debug: "debug"}); 57 78 InspectorBackend.registerEnum("Console.ConsoleMessageType", {Log: "log", Dir: "dir", DirXML: "dirxml", Trace: "trace", StartGroup: "startGroup", StartGroupCollapsed: "startGroupCollapsed", EndGroup: "endGroup", Assert: "assert"}); -
trunk/Source/WebInspectorUI/UserInterface/Protocol/Legacy/7.0/InspectorWebBackendCommands.js
r168678 r172688 1 // File is generated by JavaScriptCore/inspector/scripts/CodeGeneratorInspector.py 2 3 // Copyright (c) 2013 Apple Inc. All Rights Reserved. 4 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 5 // Use of this source code is governed by a BSD-style license that can be 6 // found in the LICENSE file. 7 1 /* 2 * Copyright (C) 2013 Google Inc. All rights reserved. 3 * Copyright (C) 2013, 2014 Apple Inc. All rights reserved. 4 * Copyright (C) 2014 University of Washington. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: 9 * 1. Redistributions of source code must retain the above copyright 10 * notice, this list of conditions and the following disclaimer. 11 * 2. Redistributions in binary form must reproduce the above copyright 12 * notice, this list of conditions and the following disclaimer in the 13 * documentation and/or other materials provided with the distribution. 14 * 15 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 16 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 17 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 18 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 19 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 20 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 21 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 24 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 25 * THE POSSIBILITY OF SUCH DAMAGE. 26 */ 27 28 // DO NOT EDIT THIS FILE. It is automatically generated from Inspector-iOS-7.0.json 29 // by the script: Source/JavaScriptCore/inspector/scripts/generate-inspector-protocol-bindings.py 8 30 9 31 // Inspector. -
trunk/Source/WebInspectorUI/Versions/Inspector-iOS-6.0.json
r172655 r172688 408 408 "description": "Console message.", 409 409 "properties": [ 410 { "name": "source", "type": "string", "enum": ["html", " wml", "xml", "javascript", "network", "console-api", "other"], "description": "Message source." },410 { "name": "source", "type": "string", "enum": ["html", "xml", "javascript", "network", "console-api", "other"], "description": "Message source." }, 411 411 { "name": "level", "type": "string", "enum": ["tip", "log", "warning", "error", "debug"], "description": "Message severity." }, 412 412 { "name": "text", "type": "string", "description": "Message text." }, … … 1823 1823 "id": "EventType", 1824 1824 "type": "string", 1825 "enum": ["EventDispatch", "Layout", "RecalculateStyles", "Paint", " BeginFrame", "ParseHTML", "TimerInstall", "TimerRemove", "TimerFire", "EvaluateScript", "MarkLoad", "MarkDOMContent", "TimeStamp", "ScheduleResourceRequest", "ResourceSendRequest", "ResourceReceiveResponse", "ResourceReceivedData", "ResourceFinish", "XHRReadyStateChange", "XHRLoad", "FunctionCall", "GCEvent", "RequestAnimationFrame", "CancelAnimationFrame", "FireAnimationFrame"],1825 "enum": ["EventDispatch", "Layout", "RecalculateStyles", "Paint", "ParseHTML", "TimerInstall", "TimerRemove", "TimerFire", "EvaluateScript", "MarkLoad", "MarkDOMContent", "TimeStamp", "ScheduleResourceRequest", "ResourceSendRequest", "ResourceReceiveResponse", "ResourceReceivedData", "ResourceFinish", "XHRReadyStateChange", "XHRLoad", "FunctionCall", "GCEvent", "RequestAnimationFrame", "CancelAnimationFrame", "FireAnimationFrame"], 1826 1826 "description": "Timeline record type." 1827 1827 }, … … 1848 1848 "name": "stop", 1849 1849 "description": "Stops capturing instrumentation events." 1850 },1851 {1852 "name": "setIncludeMemoryDetails",1853 "parameters": [1854 { "name": "enabled", "type": "boolean", "description": "True to start collecting DOM counters." }1855 ],1856 "description": "Starts calculating various DOM statistics and sending them as part of timeline events."1857 1850 } 1858 1851 ],
Note: See TracChangeset
for help on using the changeset viewer.