{"action":"created","issue":{"url":"https://api.github.com/repos/w3c/presentation-api/issues/91","labels_url":"https://api.github.com/repos/w3c/presentation-api/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/w3c/presentation-api/issues/91/comments","events_url":"https://api.github.com/repos/w3c/presentation-api/issues/91/events","html_url":"https://github.com/w3c/presentation-api/issues/91","id":80455409,"number":91,"title":"Separate interface for controlling page and presenting page","user":{"login":"schien","id":1792048,"avatar_url":"https://avatars.githubusercontent.com/u/1792048?v=3","gravatar_id":"","url":"https://api.github.com/users/schien","html_url":"https://github.com/schien","followers_url":"https://api.github.com/users/schien/followers","following_url":"https://api.github.com/users/schien/following{/other_user}","gists_url":"https://api.github.com/users/schien/gists{/gist_id}","starred_url":"https://api.github.com/users/schien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schien/subscriptions","organizations_url":"https://api.github.com/users/schien/orgs","repos_url":"https://api.github.com/users/schien/repos","events_url":"https://api.github.com/users/schien/events{/privacy}","received_events_url":"https://api.github.com/users/schien/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-25T08:52:42Z","updated_at":"2015-06-01T22:51:54Z","closed_at":null,"body":"Currently we mix the API for controlling page and presenting page in `NavigatorPresentation` and developer will use `navigator.presentation` as the entry point.\r\n\r\nSince we are providing more and more advance feature in this API (see #19), it's cumbersome to provide statement on the usage of each attribute/function.\r\n\r\nTherefore I propose to move all presenting page APIs into a different interface, called `PresentingContext`. The example definition will looks like:\r\n\r\n```\r\ninterface PresentingContext : EventTarget {\r\n  Promise<PresentationSession> getSession();\r\n  Sequence<PresentationSession> getSessions();\r\n  attribute EventHandler onsessionavailable;\r\n};\r\n\r\npartial interface Navigator {\r\n  readonly attibute PresentingContext presentingContext; // null if not presenting page\r\n};\r\n```"},"comment":{"url":"https://api.github.com/repos/w3c/presentation-api/issues/comments/107740175","html_url":"https://github.com/w3c/presentation-api/issues/91#issuecomment-107740175","issue_url":"https://api.github.com/repos/w3c/presentation-api/issues/91","id":107740175,"user":{"login":"mfoltzgoogle","id":1910312,"avatar_url":"https://avatars.githubusercontent.com/u/1910312?v=3","gravatar_id":"","url":"https://api.github.com/users/mfoltzgoogle","html_url":"https://github.com/mfoltzgoogle","followers_url":"https://api.github.com/users/mfoltzgoogle/followers","following_url":"https://api.github.com/users/mfoltzgoogle/following{/other_user}","gists_url":"https://api.github.com/users/mfoltzgoogle/gists{/gist_id}","starred_url":"https://api.github.com/users/mfoltzgoogle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfoltzgoogle/subscriptions","organizations_url":"https://api.github.com/users/mfoltzgoogle/orgs","repos_url":"https://api.github.com/users/mfoltzgoogle/repos","events_url":"https://api.github.com/users/mfoltzgoogle/events{/privacy}","received_events_url":"https://api.github.com/users/mfoltzgoogle/received_events","type":"User","site_admin":false},"created_at":"2015-06-01T22:51:54Z","updated_at":"2015-06-01T22:51:54Z","body":"I think I would like to define the conformance classes for the controlling/opening browsing context and the presenting browsing context as in #93 and re-outline the document as best as I can along those lines.\r\n\r\nThen it will be easier to introduce the new interfaces proposed by @schien since they will have a logical place in the new document.\r\n"}}