Return-Path: X-Original-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5F684D25E for ; Mon, 16 Jul 2012 15:52:50 +0000 (UTC) Received: (qmail 11615 invoked by uid 500); 16 Jul 2012 15:52:50 -0000 Delivered-To: apmail-incubator-callback-commits-archive@incubator.apache.org Received: (qmail 11556 invoked by uid 500); 16 Jul 2012 15:52:50 -0000 Mailing-List: contact callback-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-commits@incubator.apache.org Received: (qmail 11540 invoked by uid 99); 16 Jul 2012 15:52:49 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jul 2012 15:52:49 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 66E5C1484A; Mon, 16 Jul 2012 15:52:49 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: mwbrooks@apache.org To: callback-commits@incubator.apache.org X-Mailer: ASF-Git Admin Mailer Subject: docs commit: [#1067] Fix generator parse token errors. Message-Id: <20120716155249.66E5C1484A@tyr.zones.apache.org> Date: Mon, 16 Jul 2012 15:52:49 +0000 (UTC) Updated Branches: refs/heads/master fe896d352 -> 338f98c00 [#1067] Fix generator parse token errors. Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/commit/338f98c0 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/tree/338f98c0 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/diff/338f98c0 Branch: refs/heads/master Commit: 338f98c00b956964d5760a681edc5849d4b880d5 Parents: fe896d3 Author: Michael Brooks Authored: Mon Jul 16 08:52:33 2012 -0700 Committer: Michael Brooks Committed: Mon Jul 16 08:52:33 2012 -0700 ---------------------------------------------------------------------- docs/jp/1.8.1/config.json | 2 +- .../1.8.1/cordova/camera/CameraPopoverOptions.md | 71 --------------- .../camera/parameter/CameraPopoverOptions.md | 71 +++++++++++++++ 3 files changed, 72 insertions(+), 72 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/338f98c0/docs/jp/1.8.1/config.json ---------------------------------------------------------------------- diff --git a/docs/jp/1.8.1/config.json b/docs/jp/1.8.1/config.json index 59dc21a..13f3f1c 100644 --- a/docs/jp/1.8.1/config.json +++ b/docs/jp/1.8.1/config.json @@ -16,7 +16,7 @@ "cordova/camera/camera.getPicture.md", "cordova/camera/parameter/cameraSuccess.md", "cordova/camera/parameter/cameraError.md", - "cordova/camera/parameter/cameraOptions.md" + "cordova/camera/parameter/cameraOptions.md", "cordova/camera/parameter/cameraPopoverOptions.md" ], "capture.md": [ http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/338f98c0/docs/jp/1.8.1/cordova/camera/CameraPopoverOptions.md ---------------------------------------------------------------------- diff --git a/docs/jp/1.8.1/cordova/camera/CameraPopoverOptions.md b/docs/jp/1.8.1/cordova/camera/CameraPopoverOptions.md deleted file mode 100644 index 6a329d5..0000000 --- a/docs/jp/1.8.1/cordova/camera/CameraPopoverOptions.md +++ /dev/null @@ -1,71 +0,0 @@ ---- -license: Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---- - -CameraPopoverOptions -==================== - -画像をライブラリーもしくはアルバムから選択する際の、 iPad でのポップオーバーの位置や矢印の向きを指定するためのパラメーターです。 iOS のみのオプションです。 - - { x : 0, - y : 32, - width : 320, - height : 480, - arrowDir : Camera.PopoverArrowDirection.ARROW_ANY - }; - -CameraPopoverOptions --------------------- - -- __x:__ ポップオーバーの x 座標をピクセルで表します。 (`Number`) - -- __y:__ ポップオーバーの y 座標をピクセルで表します。 (`Number`) - -- __width:__ ポップオーバーの幅をピクセルで表します。 (`Number`) - -- __height:__ ポップオーバーの高さをピクセルで表します。 (`Number`) - -- __arrowDir:__ ポップオーバーの矢印の向きを表します。 Camera.PopoverArrowDirection で定義されます。 (`Number`) - - Camera.PopoverArrowDirection = { - ARROW_UP : 1, // iOS の UIPopoverArrowDirection 定数に同じ - ARROW_DOWN : 2, - ARROW_LEFT : 4, - ARROW_RIGHT : 8, - ARROW_ANY : 15 - }; - -ポップオーバーのサイズは矢印の方向や画面の向きによって調節され、変わる可能性があることについて注意してください。アンカー要素の位置を特定するとき、画面の向きの変化を考慮に入れることを忘れないで下さい。 - -使用例 -------------- - - var popover = new CameraPopoverOptions(300,300,100,100,Camera.PopoverArrowDirection.ARROW_ANY); - var options = { quality: 50, destinationType: Camera.DestinationType.DATA_URL,sourceType: Camera.PictureSource.SAVEDPHOTOALBUM, popoverOptions : popover }; - - navigator.camera.getPicture(onSuccess, onFail, options); - - function onSuccess(imageData) { - var image = document.getElementById('myImage'); - image.src = "data:image/jpeg;base64," + imageData; - } - - function onFail(message) { - alert('Failed because: ' + message); - } - http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/338f98c0/docs/jp/1.8.1/cordova/camera/parameter/CameraPopoverOptions.md ---------------------------------------------------------------------- diff --git a/docs/jp/1.8.1/cordova/camera/parameter/CameraPopoverOptions.md b/docs/jp/1.8.1/cordova/camera/parameter/CameraPopoverOptions.md new file mode 100644 index 0000000..6a329d5 --- /dev/null +++ b/docs/jp/1.8.1/cordova/camera/parameter/CameraPopoverOptions.md @@ -0,0 +1,71 @@ +--- +license: Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--- + +CameraPopoverOptions +==================== + +画像をライブラリーもしくはアルバムから選択する際の、 iPad でのポップオーバーの位置や矢印の向きを指定するためのパラメーターです。 iOS のみのオプションです。 + + { x : 0, + y : 32, + width : 320, + height : 480, + arrowDir : Camera.PopoverArrowDirection.ARROW_ANY + }; + +CameraPopoverOptions +-------------------- + +- __x:__ ポップオーバーの x 座標をピクセルで表します。 (`Number`) + +- __y:__ ポップオーバーの y 座標をピクセルで表します。 (`Number`) + +- __width:__ ポップオーバーの幅をピクセルで表します。 (`Number`) + +- __height:__ ポップオーバーの高さをピクセルで表します。 (`Number`) + +- __arrowDir:__ ポップオーバーの矢印の向きを表します。 Camera.PopoverArrowDirection で定義されます。 (`Number`) + + Camera.PopoverArrowDirection = { + ARROW_UP : 1, // iOS の UIPopoverArrowDirection 定数に同じ + ARROW_DOWN : 2, + ARROW_LEFT : 4, + ARROW_RIGHT : 8, + ARROW_ANY : 15 + }; + +ポップオーバーのサイズは矢印の方向や画面の向きによって調節され、変わる可能性があることについて注意してください。アンカー要素の位置を特定するとき、画面の向きの変化を考慮に入れることを忘れないで下さい。 + +使用例 +------------- + + var popover = new CameraPopoverOptions(300,300,100,100,Camera.PopoverArrowDirection.ARROW_ANY); + var options = { quality: 50, destinationType: Camera.DestinationType.DATA_URL,sourceType: Camera.PictureSource.SAVEDPHOTOALBUM, popoverOptions : popover }; + + navigator.camera.getPicture(onSuccess, onFail, options); + + function onSuccess(imageData) { + var image = document.getElementById('myImage'); + image.src = "data:image/jpeg;base64," + imageData; + } + + function onFail(message) { + alert('Failed because: ' + message); + } +