{"action":"created","comment":{"url":"https://api.github.com/repos/scala-js/scala-js-dom/pulls/comments/38512657","id":38512657,"diff_hunk":"@@ -0,0 +1,348 @@\n+package org.scalajs.dom.experimental\n+\n+import org.scalajs.dom.raw.EventTarget\n+import scala.language.implicitConversions\n+import scala.scalajs.js\n+import scala.scalajs.js.annotation.JSName\n+\n+trait NotificationOptions extends js.Object {\n+  /**\n+   * The body property of the Notification interface indicates the\n+   * body string of the notification.\n+   *\n+   * MDN\n+   */\n+  val body: String = js.native\n+\n+  /**\n+   * The dir property of the Notification interface indicates the\n+   * text direction of the notification.\n+   *\n+   * MDN\n+   */\n+  val dir: String = js.native\n+\n+  /**\n+   * The icon property of the Notification interface contains the\n+   * URL of an icon to be displayed as part of the notification.\n+   *\n+   * MDN\n+   */\n+  val icon: String = js.native\n+\n+  /**\n+   * The lang property of the Notification interface indicates the\n+   * text direction of the notification.\n+   *\n+   * MDN\n+   */\n+  val lang: String = js.native\n+\n+  /**\n+   * The noscreen property of the Notification interface specifies\n+   * whether the notification firing should enable the device's screen or not.\n+   *\n+   * MDN\n+   */\n+  val noscreen: Boolean = js.native\n+\n+  /**\n+   * The renotify property of the Notification interface specifies\n+   * whether the user should be notified after a new notification replaces an\n+   * old one.\n+   *\n+   * MDN\n+   */\n+  val renotify: Boolean = js.native\n+\n+  /**\n+   * The silent property of the Notification interface specifies\n+   * whether the notification should be silent, i.e. no sounds or vibrations\n+   * should be issued, regardless of the device settings.\n+   *\n+   * MDN\n+   */\n+  val silent: Boolean = js.native\n+\n+  /**\n+   * The sound property of the Notification interface specifies the\n+   * URL of an audio file to be played when the notification fires.\n+   *\n+   * MDN\n+   */\n+  val sound: String = js.native\n+\n+  /**\n+   * The sticky property of the Notification interface specifies\n+   * whether the notification should be 'sticky', i.e. not easily clearable\n+   * by the user.\n+   *\n+   * MDN\n+   */\n+  val sticky: Boolean = js.native\n+\n+  /**\n+   * The tag property of the Notification interface signifies an\n+   * identifying tag for the notification.\n+   *\n+   * The idea of notification tags is that more than one notification can\n+   * share the same tag, linking them together. One notification can then\n+   * be programmatically replaced with another to avoid the users' screen\n+   * being filled up with a huge number of similar notifications.\n+   *\n+   * MDN\n+   */\n+  val tag: String = js.native\n+\n+  /**\n+   * The title property of the Notification interface indicates\n+   * the title of the notification.\n+   *\n+   * MDN\n+   */\n+  val title: String = js.native\n+\n+  val vibrate: js.Array[Double] = js.native\n+}\n+\n+object NotificationOptions {\n+  /**\n+   * Construct a new NotificationOptions\n+   *\n+   * @param body      The body text of the notification.\n+   * @param dir       The text direction of the notification.\n+   * @param icon      The icon URL of the notification.\n+   * @param lang      The text direction of the notification.\n+   * @param noscreen  Boolean indicating if notification firing should enable\n+   *                  the device's screen or not\n+   * @param renotify  Boolean indicating whether the user should be notified\n+   *                  after a new notification replaces an old one.\n+   * @param silent    Boolean indicating specifies whether the notification\n+   *                  should be silent, i.e. no sounds or vibrations should\n+   *                  be issued, regardless of the device settings\n+   * @param sound     The URL of an audio file to be played when the\n+   *                  notification fires.\n+   * @param sticky    Boolean indicating whether the notification should be\n+   *                  'sticky', i.e. not easily clearable by the user.\n+   * @param tag       A text identifying tag for the notification.\n+   * @param title     The text title of the notification\n+   * @param vibrate   The vibration pattern for hardware to emit\n+   * @return a new NotificationOptions\n+   */\n+  @inline\n+  def apply(\n+             body: js.UndefOr[String] = js.undefined,","path":"src/main/scala/org/scalajs/dom/experimental/Notification.scala","position":134,"original_position":134,"commit_id":"613003d8b50f80bf6f4a2571ba31deead149f4dd","original_commit_id":"613003d8b50f80bf6f4a2571ba31deead149f4dd","user":{"login":"sjrd","id":535934,"avatar_url":"https://avatars.githubusercontent.com/u/535934?v=3","gravatar_id":"","url":"https://api.github.com/users/sjrd","html_url":"https://github.com/sjrd","followers_url":"https://api.github.com/users/sjrd/followers","following_url":"https://api.github.com/users/sjrd/following{/other_user}","gists_url":"https://api.github.com/users/sjrd/gists{/gist_id}","starred_url":"https://api.github.com/users/sjrd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjrd/subscriptions","organizations_url":"https://api.github.com/users/sjrd/orgs","repos_url":"https://api.github.com/users/sjrd/repos","events_url":"https://api.github.com/users/sjrd/events{/privacy}","received_events_url":"https://api.github.com/users/sjrd/received_events","type":"User","site_admin":false},"body":"Please follow the style I indicated earlier: parameters are indented 4 spaces wrt. `def`.","created_at":"2015-09-02T09:20:47Z","updated_at":"2015-09-02T09:20:47Z","html_url":"https://github.com/scala-js/scala-js-dom/pull/148#discussion_r38512657","pull_request_url":"https://api.github.com/repos/scala-js/scala-js-dom/pulls/148","_links":{"self":{"href":"https://api.github.com/repos/scala-js/scala-js-dom/pulls/comments/38512657"},"html":{"href":"https://github.com/scala-js/scala-js-dom/pull/148#discussion_r38512657"},"pull_request":{"href":"https://api.github.com/repos/scala-js/scala-js-dom/pulls/148"}}},"pull_request":{"url":"https://api.github.com/repos/scala-js/scala-js-dom/pulls/148","id":43906688,"html_url":"https://github.com/scala-js/scala-js-dom/pull/148","diff_url":"https://github.com/scala-js/scala-js-dom/pull/148.diff","patch_url":"https://github.com/scala-js/scala-js-dom/pull/148.patch","issue_url":"https://api.github.com/repos/scala-js/scala-js-dom/issues/148","number":148,"state":"open","locked":false,"title":"Add the Notification API","user":{"login":"coreyauger","id":1414300,"avatar_url":"https://avatars.githubusercontent.com/u/1414300?v=3","gravatar_id":"","url":"https://api.github.com/users/coreyauger","html_url":"https://github.com/coreyauger","followers_url":"https://api.github.com/users/coreyauger/followers","following_url":"https://api.github.com/users/coreyauger/following{/other_user}","gists_url":"https://api.github.com/users/coreyauger/gists{/gist_id}","starred_url":"https://api.github.com/users/coreyauger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coreyauger/subscriptions","organizations_url":"https://api.github.com/users/coreyauger/orgs","repos_url":"https://api.github.com/users/coreyauger/repos","events_url":"https://api.github.com/users/coreyauger/events{/privacy}","received_events_url":"https://api.github.com/users/coreyauger/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-01T18:00:42Z","updated_at":"2015-09-02T09:20:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"09f4bc1ce6b755c50d9536c2a6e9c480c774ff83","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/scala-js/scala-js-dom/pulls/148/commits","review_comments_url":"https://api.github.com/repos/scala-js/scala-js-dom/pulls/148/comments","review_comment_url":"https://api.github.com/repos/scala-js/scala-js-dom/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scala-js/scala-js-dom/issues/148/comments","statuses_url":"https://api.github.com/repos/scala-js/scala-js-dom/statuses/613003d8b50f80bf6f4a2571ba31deead149f4dd","head":{"label":"coreyauger:notification-api","ref":"notification-api","sha":"613003d8b50f80bf6f4a2571ba31deead149f4dd","user":{"login":"coreyauger","id":1414300,"avatar_url":"https://avatars.githubusercontent.com/u/1414300?v=3","gravatar_id":"","url":"https://api.github.com/users/coreyauger","html_url":"https://github.com/coreyauger","followers_url":"https://api.github.com/users/coreyauger/followers","following_url":"https://api.github.com/users/coreyauger/following{/other_user}","gists_url":"https://api.github.com/users/coreyauger/gists{/gist_id}","starred_url":"https://api.github.com/users/coreyauger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coreyauger/subscriptions","organizations_url":"https://api.github.com/users/coreyauger/orgs","repos_url":"https://api.github.com/users/coreyauger/repos","events_url":"https://api.github.com/users/coreyauger/events{/privacy}","received_events_url":"https://api.github.com/users/coreyauger/received_events","type":"User","site_admin":false},"repo":{"id":41752284,"name":"scala-js-dom","full_name":"coreyauger/scala-js-dom","owner":{"login":"coreyauger","id":1414300,"avatar_url":"https://avatars.githubusercontent.com/u/1414300?v=3","gravatar_id":"","url":"https://api.github.com/users/coreyauger","html_url":"https://github.com/coreyauger","followers_url":"https://api.github.com/users/coreyauger/followers","following_url":"https://api.github.com/users/coreyauger/following{/other_user}","gists_url":"https://api.github.com/users/coreyauger/gists{/gist_id}","starred_url":"https://api.github.com/users/coreyauger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coreyauger/subscriptions","organizations_url":"https://api.github.com/users/coreyauger/orgs","repos_url":"https://api.github.com/users/coreyauger/repos","events_url":"https://api.github.com/users/coreyauger/events{/privacy}","received_events_url":"https://api.github.com/users/coreyauger/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/coreyauger/scala-js-dom","description":"statically typed dom wrappers for scala-js","fork":true,"url":"https://api.github.com/repos/coreyauger/scala-js-dom","forks_url":"https://api.github.com/repos/coreyauger/scala-js-dom/forks","keys_url":"https://api.github.com/repos/coreyauger/scala-js-dom/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coreyauger/scala-js-dom/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coreyauger/scala-js-dom/teams","hooks_url":"https://api.github.com/repos/coreyauger/scala-js-dom/hooks","issue_events_url":"https://api.github.com/repos/coreyauger/scala-js-dom/issues/events{/number}","events_url":"https://api.github.com/repos/coreyauger/scala-js-dom/events","assignees_url":"https://api.github.com/repos/coreyauger/scala-js-dom/assignees{/user}","branches_url":"https://api.github.com/repos/coreyauger/scala-js-dom/branches{/branch}","tags_url":"https://api.github.com/repos/coreyauger/scala-js-dom/tags","blobs_url":"https://api.github.com/repos/coreyauger/scala-js-dom/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coreyauger/scala-js-dom/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coreyauger/scala-js-dom/git/refs{/sha}","trees_url":"https://api.github.com/repos/coreyauger/scala-js-dom/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coreyauger/scala-js-dom/statuses/{sha}","languages_url":"https://api.github.com/repos/coreyauger/scala-js-dom/languages","stargazers_url":"https://api.github.com/repos/coreyauger/scala-js-dom/stargazers","contributors_url":"https://api.github.com/repos/coreyauger/scala-js-dom/contributors","subscribers_url":"https://api.github.com/repos/coreyauger/scala-js-dom/subscribers","subscription_url":"https://api.github.com/repos/coreyauger/scala-js-dom/subscription","commits_url":"https://api.github.com/repos/coreyauger/scala-js-dom/commits{/sha}","git_commits_url":"https://api.github.com/repos/coreyauger/scala-js-dom/git/commits{/sha}","comments_url":"https://api.github.com/repos/coreyauger/scala-js-dom/comments{/number}","issue_comment_url":"https://api.github.com/repos/coreyauger/scala-js-dom/issues/comments{/number}","contents_url":"https://api.github.com/repos/coreyauger/scala-js-dom/contents/{+path}","compare_url":"https://api.github.com/repos/coreyauger/scala-js-dom/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coreyauger/scala-js-dom/merges","archive_url":"https://api.github.com/repos/coreyauger/scala-js-dom/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coreyauger/scala-js-dom/downloads","issues_url":"https://api.github.com/repos/coreyauger/scala-js-dom/issues{/number}","pulls_url":"https://api.github.com/repos/coreyauger/scala-js-dom/pulls{/number}","milestones_url":"https://api.github.com/repos/coreyauger/scala-js-dom/milestones{/number}","notifications_url":"https://api.github.com/repos/coreyauger/scala-js-dom/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coreyauger/scala-js-dom/labels{/name}","releases_url":"https://api.github.com/repos/coreyauger/scala-js-dom/releases{/id}","created_at":"2015-09-01T17:12:15Z","updated_at":"2015-09-01T17:12:15Z","pushed_at":"2015-09-01T21:31:35Z","git_url":"git://github.com/coreyauger/scala-js-dom.git","ssh_url":"git@github.com:coreyauger/scala-js-dom.git","clone_url":"https://github.com/coreyauger/scala-js-dom.git","svn_url":"https://github.com/coreyauger/scala-js-dom","homepage":null,"size":3067,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"scala-js:master","ref":"master","sha":"e6a2c82b29aee2e9062086e6bd910499e365f0c6","user":{"login":"scala-js","id":6039724,"avatar_url":"https://avatars.githubusercontent.com/u/6039724?v=3","gravatar_id":"","url":"https://api.github.com/users/scala-js","html_url":"https://github.com/scala-js","followers_url":"https://api.github.com/users/scala-js/followers","following_url":"https://api.github.com/users/scala-js/following{/other_user}","gists_url":"https://api.github.com/users/scala-js/gists{/gist_id}","starred_url":"https://api.github.com/users/scala-js/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scala-js/subscriptions","organizations_url":"https://api.github.com/users/scala-js/orgs","repos_url":"https://api.github.com/users/scala-js/repos","events_url":"https://api.github.com/users/scala-js/events{/privacy}","received_events_url":"https://api.github.com/users/scala-js/received_events","type":"Organization","site_admin":false},"repo":{"id":13578796,"name":"scala-js-dom","full_name":"scala-js/scala-js-dom","owner":{"login":"scala-js","id":6039724,"avatar_url":"https://avatars.githubusercontent.com/u/6039724?v=3","gravatar_id":"","url":"https://api.github.com/users/scala-js","html_url":"https://github.com/scala-js","followers_url":"https://api.github.com/users/scala-js/followers","following_url":"https://api.github.com/users/scala-js/following{/other_user}","gists_url":"https://api.github.com/users/scala-js/gists{/gist_id}","starred_url":"https://api.github.com/users/scala-js/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scala-js/subscriptions","organizations_url":"https://api.github.com/users/scala-js/orgs","repos_url":"https://api.github.com/users/scala-js/repos","events_url":"https://api.github.com/users/scala-js/events{/privacy}","received_events_url":"https://api.github.com/users/scala-js/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scala-js/scala-js-dom","description":"statically typed dom wrappers for scala-js","fork":false,"url":"https://api.github.com/repos/scala-js/scala-js-dom","forks_url":"https://api.github.com/repos/scala-js/scala-js-dom/forks","keys_url":"https://api.github.com/repos/scala-js/scala-js-dom/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scala-js/scala-js-dom/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scala-js/scala-js-dom/teams","hooks_url":"https://api.github.com/repos/scala-js/scala-js-dom/hooks","issue_events_url":"https://api.github.com/repos/scala-js/scala-js-dom/issues/events{/number}","events_url":"https://api.github.com/repos/scala-js/scala-js-dom/events","assignees_url":"https://api.github.com/repos/scala-js/scala-js-dom/assignees{/user}","branches_url":"https://api.github.com/repos/scala-js/scala-js-dom/branches{/branch}","tags_url":"https://api.github.com/repos/scala-js/scala-js-dom/tags","blobs_url":"https://api.github.com/repos/scala-js/scala-js-dom/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scala-js/scala-js-dom/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scala-js/scala-js-dom/git/refs{/sha}","trees_url":"https://api.github.com/repos/scala-js/scala-js-dom/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scala-js/scala-js-dom/statuses/{sha}","languages_url":"https://api.github.com/repos/scala-js/scala-js-dom/languages","stargazers_url":"https://api.github.com/repos/scala-js/scala-js-dom/stargazers","contributors_url":"https://api.github.com/repos/scala-js/scala-js-dom/contributors","subscribers_url":"https://api.github.com/repos/scala-js/scala-js-dom/subscribers","subscription_url":"https://api.github.com/repos/scala-js/scala-js-dom/subscription","commits_url":"https://api.github.com/repos/scala-js/scala-js-dom/commits{/sha}","git_commits_url":"https://api.github.com/repos/scala-js/scala-js-dom/git/commits{/sha}","comments_url":"https://api.github.com/repos/scala-js/scala-js-dom/comments{/number}","issue_comment_url":"https://api.github.com/repos/scala-js/scala-js-dom/issues/comments{/number}","contents_url":"https://api.github.com/repos/scala-js/scala-js-dom/contents/{+path}","compare_url":"https://api.github.com/repos/scala-js/scala-js-dom/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scala-js/scala-js-dom/merges","archive_url":"https://api.github.com/repos/scala-js/scala-js-dom/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scala-js/scala-js-dom/downloads","issues_url":"https://api.github.com/repos/scala-js/scala-js-dom/issues{/number}","pulls_url":"https://api.github.com/repos/scala-js/scala-js-dom/pulls{/number}","milestones_url":"https://api.github.com/repos/scala-js/scala-js-dom/milestones{/number}","notifications_url":"https://api.github.com/repos/scala-js/scala-js-dom/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scala-js/scala-js-dom/labels{/name}","releases_url":"https://api.github.com/repos/scala-js/scala-js-dom/releases{/id}","created_at":"2013-10-15T02:35:07Z","updated_at":"2015-09-01T16:22:31Z","pushed_at":"2015-09-02T04:45:47Z","git_url":"git://github.com/scala-js/scala-js-dom.git","ssh_url":"git@github.com:scala-js/scala-js-dom.git","clone_url":"https://github.com/scala-js/scala-js-dom.git","svn_url":"https://github.com/scala-js/scala-js-dom","homepage":null,"size":3067,"stargazers_count":93,"watchers_count":93,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":38,"mirror_url":null,"open_issues_count":10,"forks":38,"open_issues":10,"watchers":93,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scala-js/scala-js-dom/pulls/148"},"html":{"href":"https://github.com/scala-js/scala-js-dom/pull/148"},"issue":{"href":"https://api.github.com/repos/scala-js/scala-js-dom/issues/148"},"comments":{"href":"https://api.github.com/repos/scala-js/scala-js-dom/issues/148/comments"},"review_comments":{"href":"https://api.github.com/repos/scala-js/scala-js-dom/pulls/148/comments"},"review_comment":{"href":"https://api.github.com/repos/scala-js/scala-js-dom/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scala-js/scala-js-dom/pulls/148/commits"},"statuses":{"href":"https://api.github.com/repos/scala-js/scala-js-dom/statuses/613003d8b50f80bf6f4a2571ba31deead149f4dd"}}}}