Re: [presentation-api] Separate interface for controlling page and presenting page

@schien what do you think of:

```idl
interface Presentation : EventTarget {
  attribute PresentationSession? defaultRequest;
  readonly attribute PresentationReceiver? receiver;
};

interface PresentationReceiver {
  Promise<PresentationSession> getSession();
  Promise<sequence<PresentationSession>> getSessions();
  attribute EventHandler onsessionavailable;
};
```

I think it has the benefit of splitting the receiver and sender APIs 
and also provide a good way to find out whether the current browsing 
context is a receiver (ie. navigator.presentation.receiver is not 
null).

-- 
GitHub Notif of comment by mounirlamouri
See 
https://github.com/w3c/presentation-api/issues/91#issuecomment-136528704

Received on Monday, 31 August 2015 23:41:27 UTC