Changes between Version 15 and Version 16 of ProposedWebInspectorRearchitecting
- Timestamp:
- Sep 18, 2008, 9:00:59 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ProposedWebInspectorRearchitecting
v15 v16 21 21 == What's There Now == 22 22 23 Currently, communication between Inspector and !Web Kitoccurs via two JS objects:23 Currently, communication between Inspector and !WebCore occurs via two JS objects: 24 24 25 * `InspectorController`, created by !Web Kitand populated with methods that JS invokes to talk to WebKit.26 * `WebInspector`, created on the JS side and used by !Web Kitto talk back to inspector. Only a small fraction of `WebInspector`'s methods is actually used for this.25 * `InspectorController`, created by !WebCore and populated with methods that JS invokes to talk to WebKit. 26 * `WebInspector`, created on the JS side and used by !WebCore to talk back to inspector. Only a small fraction of `WebInspector`'s methods is actually used for this. 27 27 28 For 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. It is up to Inspector's JS code to initialize `WebInspector` object and its methods. 28 For instance, when the messages in the console are cleared by the user, the `InspectorController.clearMessages()` is invoked to reset the corresponding `m_consoleMessages` in !WebCore. Conversely, whenever !WebCore 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. 29 30 It is up to Inspector's JS code to initialize `WebInspector` object and its methods. 31 29 32 30 33 = APIs to implement =