| 35 | } |
| 36 | |
| 37 | void |
| 38 | APIBinding::EmitEvent( |
| 39 | const std::string& type, |
| 40 | scoped_ptr<base::DictionaryValue> event) |
| 41 | { |
| 42 | APIBindingRemote* remote = API::Get()->GetRemote(id_); |
| 43 | if(remote != NULL) { |
| 44 | remote->EmitEvent(type, event.Pass()); |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | } // namespace thrust_shell |