Changes between Version 7 and Version 8 of ProposedWebInspectorRearchitecting
- Timestamp:
- Sep 13, 2008, 11:21:35 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ProposedWebInspectorRearchitecting
v7 v8 23 23 24 24 == Message Observers == 25 We will need an API for observing messages by name. 25 We will need an API for observing messages by name. There would be two types of messages — notification messages and response messages. Notification messages will be sent to all observers that have registered to receive messages matching a name. Unlike notification messages, response messages are handled for callers of API functions. 26 27 Any API function that has a response will also take a {{{callbackFunction}}} argument. When a request message is sent for an API call, it will contain a unique identifier. This unique identifier is stored locally and maps to the {{{callbackFunction}}}. When a response message comes back with that unique identifier, the {{{callbackFunction}}} is then called with data from the message passed to the {{{callbackFunction}}} as an argument. 26 28 27 29 == Console == 28 30 === Functions === 29 31 30 {{{InspectorController.Console.evaluate(expression )}}}[[BR]]32 {{{InspectorController.Console.evaluate(expression, callbackFunction)}}}[[BR]] 31 33 ''evaluates the expression in the global context of the inspected page'' 32 34 33 {{{InspectorController.Console. messages()}}}[[BR]]34 ''requests an array of all recent messages up to the messageLimit. this is used to populated the Console when opening the Inspector. new messages are gotten from the {{{ new-messages}}} notification message''35 {{{InspectorController.Console.fetchMessages(callbackFunction)}}}[[BR]] 36 ''requests an array of all recent messages up to the messageLimit. this is used to populated the Console when opening the Inspector. new messages are gotten from the {{{console:new-messages}}} notification message'' 35 37 36 38 {{{InspectorController.Console.clearMessages()}}}[[BR]] 37 39 ''requests that all messages should be removed'' 38 40 39 {{{InspectorController.Console. messageLimit()}}}[[BR]]41 {{{InspectorController.Console.fetchMessageLimit(callbackFunction)}}}[[BR]] 40 42 ''requests the current message limit'' 41 43 … … 44 46 45 47 === Response Messages === 46 The {{{evaluate}}}, {{{messages}}} and {{{messageLimit}}} functions above will have response messages that are sent to observers.48 The {{{evaluate}}}, {{{messages}}} and {{{messageLimit}}} functions above will have response messages. 47 49 48 50 {{{console:evaluate}}}[[BR]] … … 71 73 == DOM == 72 74 73 InspectorController.DOM. getChildren(node)75 InspectorController.DOM.fetchChildren(node, callbackFunction) 74 76 75 InspectorController.DOM. getParent(node)77 InspectorController.DOM.fetchParent(node, callbackFunction) 76 78 77 79 node here is a JS object that has a one-to-one mapping with the DOM node in the page. Everything above this API layer only knows about the node JS object. Somewhere in the implementation of the API there needs to be a mapping. Initially, it can just be an in JS map. Eventually, the map will probably move to C++, at the very least it will for the IPC-based version. … … 79 81 == Database == 80 82 81 InspectorController.Database. getCurrentStack() ?83 InspectorController.Database.fetchDatabases(callbackFunction) 82 84 83 85 InspectorConteoller.Database.? … … 95 97 == BUGS FILED == 96 98 97 https://bugs.webkit.org/show_bug.cgi?id=20804 - Objects viewable in debugger should not be garbage collectable 98 99 https://bugs.webkit.org/show_bug.cgi?id=20803 - Console objects being snapshots 100 101 https://bugs.webkit.org/show_bug.cgi?id=20800 - Network monitoring opt-in 102 103 https://bugs.webkit.org/show_bug.cgi?id=20801 - Infinite console logging opt-in 99 https://bugs.webkit.org/show_bug.cgi?id=20804 - Objects viewable in debugger should not be garbage collectable[[BR]] 100 https://bugs.webkit.org/show_bug.cgi?id=20803 - Console objects being snapshots[[BR]] 101 https://bugs.webkit.org/show_bug.cgi?id=20800 - Network monitoring opt-in[[BR]] 102 https://bugs.webkit.org/show_bug.cgi?id=20801 - Infinite console logging opt-in[[BR]]