From: tinydew4 Date: Mon, 24 Oct 2016 07:41:15 +0000 (+0000) Subject: Apply the changes till the 'a2a4462' commit. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2c50f143466341c72d038a1f38bb1cd41a398ee7;p=platform%2Fframework%2Fweb%2Fcrosswalk-tizen.git Apply the changes till the 'a2a4462' commit. --- diff --git a/docs-translations/ko-KR/api/session.md b/docs-translations/ko-KR/api/session.md index 85866ed4f..0c49cc5e5 100644 --- a/docs-translations/ko-KR/api/session.md +++ b/docs-translations/ko-KR/api/session.md @@ -402,7 +402,7 @@ session.defaultSession.cookies.set(cookie, (error) => { #### Event: 'changed' * `event` Event -* `cookie` Object - 변경된 쿠키 +* `cookie` [Cookie](structures/cookie.md) - 변경된 쿠키 * `cause` String - 다음 값 중 하나인 변경된 이유: * `explicit` - 쿠키가 소비자의 행위에 의해 직접 변경되었습니다. * `overwrite` - 쿠키를 덮어쓰는 삽입 동작에 의해 자동으로 제거되었습니다. @@ -435,20 +435,7 @@ session.defaultSession.cookies.set(cookie, (error) => { `details` 객체에서 묘사한 모든 쿠키를 요청합니다. 모든 작업이 끝나면 `callback`이 `callback(error, cookies)` 형태로 호출됩니다. -`cookies`는 `cookie` 객체의 배열입니다. - -* `cookie` Object - * `name` String - 쿠키의 이름. - * `value` String - 쿠키의 값. - * `domain` String - 쿠키의 도메인. - * `hostOnly` String - 쿠키가 호스트 전용인가에 대한 여부. - * `path` String - 쿠키의 경로. - * `secure` Boolean - 쿠키가 안전한 것으로 표시되는지에 대한 여부. - * `httpOnly` Boolean - 쿠키가 HTTP로만 표시되는지에 대한 여부. - * `session` Boolean - 쿠키가 세션 쿠키 또는 만료일이 있는 영구 쿠키인지에 대한 - 여부. - * `expirationDate` Double - (Option) UNIX 시간으로 표시되는 쿠키의 만료일에 - 대한 초 단위 시간. 세션 쿠키는 지원되지 않음. +`cookies`는 [`cookie`](structures/cookie.md) 객체의 배열입니다. #### `ses.cookies.set(details, callback)` diff --git a/docs-translations/ko-KR/api/structures/bluetooth-device.md b/docs-translations/ko-KR/api/structures/bluetooth-device.md new file mode 100644 index 000000000..33d3bb51f --- /dev/null +++ b/docs-translations/ko-KR/api/structures/bluetooth-device.md @@ -0,0 +1,4 @@ +# BluetoothDevice Object + +* `deviceName` String +* `deviceId` String diff --git a/docs-translations/ko-KR/api/structures/cookie.md b/docs-translations/ko-KR/api/structures/cookie.md new file mode 100644 index 000000000..c3bacbad7 --- /dev/null +++ b/docs-translations/ko-KR/api/structures/cookie.md @@ -0,0 +1,13 @@ +# Cookie Object + +* `name` String - 쿠키의 이름. +* `value` String - 쿠키의 값. +* `domain` String - 쿠키의 도메인. +* `hostOnly` String - 쿠키가 호스트 전용인가에 대한 여부. +* `path` String - 쿠키의 경로. +* `secure` Boolean - 쿠키가 안전한 것으로 표시됐는지에 대한 여부. +* `httpOnly` Boolean - 쿠키가 HTTP 전용으로 표시됐는지에 대한 여부. +* `session` Boolean - 쿠키가 세션 쿠키인지 만료일이 있는 영구 쿠키인지에 대한 + 여부. +* `expirationDate` Double - (Optional) UNIX 시간으로 표시되는 쿠키의 만료일에 + 대한 초 단위 시간. 세션 쿠키는 지원되지 않음. diff --git a/docs-translations/ko-KR/api/web-contents.md b/docs-translations/ko-KR/api/web-contents.md index 117a6d9dc..b788afddb 100644 --- a/docs-translations/ko-KR/api/web-contents.md +++ b/docs-translations/ko-KR/api/web-contents.md @@ -145,9 +145,10 @@ Returns: * `frameName` String * `disposition` String - `default`, `foreground-tab`, `background-tab`, `new-window`, `save-to-disk`, `other`중 하나일 수 있습니다. -* `options` Object - 새로운 `BrowserWindow` 객체를 만들 때 사용되는 옵션 객체입니다. -* `additionalFeatures` Array - `window.open()` 에 주어진 (Chromium 또는 Electron - 에 의해 처리되지 않는) 비표준 기능. +* `options` Object - 새로운 `BrowserWindow` 객체를 만들 때 사용되는 옵션 + 객체입니다. +* `additionalFeatures` String[] - `window.open()` 에 주어진 (Chromium 또는 + Electron 에 의해 처리되지 않는) 비표준 기능. 페이지가 `url`에 대하여 새로운 윈도우를 열기위해 요청한 경우 발생하는 이벤트입니다. `window.open`이나 ``과 같은 외부 링크에 의해 요청될 수 있습니다. @@ -423,9 +424,7 @@ Returns: Returns: * `event` Event -* `devices` [Objects] - * `deviceName` String - * `deviceId` String +* `devices` [BluetoothDevice[]](structures/bluetooth-device.md) * `callback` Function * `deviceId` String @@ -1069,7 +1068,7 @@ Input `event`를 웹 페이지로 전송합니다. #### `contents.startDrag(item)` -* `item` object +* `item` Object * `file` String * `icon` [NativeImage](native-image.md) diff --git a/docs-translations/ko-KR/api/web-frame.md b/docs-translations/ko-KR/api/web-frame.md index 0e92da6b1..c9d989374 100644 --- a/docs-translations/ko-KR/api/web-frame.md +++ b/docs-translations/ko-KR/api/web-frame.md @@ -81,13 +81,27 @@ webFrame.setSpellCheckProvider('en-US', true, { 현재 페이지 콘텐츠의 보안 정책에 상관없이 `scheme`로부터 리소스가 로드됩니다. -### `webFrame.registerURLSchemeAsPrivileged(scheme)` +### `webFrame.registerURLSchemeAsPrivileged(scheme[, options])` - * `scheme` String +* `scheme` String +* `options` Object(optional) + * `secure` (optional) 기본값 참. + * `bypassCSP` (optional) 기본값 참. + * `allowServiceWorkers` (optional) 기본값 참. + * `supportFetchAPI` (optional) 기본값 참. + * `corsEnabled` (optional) 기본값 참. `scheme`를 보안된 스킴으로 등록합니다. 리소스에 대해 보안 정책을 우회하며, ServiceWorker의 등록과 fetch API를 사용할 수 있도록 지원합니다. +등록에서 그것을 빼려면 `false` 값으로 옵션을 지정하세요. +콘텐츠 보안 정책을 우회하지 않고, 특권 스킴을 등록하는 예: + +```javascript +const {webFrame} = require('electron') +webFrame.registerURLSchemeAsPrivileged('foo', { bypassCSP: false }) +``` + ### `webFrame.insertText(text)` * `text` String