void Notification::dispatchClickEvent() { UserGestureIndicator gestureIndicator(DefinitelyProcessingNewUserGesture); ScopedWindowFocusAllowedIndicator windowFocusAllowed(executionContext()); dispatchEvent(Event::create(EventTypeNames::click)); }
void Notification::dispatchClickEvent() { UserGestureIndicator gestureIndicator( UserGestureToken::create(UserGestureToken::NewGesture)); ScopedWindowFocusAllowedIndicator windowFocusAllowed(getExecutionContext()); dispatchEvent(Event::create(EventTypeNames::click)); }