Commit cca1cb2f authored by Hixie's avatar Hixie

Actually return a SemanticsServer service.

parent 687ff57e
...@@ -68,7 +68,8 @@ abstract class Renderer extends Object with Scheduler, MojoShell ...@@ -68,7 +68,8 @@ abstract class Renderer extends Object with Scheduler, MojoShell
void initSemantics() { void initSemantics() {
SemanticsNode.onSemanticsEnabled = renderView.scheduleInitialSemantics; SemanticsNode.onSemanticsEnabled = renderView.scheduleInitialSemantics;
provideService(mojom.SemanticsServer.serviceName, (core.MojoMessagePipeEndpoint endpoint) { provideService(mojom.SemanticsServer.serviceName, (core.MojoMessagePipeEndpoint endpoint) {
return new SemanticsServer(); mojom.SemanticsServerStub server = new mojom.SemanticsServerStub.fromEndpoint(endpoint);
server.impl = new SemanticsServer();
}); });
} }
......
...@@ -439,8 +439,8 @@ class SemanticsNode extends AbstractNode { ...@@ -439,8 +439,8 @@ class SemanticsNode extends AbstractNode {
} }
class SemanticsServer extends mojom.SemanticsServer { class SemanticsServer extends mojom.SemanticsServer {
void addSemanticsListener(mojom.SemanticsListener listener) { void addSemanticsListener(mojom.SemanticsListenerProxy listener) {
SemanticsNode.addListener(listener); SemanticsNode.addListener(listener.ptr);
} }
void tap(int nodeID) { void tap(int nodeID) {
SemanticsNode.getSemanticActionHandlerForId(nodeID, neededFlag: _SemanticFlags.canBeTapped)?.handleSemanticTap(); SemanticsNode.getSemanticActionHandlerForId(nodeID, neededFlag: _SemanticFlags.canBeTapped)?.handleSemanticTap();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment