Chromium Code Reviews
DescriptionCreate a base agent class for ui_devtools
Each ui component such as ash, must create its own agents that implement
various backends (such as DOM or CSS). Each agent must be wired to the
main dispatcher so that it can receive events. In addition, each agent
must have access to a FrontendChannel instance so that it can push
updates to the inspector. This change creates a base agent which
abstracts out all of this. Any agent, like a DOM or CSS agent simply
inherit from this class and whenever they are attached to the
UiDevToolsClient, they are then initialized. This means they are
wired up and the FrontendChannel instance is set with the dispatcher
available from UiDevToolsClient.
This is what DevTools does for their agents, and this CL implements
a simpler version of that.
BUG=648701
Committed: https://crrev.com/e2445fe73810b097225b9ed1caedafe0251a2120
Cr-Commit-Position: refs/heads/master@{#428615}
Patch Set 1 #Patch Set 2 : Create a base agent class so that initialization of the backend/frontend is abstracted out #Patch Set 3 : Add comments and fix header #
Total comments: 4
Patch Set 4 : sadruls comments #
Total comments: 4
Patch Set 5 : sadruls comments #
Dependent Patchsets: Messages
Total messages: 22 (13 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||