Closed
Bug 61692
Opened 24 years ago
Closed 24 years ago
nsIEventQueueService not IDLified
Categories
(Core :: XPCOM, enhancement, P3)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
People
(Reporter: dmosedale, Assigned: dmosedale)
Details
Attachments
(4 files)
21.89 KB,
patch
|
Details | Diff | Splinter Review | |
23.14 KB,
patch
|
Details | Diff | Splinter Review | |
23.10 KB,
patch
|
Details | Diff | Splinter Review | |
23.85 KB,
patch
|
Details | Diff | Splinter Review |
Creating proxy events from JavaScript requires handing an eventqueue to the proxy manager. So JS needs to be able to queuy the event queue service for event queues. I'm almost done with nsIEventQueue.idl and nsIEventQueueService.idl.
Comment 1•24 years ago
|
||
Could you also add a "ResolveEventQueue"-like function which will take a enum instead of an event queue and return the appropriate eventQ? how does |resolveEventQueueByEnum| sound? The two enums would be either the current thread's event queue or the UI thread's event queue.
Assignee | ||
Comment 2•24 years ago
|
||
Heh, after talking to jband and brendan, I came to the same conclusion earlier this evening. Should be straightforward; diffs coming soon to a bug near you.
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•24 years ago
|
||
Assignee | ||
Comment 4•24 years ago
|
||
I just took copies of the .h files and edited them until they were IDL. Added a nsIEventQueue::getSpecialEventQueue() which is a scriptable method to get either the current thread or UI thread's event queue. Peter, this should allow you to create a proxy object for calling back to the UI thread from JS, I think. Can you give it a shot and let me know if there's still stuff missing?
Assignee | ||
Comment 5•24 years ago
|
||
Assignee | ||
Comment 6•24 years ago
|
||
Assignee | ||
Comment 7•24 years ago
|
||
Comment 8•24 years ago
|
||
r=jband. Looks OK to me. You have to update the Mac project too right?
Comment 9•24 years ago
|
||
sr=brendan@mozilla.org -- don't toast the Mac! I think dmose is triple-thread (Mac, Win, and Linux machines on his desk) so I have faith. nsIEventQueue.idl could use some doc-comments, but since nsIEventQueue.h, which it is replacing, had none, we can fix this lack in a later step. File a bug? /be
Comment 10•24 years ago
|
||
Works out fine for me, i had to clobber mozilla/xpcom. I can now create proxies from JS, just have to make sure to use PROXY_SYNC. I can't help with testing on anything other than WinNT, my home machine (Mac) is about 300km away :-(.
Assignee | ||
Comment 11•24 years ago
|
||
Fix checked in on all three platforms last week; marking FIXED. Brendan: bug 62604 about doxygen comments filed. Peter: In a conversation with dougt, he said that PROXY_ASYNC should work from JS as well. If you're seeing problems with it, can you file a bug against him and CC me on it? Thanks.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•