MouseEventManager: use private class instead of typedef