Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9BF9BD502 for ; Tue, 5 Mar 2013 07:24:21 +0000 (UTC) Received: (qmail 81433 invoked by uid 500); 5 Mar 2013 07:24:21 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 81367 invoked by uid 500); 5 Mar 2013 07:24:21 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 81355 invoked by uid 99); 5 Mar 2013 07:24:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Mar 2013 07:24:20 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of shazron@gmail.com designates 209.85.128.50 as permitted sender) Received: from [209.85.128.50] (HELO mail-qe0-f50.google.com) (209.85.128.50) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Mar 2013 07:24:15 +0000 Received: by mail-qe0-f50.google.com with SMTP id k5so3404908qej.9 for ; Mon, 04 Mar 2013 23:23:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:from:date:message-id:subject:to :content-type; bh=Lnvf4H683JIUzA0Q3VTfd1fdTosASKWM2znsFoZB70g=; b=cbYhmBFqRrq6vjfC/Z42omDbcC07pIND2oGQRNCftTw/UhFrscj2IkhOUluV01/mMW sFnJtmj8tXRkdFva0eBT+1rDtQj2ixxjvA+MgAwyW4N9nHSF30hdgdmQiNSdNvKTAb7d a9Myye6Wm2FX/R0xpLlMfWpE0OsO77IjAwYTEauJvVXtaC/V2uEigW1C/0+gf/ZsLBNB 3Zap+rdNo4699PgbR0BcgkfAqbEUHCFLW+mZ7poZjOHKBZeW5n5uZzFgenUadmjIGXUF QehE2MVLQQ6FJ4LeUxfpG14CTb8IdhCwou2kTnLZaxdpP/9aCUN0o+ML/e8rcPcvCln8 WzpQ== X-Received: by 10.49.26.35 with SMTP id i3mr39708413qeg.12.1362468234869; Mon, 04 Mar 2013 23:23:54 -0800 (PST) MIME-Version: 1.0 Received: by 10.49.34.138 with HTTP; Mon, 4 Mar 2013 23:23:14 -0800 (PST) From: Shazron Date: Mon, 4 Mar 2013 23:23:14 -0800 Message-ID: Subject: cordova.exec bridge for OS X To: "dev@cordova.apache.org" Content-Type: multipart/alternative; boundary=047d7b6da20428440b04d7285b06 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b6da20428440b04d7285b06 Content-Type: text/plain; charset=ISO-8859-1 FYI https://issues.apache.org/jira/browse/CB-2621 The bridge works but it has no plugins to call yet. The bridge is by binding an object at window.cordovabridge which has a native exec function. My initial idea is to keep using the opaque callbackId reference like iOS for possible plugin re-use. We don't have to do that of course, since we can keep a JavaScriptCore C API reference to the actual JavaScript callbacks and call them directly, not sure of adding this added complexity for plugin authors (we can have wrappers of course). --047d7b6da20428440b04d7285b06--