Example #1
0
void
SpeechRecognition::ResetAndEnd()
{
    Reset();
    DispatchTrustedEvent(NS_LITERAL_STRING("end"));
}
Example #2
0
void
MediaSource::DispatchSimpleEvent(const char* aName)
{
  MSE_DEBUG("%p Dispatching event %s to MediaSource", this, aName);
  DispatchTrustedEvent(NS_ConvertUTF8toUTF16(aName));
}
void
ServiceWorkerContainer::ControllerChanged(ErrorResult& aRv)
{
    mControllerWorker = nullptr;
    aRv = DispatchTrustedEvent(NS_LITERAL_STRING("controllerchange"));
}