add save-to-disk disposition for new-window event
authordeepak1556 <hop2deep@gmail.com>
Fri, 16 Sep 2016 11:00:26 +0000 (16:30 +0530)
committerdeepak1556 <hop2deep@gmail.com>
Fri, 16 Sep 2016 11:00:26 +0000 (16:30 +0530)
atom/browser/api/atom_api_web_contents.cc
docs/api/web-contents.md
docs/api/web-view-tag.md

index a48e8dd..d9b47d0 100644 (file)
@@ -134,6 +134,7 @@ struct Converter<WindowOpenDisposition> {
       case NEW_FOREGROUND_TAB: disposition = "foreground-tab"; break;
       case NEW_BACKGROUND_TAB: disposition = "background-tab"; break;
       case NEW_POPUP: case NEW_WINDOW: disposition = "new-window"; break;
+      case SAVE_TO_DISK: disposition = "save-to-disk"; break;
       default: break;
     }
     return mate::ConvertToV8(isolate, disposition);
index 47aa43b..55cbfc6 100644 (file)
@@ -144,7 +144,7 @@ Returns:
 * `url` String
 * `frameName` String
 * `disposition` String - Can be `default`, `foreground-tab`, `background-tab`,
-  `new-window` and `other`.
+  `new-window`, `save-to-disk` and `other`.
 * `options` Object - The options which will be used for creating the new
   `BrowserWindow`.
 
index bda4858..61f0ebd 100644 (file)
@@ -670,7 +670,7 @@ Returns:
 * `url` String
 * `frameName` String
 * `disposition` String - Can be `default`, `foreground-tab`, `background-tab`,
-  `new-window` and `other`.
+  `new-window`, `save-to-disk` and `other`.
 * `options` Object - The options which should be used for creating the new
   `BrowserWindow`.