Fix tabs vs. spaces

This commit is contained in:
Denis
2017-04-17 14:35:19 -04:00
parent 81f9cb769a
commit c71841152b
2 changed files with 43 additions and 43 deletions
+32 -32
View File
@@ -277,8 +277,8 @@ declare namespace Electron {
*/
setName(name: string): void;
/**
* @returns The current application locale.
*/
* @returns The current application locale.
*/
getLocale(): string;
/**
* Adds path to recent documents list.
@@ -2191,15 +2191,15 @@ declare namespace Electron {
/**
* Contains which features the dialog should use.
*/
properties?: ('openFile' | 'openDirectory' | 'multiSelections' | 'createDirectory' | 'showHiddenFiles' | 'promptToCreate' | 'noResolveAliases')[];
/**
* Normalize the keyboard access keys across platforms.
*/
normalizeAccessKeys?: boolean;
/**
* Message to display above input boxes.
*/
message?: string;
properties?: ('openFile' | 'openDirectory' | 'multiSelections' | 'createDirectory' | 'showHiddenFiles' | 'promptToCreate' | 'noResolveAliases')[];
/**
* Normalize the keyboard access keys across platforms.
*/
normalizeAccessKeys?: boolean;
/**
* Message to display above input boxes.
*/
message?: string;
}
interface SaveDialogOptions {
@@ -2216,18 +2216,18 @@ declare namespace Electron {
name: string;
extensions: string[];
}[];
/**
* macOS - Message to display above text fields.
*/
message?: string;
/**
* macOS - Custom label for the text displayed in front of the filename text field.
*/
nameFieldLabel?: string;
/**
* macOS - Show the tags input box, defaults to true.
*/
showsTagField?: boolean;
/**
* macOS - Message to display above text fields.
*/
message?: string;
/**
* macOS - Custom label for the text displayed in front of the filename text field.
*/
nameFieldLabel?: string;
/**
* macOS - Show the tags input box, defaults to true.
*/
showsTagField?: boolean;
}
interface ShowMessageBoxOptions {
@@ -2625,14 +2625,14 @@ declare namespace Electron {
*/
constructor();
/**
* Sets menu as the application menu on macOS. On Windows and Linux, the menu
* will be set as each window's top menu.
*/
static setApplicationMenu(menu: Menu): void;
/**
* @returns The application menu if set, or null if not set.
*/
static getApplicationMenu(): Menu;
* Sets menu as the application menu on macOS. On Windows and Linux, the menu
* will be set as each window's top menu.
*/
static setApplicationMenu(menu: Menu): void;
/**
* @returns The application menu if set, or null if not set.
*/
static getApplicationMenu(): Menu;
/**
* Sends the action to the first responder of application.
* This is used for emulating default Cocoa menu behaviors,
@@ -6141,4 +6141,4 @@ declare module 'electron' {
interface NodeRequireFunction {
(moduleName: 'electron'): Electron.ElectronMainAndRenderer;
}
}
+11 -11
View File
@@ -77,7 +77,7 @@ webFrame.registerURLSchemeAsPrivileged('app', {
webFrame.insertText('text');
webFrame.executeJavaScript('JSON.stringify({})', false, (result) => {
console.log(result);
console.log(result);
}).then((result: string) => console.log('OK:' + result));
console.log(webFrame.getResourceUsage());
@@ -149,25 +149,25 @@ function getUserMediaError(error: Error) {
/*
<div id="holder">
Drag your file here
Drag your file here
</div>
*/
var holder = document.getElementById('holder');
holder.ondragover = function () {
return false;
return false;
};
holder.ondragleave = holder.ondragend = function () {
return false;
return false;
};
holder.ondrop = function (e) {
e.preventDefault();
var file = e.dataTransfer.files[0];
console.log('File you dragged here is', file.path);
return false;
e.preventDefault();
var file = e.dataTransfer.files[0];
console.log('File you dragged here is', file.path);
return false;
};
// nativeImage
@@ -259,9 +259,9 @@ webview.send('ping');
webview.capturePage((image) => { console.log(image); });
{
const opened: boolean = webview.isDevToolsOpened();
const focused: boolean = webview.isDevToolsFocused();
const focused2: boolean = webview.getWebContents().isFocused();
const opened: boolean = webview.isDevToolsOpened();
const focused: boolean = webview.isDevToolsFocused();
const focused2: boolean = webview.getWebContents().isFocused();
}
// In guest page.