From 4d305b06d1c2824e76e1dbebcb3b19b168730b8b Mon Sep 17 00:00:00 2001 From: Pierre Laurac Date: Wed, 12 Oct 2016 20:46:42 -0700 Subject: [PATCH] Adding documentation --- docs/api/browser-window.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/api/browser-window.md b/docs/api/browser-window.md index 345419eed24..56478039e27 100644 --- a/docs/api/browser-window.md +++ b/docs/api/browser-window.md @@ -664,6 +664,11 @@ the player itself we would call this function with arguments of 16/9 and are within the content view--only that they exist. Just sum any extra width and height areas you have within the overall content view. +#### `win.previewFile(pathname, filename)` + +* `pathname` String - The absolute path to the file to preview with QuickLook. This is important as Quicklook uses the file name and file extension on the path to determine the content_type of the file to open. +* `filename` String - The name of the file to display on QuickLook modal view. This is purely visual and does not affect the content_type of the file. + #### `win.setBounds(bounds[, animate])` * `bounds` [Rectangle](structures/rectangle.md)