OLD | NEW |
1 class {{interface.name}}Stub : public mojo::MessageReceiverWithResponder { | 1 class {{interface.name}}Stub : public mojo::MessageReceiverWithResponder { |
2 public: | 2 public: |
3 {{interface.name}}Stub(); | 3 {{interface.name}}Stub(); |
4 void set_sink({{interface.name}}* sink) { sink_ = sink; } | 4 void set_sink({{interface.name}}* sink) { sink_ = sink; } |
5 {{interface.name}}* sink() { return sink_; } | 5 {{interface.name}}* sink() { return sink_; } |
6 | 6 |
7 virtual bool Accept(mojo::Message* message) MOJO_OVERRIDE; | 7 virtual bool Accept(mojo::Message* message) override; |
8 virtual bool AcceptWithResponder(mojo::Message* message, | 8 virtual bool AcceptWithResponder(mojo::Message* message, |
9 mojo::MessageReceiver* responder) | 9 mojo::MessageReceiver* responder) override; |
10 MOJO_OVERRIDE; | |
11 | 10 |
12 private: | 11 private: |
13 {{interface.name}}* sink_; | 12 {{interface.name}}* sink_; |
14 }; | 13 }; |
OLD | NEW |