Changes between Version 9 and Version 10 of ProposedWebInspectorRearchitecting


Ignore:
Timestamp:
Sep 17, 2008 11:02:31 AM (16 years ago)
Author:
Dimitri Glazkov
Comment:

added a bit of background description on current InspectorController communication.

Legend:

Unmodified
Added
Removed
Modified
  • ProposedWebInspectorRearchitecting

    v9 v10  
    1818-----------------------------
    1919Inspected Page's JS
     20
     21== What's There Now ==
     22
     23Currently, communication between Inspector and !WebKit occurs via two JS objects:
     24
     25 * `InspectorController`, created by !WebKit and populated with methods that JS invokes to talk to WebKit.
     26 * `WebInspector`, created on the JS side and used by !WebKit to talk back to inspector. Only a small fraction of `WebInspector`'s methods is actually used for this.
     27
     28For instance, when the messages in the console are cleared by the user, the `InspectorController.clearMessages()` is invoked to reset the corresponding `m_consoleMessages` in !WebKit. Conversely, whenever !WebKit has a new message to display on the console, it creates a `ConsoleMessage` JS object and then invokes `WebInspector.addMessageToConsole()` with that object as an argument.
    2029
    2130= APIs to implement =