summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webdevtoolsagent_impl.cc
Commit message (Collapse)AuthorAgeFilesLines
* DevTools: decouple class and method names from RPC message arguments. That ↵yurys@google.com2009-05-291-5/+12
| | | | | | | | would allow to select dispatcher wothout parsing the message argument. Review URL: http://codereview.chromium.org/115862 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17176 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Migrate to InspectorController for network and console events.pfeldman@chromium.org2009-05-271-55/+56
| | | | | | | | | | | | | | - introduced bound object on the agent side; - established remote dispatch of WebInspector calls - using fake InspectorFrontend for serializing events and sending them over the ipc - removed net agents from both sides - moved GetResource stuff to tools agent Assumes following is landed: https://bugs.webkit.org/show_bug.cgi?id=26010 Review URL: http://codereview.chromium.org/113836 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16980 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: remove node highlight on dev tools window close.pfeldman@chromium.org2009-05-221-1/+4
| | | | | | | BUG=11766 Review URL: http://codereview.chromium.org/115655 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16737 0039d316-1c4b-4281-b951-d872f2087c98
* Page global contexts are assigned uniques ids.Script list now contain ↵yurys@google.com2009-05-131-0/+4
| | | | | | | | scripts from the inspected tab only.Also switched DebuggerAgentManager to MessageHandler2 that accepts v8::Debug::Message instead of string. Review URL: http://codereview.chromium.org/115032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15945 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Do not fail on closing WebInspector while on a breakpoint.pfeldman@chromium.org2009-05-061-0/+1
| | | | | | Review URL: http://codereview.chromium.org/108020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15403 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Bugfixes for the round of sanity testing.pfeldman@chromium.org2009-05-051-0/+1
| | | | | | Review URL: http://codereview.chromium.org/109010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15291 0039d316-1c4b-4281-b951-d872f2087c98
* Now it's possible to evaluate expressions in the debugger console.yurys@google.com2009-05-041-0/+6
| | | | | | Review URL: http://codereview.chromium.org/99340 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15200 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Fix access violation (null pointer) on document tear down.pfeldman@chromium.org2009-05-011-2/+2
| | | | | | Review URL: http://codereview.chromium.org/100261 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15067 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: keep links on the edited styles so that they are not collected ↵pfeldman@chromium.org2009-04-291-4/+10
| | | | | | | | between debugging sessions. Review URL: http://codereview.chromium.org/100159 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14844 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Implement styles toggle:pfeldman@chromium.org2009-04-291-3/+3
| | | | | | | | | | | | | 1. Split inject.js into injected object and the dispatch. 2. Surround utility function call with try/catch, pass potential exception all way to the client. 3. Fix user and user agent scripts detection 4. Introduce toggleStyle 5. Remove __defineGetter__ from the styles code: make things simple 6. Beautify code. Review URL: http://codereview.chromium.org/99184 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14839 0039d316-1c4b-4281-b951-d872f2087c98
* Merge WebKit console and load deferrer changes.pfeldman@chromium.org2009-04-281-12/+24
| | | | | | Review URL: http://codereview.chromium.org/99121 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14723 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Run nested message loop instead of whitelisting the messages.pfeldman@chromium.org2009-04-221-2/+7
| | | | | | Review URL: http://codereview.chromium.org/90007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14183 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Make all devtools messages dispatch through debugger interrupt.pfeldman@chromium.org2009-04-171-3/+9
| | | | | | Review URL: http://codereview.chromium.org/73002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13910 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Cache resources before attach, hide agents behind the flag.pfeldman@chromium.org2009-04-091-2/+8
| | | | | | Review URL: http://codereview.chromium.org/65010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13423 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 13419.pfeldman@chromium.org2009-04-091-8/+2
| | | | | | Review URL: http://codereview.chromium.org/65008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13421 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Cache resource metainfo even when debugger agent is not attached.pfeldman@chromium.org2009-04-091-2/+8
| | | | | | | | - Cache 200 resources - Hide agent functionality behind the flag Review URL: http://codereview.chromium.org/62183 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13419 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Fix errors found during dogfooding.pfeldman@chromium.org2009-04-081-2/+2
| | | | | | Review URL: http://codereview.chromium.org/62152 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13362 0039d316-1c4b-4281-b951-d872f2087c98
* 1. All debugger messages are dispatched in a static method on the IO thread. ↵yurys@google.com2009-04-081-3/+7
| | | | | | | | | | | All responses from the v8 go to another static method where we should find out which devtool agent delegate should be used for sending the response. We use call_id to match request with the delegate its response should be sent to. We don't pass the delegate directly as it's designed to be accessed on the render thread only. To match debug command response with its request the request sequence number is replaced with a number that is unique across the renderer(note that requests from different clients may have equal ids so we cannot rely on them). This happens before the command gets to the v8. When the command response is ready the original request_seq is restored. Before that the request_seq field is used to find out which devtools agent delegate should be used for sending the response. 2. For the debugger events we derive target agent from the current v8 execution context. If there is no agent attached to the RenderView owning that context 'continue' command is sent to the v8 automatically and the message is ignored. Review URL: http://codereview.chromium.org/62106 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13347 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: add basic console support.pfeldman@chromium.org2009-04-071-0/+35
| | | | | | Review URL: http://codereview.chromium.org/62050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13240 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Glue part for the 'attach early' functionality.pfeldman@chromium.org2009-04-061-12/+20
| | | | | | | | | - Establish 2 main scenarios for attach: 'attach to live' and 'start attached' - Make WebFrameLoaderImpl call setMainFrameDocumentReady only for main frame document. Review URL: http://codereview.chromium.org/62038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13154 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: add support for provisional load tracking.pfeldman@chromium.org2009-04-021-18/+27
| | | | | | Review URL: http://codereview.chromium.org/56149 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13008 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Support r/o properties inspection.pfeldman@chromium.org2009-04-011-4/+20
| | | | | | Review URL: http://codereview.chromium.org/56067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12949 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: add support for navigating to other tab while inspecting.pfeldman@chromium.org2009-03-271-22/+24
| | | | | | Review URL: http://codereview.chromium.org/53098 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12640 0039d316-1c4b-4281-b951-d872f2087c98
* 1. Implemented an agent providing RPC interface to v8 debugger of the ↵yurys@google.com2009-03-271-0/+33
| | | | | | | | | | | | inspected page. 2. Introduce new devtools IPC message to distinguish debugger messages and process them on IO thread so that debugger commands can be processed when v8 is stopped on a breakpoint bloking the render thread. 3. Added RPC message to allow devtool client evaluating JS expressions in the context of the inspected page. Review URL: http://codereview.chromium.org/42594 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12639 0039d316-1c4b-4281-b951-d872f2087c98
* Make DevTools client survive 'refresh' of the inspectable tab.pfeldman@chromium.org2009-03-261-23/+42
| | | | | | Review URL: http://codereview.chromium.org/54002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12541 0039d316-1c4b-4281-b951-d872f2087c98
* Wire 'Inspect Element' action to the new DevTools (depending on the devtools ↵pfeldman@chromium.org2009-03-241-8/+10
| | | | | | | | | | | | | | flag): - Add new devtools IPC message - Expose WebView's hit target - Refactor dom_agent interaction not to send information known to client - Collect incoming messages on the client until frontend is loaded - Add Inspect Element scenario into the devtools_host_stub Review URL: http://codereview.chromium.org/45022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12355 0039d316-1c4b-4281-b951-d872f2087c98
* Make Rpc dispatch in DevTools static, remove redundant JSON parsing.pfeldman@chromium.org2009-03-181-3/+6
| | | | | | Review URL: http://codereview.chromium.org/44007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11957 0039d316-1c4b-4281-b951-d872f2087c98
* - Provide Rpc classes with unique ids so that their message id spaces do not ↵pfeldman@chromium.org2009-03-131-1/+2
| | | | | | | | | | | intersect; - Implement tests for DevToolsRpc - Do not import PlatformString in headers Review URL: http://codereview.chromium.org/43141 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11626 0039d316-1c4b-4281-b951-d872f2087c98
* Initial WebDevToolsAgent implementation contains two agent objects: Dom agentpfeldman@chromium.org2009-03-121-0/+113
and Net agent. Dom agent provides API for querying for DOM nodes and receiving notifications on Dom updates. It has some logic in and this logic is covered with the unit tests. Net agent pushes an initial set of request/response-related events to the client. It is to be filled with more data later on. It currently caches loaders for all the requests which is Ok for the case when this agent is turned ON (at least for now). Note that this code is not yet wired to the dev tools agent (this is by design). The plan is to start enrolling the dev tools agent glue that connects these sub-agents with the IPC transport once this CL is in. Original CL: http://codereview.chromium.org/41008/show Review URL: http://codereview.chromium.org/43128 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11531 0039d316-1c4b-4281-b951-d872f2087c98