:memo: Update as upstream
authorPlusb Preco <plusb21@gmail.com>
Mon, 1 Feb 2016 18:58:51 +0000 (03:58 +0900)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 2 Feb 2016 02:12:42 +0000 (10:12 +0800)
[ci skip]

docs-translations/ko-KR/api/app.md
docs-translations/ko-KR/api/menu.md
docs-translations/ko-KR/api/session.md
docs-translations/ko-KR/api/web-contents.md

index cfcd4ee..ec4cb74 100644 (file)
@@ -252,6 +252,14 @@ GPU가 작동하던 중 크래시가 일어났을 때 발생하는 이벤트입
 `beforeunload` 이벤트 핸들러에서 `false`를 반환했을 때 윈도우 종료가 취소 될 수
 있습니다.
 
+### `app.hide()` _OS X_
+
+최소화를 하지 않고 어플리케이션의 모든 윈도우들을 숨깁니다.
+
+### `app.show()` _OS X_
+
+숨긴 어플리케이션 윈도우들을 다시 보이게 만듭니다. 자동으로 포커스되지 않습니다.
+
 ### `app.exit(exitCode)`
 
 * `exitCode` Integer
index a2d5b8d..347ea88 100644 (file)
@@ -293,6 +293,11 @@ OS X에선 지정한 어플리케이션 메뉴에 상관없이 메뉴의 첫번
 이름이 됩니다. 어플리케이션 이름을 변경하려면 앱 번들내의 `Info.plist` 파일을 수정해야
 합니다. 자세한 내용은 [About Information Property List Files][AboutInformationPropertyListFiles] 문서를 참고하세요.
 
+## 지정한 브라우저 윈도우에 메뉴 설정 (*Linux* *Windows*)
+
+브라우저 윈도우의 [`setMenu` 메서드][setMenu]는 어떤 브라우저 윈도우의 메뉴를 설정할
+수 있습니다.
+
 ## 메뉴 아이템 위치
 
 `Menu.buildFromTemplate`로 메뉴를 만들 때 `position`과 `id`를 사용해서 아이템의
@@ -367,3 +372,4 @@ OS X에선 지정한 어플리케이션 메뉴에 상관없이 메뉴의 첫번
 ```
 
 [AboutInformationPropertyListFiles]: https://developer.apple.com/library/ios/documentation/general/Reference/InfoPlistKeyReference/Articles/AboutInformationPropertyListFiles.html
+[setMenu]: https://github.com/atom/electron/blob/master/docs/api/browser-window.md#winsetmenumenu-linux-windows
index de5c088..59eceb0 100644 (file)
@@ -288,6 +288,30 @@ myWindow.webContents.session.setCertificateVerifyProc(function(hostname, cert, c
    callback(false);
 });
 ```
+#### `ses.setPermissionRequestHandler(handler)`
+
+* `handler` Function
+  * `webContents` Object - [WebContents](web-contents.md) 권한을 요청.
+  * `permission`  String - 'media', 'geolocation', 'notifications',
+    'midiSysex'의 나열.
+  * `callback`  Function - 권한 허용 및 거부.
+
+`session`의 권한 요청에 응답을 하는데 사용하는 핸들러를 설정합니다.
+`callback('granted')`를 호출하면 권한 제공을 허용하고 `callback('denied')`를
+호출하면 권한 제공을 거부합니다.
+
+```javascript
+session.fromPartition(partition).setPermissionRequestHandler(function(webContents, permission, callback) {
+  if (webContents.getURL() === host) {
+    if (permission == "notifications") {
+      callback(); // 거부됨.
+      return;
+    }
+  }
+
+  callback('granted');
+});
+```
 
 #### `ses.webRequest`
 
index 4d688a4..3f9a7da 100644 (file)
@@ -278,6 +278,28 @@ Returns:
 <meta name='theme-color' content='#ff0000'>
 ```
 
+### Event: 'cursor-changed'
+
+Returns:
+
+* `event` Event
+* `type` String
+* `image` NativeImage (optional)
+* `scale` Float (optional)
+
+커서 타입이 변경될 때 발생하는 이벤트입니다. `type` 매개변수는 다음 값이 될 수 있습니다:
+`default`, `crosshair`, `pointer`, `text`, `wait`, `help`, `e-resize`, `n-resize`,
+`ne-resize`, `nw-resize`, `s-resize`, `se-resize`, `sw-resize`, `w-resize`,
+`ns-resize`, `ew-resize`, `nesw-resize`, `nwse-resize`, `col-resize`,
+`row-resize`, `m-panning`, `e-panning`, `n-panning`, `ne-panning`, `nw-panning`,
+`s-panning`, `se-panning`, `sw-panning`, `w-panning`, `move`, `vertical-text`,
+`cell`, `context-menu`, `alias`, `progress`, `nodrop`, `copy`, `none`,
+`not-allowed`, `zoom-in`, `zoom-out`, `grab`, `grabbing`, `custom`.
+
+만약 `type` 매개변수가 `custom` 이고 `image` 매개변수가 `NativeImage`를 통한 커스텀
+커서를 지정했을 때, 해당 이미지로 커서가 변경됩니다. 또한 `scale` 매개변수는 이미지의
+크기를 조정합니다.
+
 ## Instance Methods
 
 `webContents`객체는 다음과 같은 인스턴스 메서드들을 가지고 있습니다.