// in the mojom
interface FoobarClient {
DoSomethingDone();
};
interface Foobar {
DoSomething(FoobarClient client);
};
// In the FoobarImpl
void FoobarImpl::DoSomething(FoobarClientPtr client) {
client->DoSomethingDone();
}
// In a Foobar consumer
foobar->DoSomething(binding_.CreateInterfacePtrAndBind());
// Wait for DoSomethingDone.
binding_.WaitForIncomingMethodCall();
--
You received this message because you are subscribed to the Google Groups "chromium-mojo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-mojo+unsubscribe@chromium.org.
To post to this group, send email to chromi...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-mojo/CAE8Xsdi7JqGcUN_s20Z%3DD_Xxja6XC%3D6ibD_%2BBUOt25nqj-WtBA%40mail.gmail.com.
This is the common pattern I've seen so far, but I'm not sure if it's the ideal pattern:// in the mojom
interface FoobarClient {
DoSomethingDone();
};
interface Foobar {
DoSomething(FoobarClient client);
};
// In the FoobarImpl
void FoobarImpl::DoSomething(FoobarClientPtr client) {
client->DoSomethingDone();
}
// In a Foobar consumer
foobar->DoSomething(binding_.CreateInterfacePtrAndBind());
// Wait for DoSomethingDone.
binding_.WaitForIncomingMethodCall();
Fady
On Thu, Jan 28, 2016 at 12:47 PM, Peter Beverloo <pe...@chromium.org> wrote:
Hi chromium-mojo,I have a synchronous IPC message from the renderer to the browser that is needed to support a Web exposed feature with too much usage to deprecate.Is there an established upgrade path to Mojo for this situation?If there isn't, it would be good to establish one as there are a few features that are likely to run in to this (appcache, clipboard, File API, notifications).Thanks,Peter
--
You received this message because you are subscribed to the Google Groups "chromium-mojo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-moj...@chromium.org.
To post to this group, send email to chromi...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-mojo/CAE8Xsdi7JqGcUN_s20Z%3DD_Xxja6XC%3D6ibD_%2BBUOt25nqj-WtBA%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "chromium-mojo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-moj...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-mojo/CAMZzjTkPATzWJ%3DE_%2BVZMsyWpSxns6fyE-h8KJZwQagPcUt5EYg%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-moj...@chromium.org.