[Webkit-unassigned] [Bug 95649] Web Inspector: CodeGeneratorInspector.py: support asynchronous command implementation
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Sep 4 00:29:48 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=95649
Yury Semikhatsky <yurys at chromium.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #161834|review? |review-
Flag| |
--- Comment #4 from Yury Semikhatsky <yurys at chromium.org> 2012-09-04 00:29:59 PST ---
(From update of attachment 161834)
View in context: https://bugs.webkit.org/attachment.cgi?id=161834&action=review
Please fix the failing tests and attach an example diff of the generated code.
> Source/WebCore/inspector/CodeGeneratorInspector.py:1871
> + void sendFailure(ErrorString);
const ErrorString&
> Source/WebCore/inspector/CodeGeneratorInspector.py:1874
> + virtual ~CallbackBase();
style: destructor should go right after the constructor
> Source/WebCore/inspector/CodeGeneratorInspector.py:1876
> + void sendIfActive(PassRefPtr<InspectorObject> partialMessage, ErrorString invocationError);
const ErrorString& also partialMessage can be just InspectorObject*
> Source/WebCore/inspector/CodeGeneratorInspector.py:1953
> + void sendResponse(long callId, PassRefPtr<InspectorObject> result, ErrorString invocationError);
|result| type should be InspectorObject* instead of PassRefPtr<InspectorObject>.
> Source/WebCore/inspector/CodeGeneratorInspector.py:2203
> + sendIfActive(PassRefPtr<InspectorObject>(), error);
sendIfActive(0, error)
> Source/WebCore/inspector/CodeGeneratorInspector.py:2208
> + return !m_alreadySent && m_backendImpl->isActive();
In theory we may end up sending response for a long-running command to a different frontend. Consider the following sequence: FE1 attaches and sends request1, then FE1 is detached and FE2 is attached, now reponse for the request1 is sent.
> Source/WebCore/inspector/CodeGeneratorInspector.py:2903
> + None, decl_parameter_list,
style nit: the line should be aligned by ( above.
> Source/WebCore/inspector/CodeGeneratorInspector.py:2949
> + setter_argument)
nit: weir alignment
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list