Minor formatting tweaks

This commit is contained in:
Kevin Sawicki 2016-10-26 09:55:34 +09:00
parent d982376fc4
commit d85c4da11b
3 changed files with 5 additions and 6 deletions

View file

@ -731,9 +731,8 @@ void Window::SetAspectRatio(double aspect_ratio, mate::Arguments* args) {
void Window::PreviewFile(const std::string& path, mate::Arguments* args) {
std::string display_name;
if (!args->GetNext(&display_name)) {
if (!args->GetNext(&display_name))
display_name = path;
}
window_->PreviewFile(path, display_name);
}

View file

@ -4,8 +4,8 @@
#include "atom/browser/native_window_mac.h"
#include <string>
#include <Quartz/Quartz.h>
#include <string>
#include "atom/browser/window_list.h"
#include "atom/common/color_util.h"

View file

@ -664,11 +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[, displayName])` _macOS_
#### `win.previewFile(path[, displayName])` _macOS_
* `path` String - The absolute path to the file to preview with QuickLook. This
is important as Quick Look uses the file name and file extension on the path to
determine the content type of the file to open.
is important as Quick Look uses the file name and file extension on the path
to determine the content type of the file to open.
* `displayName` String (Optional) - The name of the file to display on the
Quick Look modal view. This is purely visual and does not affect the content
type of the file. Defaults to `path`.