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 D0357D01D for ; Thu, 22 Nov 2012 23:41:04 +0000 (UTC) Received: (qmail 30056 invoked by uid 500); 22 Nov 2012 23:41:04 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 30005 invoked by uid 500); 22 Nov 2012 23:41:04 -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 29997 invoked by uid 99); 22 Nov 2012 23:41:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Nov 2012 23:41:04 +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 agrieve@google.com designates 209.85.219.47 as permitted sender) Received: from [209.85.219.47] (HELO mail-oa0-f47.google.com) (209.85.219.47) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Nov 2012 23:40:59 +0000 Received: by mail-oa0-f47.google.com with SMTP id h1so8293513oag.6 for ; Thu, 22 Nov 2012 15:40:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=9Hwfazvl4SfyyB3sHkc4+ifMzgW6uEUq9jyG2zseDR4=; b=l8b2Cd78AW0rIeqwo0YmnoLquXbMZTk4myBvQlCWBhu3oiYNCc4Nax2kI7TKbEwVx1 JtH+QcMPlxCl0OmuNlB0MKrPPtTX5G6NtSw2A7bJ3yxVW/TI63BJ5p+8z1KFx/NpCXHg pCiFNMfEuKIrGpOsVzvVBp4V9uITsWf0dfRvb1eUmQE+lzIZ4ERUFiUGMIjSk1uRMnye bA4awubaKrISZCgXWsW9bevQEHM5Mv2tDlfiBm8HyzmxHt43A4m9pdJ+hrJeUfjwmJv8 D0JXpA2lglosv2xcf+q3KHn7vv9oXJri6vCMe5xc1RABW1xcTZ+n2vqBBmtrCOCd+Gar F1MQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type :x-gm-message-state; bh=9Hwfazvl4SfyyB3sHkc4+ifMzgW6uEUq9jyG2zseDR4=; b=gZQtih+bm7ZeJJ8UwGJw8ASiuZDZapR3V7bKwK8QUcUTqTu1OM9P26CgTrqVJQqAHW us6ZJneNpmSljfLLsUK92jGIyq3nq24qZZjjSCMckllYe0M0ZheVHYlUWy/1IMgkXQTu ilTSKyUAadsvxfHzkyLjuMcwA8lLneJ9Kn5Ie2/Q6Rkpr2w6dkBJTlzHHWssG0qtOveM i878JfBo+pQSG3uPBq6wupckUc+O1OSQv/YYNCwhcg5s1lHlz5z5YJMkJXn5xJb6Gnck CVbSM7VVJaGchItFlDEzQ+vzVX5kUt1UJhR4J89JF62MIPO//pc6gnX2sqX+aL6gcVI2 hVOw== Received: by 10.60.27.161 with SMTP id u1mr1629013oeg.27.1353627638227; Thu, 22 Nov 2012 15:40:38 -0800 (PST) MIME-Version: 1.0 Sender: agrieve@google.com Received: by 10.182.138.5 with HTTP; Thu, 22 Nov 2012 15:40:18 -0800 (PST) In-Reply-To: References: From: Andrew Grieve Date: Thu, 22 Nov 2012 18:40:18 -0500 X-Google-Sender-Auth: TCQWGTAj995FSIznzeAz0shQtTE Message-ID: Subject: Re: InAppBrowser - events To: dev Content-Type: multipart/alternative; boundary=e89a8fb2030288e12604cf1dfefc X-Gm-Message-State: ALoCoQlhaTyrEQFeW0x4bf1igtyyYCTC9m13n7a+TntNV2Z0f5e22283hbt33XBS7Dek4CUwGevwwXpeRLvjhnEr8MRT3KTE1SNlfIWMSOBWSs/hqbRQGECljZYfInVoFqseFDC7Y8XuZ5tvYWwfcstEfbA1374SvDaGLcli3L970VVIl++xAN5uTmIOleD4mBcM8u+xJPUk X-Virus-Checked: Checked by ClamAV on apache.org --e89a8fb2030288e12604cf1dfefc Content-Type: text/plain; charset=ISO-8859-1 The more events the better! :) Really though, it would be good if someone knew of an app that used ChildBrowser for the purposes of OAuth. That seems like one of the most important use-cases, so we should make sure to have all of the events that it requires. On Thu, Nov 22, 2012 at 4:26 PM, Simon MacDonald wrote: > Just looking at this again and... > > webview.addEventListener('exit', handleExit); > webview.addEventListener('loadstart', handleLoadStart); > > would seem to map to our: > > onClose > onLocationChanged > > methods from the ChildBrowser. At least on Android I fire location changed > event when the page starts to load not when it is finished. > > Simon Mac Donald > http://hi.im/simonmacdonald > > > On Thu, Nov 22, 2012 at 1:53 PM, Simon MacDonald > wrote: > > > Is this required for the 2.3.0 release? > > > > Simon Mac Donald > > http://hi.im/simonmacdonald > > > > > > > > On Wed, Nov 21, 2012 at 11:30 PM, Shazron wrote: > > > >> Great! Let's stick with one API, since we have Chrome members on the > >> Cordova team the choice is obvious :) > >> > >> > >> On Wed, Nov 21, 2012 at 8:06 PM, Andrew Grieve > >> wrote: > >> > >> > Looks that way. Given how similar they are, I don't think it matters > >> which > >> > one we go with (or if we come up with our own event names), but it'd > be > >> > good to follow the same pattern of having events and an API like > >> > canGoBack(), goForward(), etc. If they ever move to standardize, then > we > >> > can follow suit. > >> > > >> > > >> > On Wed, Nov 21, 2012 at 7:18 PM, Shazron wrote: > >> > > >> > > Mozilla's 'locationchange' is similar to what we have for > >> ChildBrowser, > >> > but > >> > > I don't see the equivalent in the Chrome example - I suppose it is > >> > > 'loadstop'? > >> > > > >> > > I suppose if we were to adopt either, it would go something like > this: > >> > > > >> > > var iab = window.open('http://apache.org', '_blank'); > >> > > // Firefox > >> > > iab.addEventListener('locationchange', handleLocationChange); > >> > > // Chrome > >> > > iab.addEventListener('loadstop', handleLoadStop); > >> > > > >> > > // Firefox > >> > > function handleLocationChange(e) { > >> > > console.log('location changed to: ' + e.detail); > >> > > } > >> > > // Chrome > >> > > function handleLoadStop(e) { > >> > > console.log('location changed to: ' + e.url); > >> > > } > >> > > > >> > > On Wed, Nov 21, 2012 at 1:32 PM, Andrew Grieve < > agrieve@chromium.org> > >> > > wrote: > >> > > > >> > > > > >> > > > > >> > > > >> > > >> > https://github.com/GoogleChrome/chrome-app-samples/blob/master/browser/browser.js > >> > > > >> > > >> > > > > > --e89a8fb2030288e12604cf1dfefc--