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 A66B4D234 for ; Fri, 23 Nov 2012 14:54:33 +0000 (UTC) Received: (qmail 90881 invoked by uid 500); 23 Nov 2012 14:54:33 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 90847 invoked by uid 500); 23 Nov 2012 14:54:33 -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 90827 invoked by uid 99); 23 Nov 2012 14:54:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Nov 2012 14:54:32 +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 (nike.apache.org: domain of simon.macdonald@gmail.com designates 209.85.220.47 as permitted sender) Received: from [209.85.220.47] (HELO mail-pa0-f47.google.com) (209.85.220.47) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Nov 2012 14:54:26 +0000 Received: by mail-pa0-f47.google.com with SMTP id fa10so1344735pad.6 for ; Fri, 23 Nov 2012 06:54:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=h9+QYi1XmzJsW2Vh9DqTtZ2D7Tsdhayb+v8z/ZVVCE4=; b=ajB/cnKWKhMK4qnoloqLpFbXhQmiTO528JrK3YJmyVrdAZ+eU2mmRXRQyx+eJq9lMG VRA3yAM+dKwl/M2jsWkbJnj4pAOgXKv0OTMzzWgiQJAVT7TG/nKzdHHd3HOBoz41JW3h sP7CVZ0N9m+7ZlPcScuJvTGdotQeotweBHHVMmRLeQUmfj28q4P0AE/zmq0q4giuQRPX vKANgSVkSh4L4b8M2DU8WmRUuiIrJlDZQSXCYELP0yy5PmX9Vxt2NzJboshNLVnnX0Zr VMKnKF1OLlLa229JiedG8AMPfIMk5MWaNE8p002Zq9V2eUaOheL/Mi+YRdRMEWusgfVa wqXg== Received: by 10.66.85.195 with SMTP id j3mr11130628paz.1.1353682444685; Fri, 23 Nov 2012 06:54:04 -0800 (PST) MIME-Version: 1.0 Received: by 10.68.80.133 with HTTP; Fri, 23 Nov 2012 06:53:44 -0800 (PST) In-Reply-To: References: <67F7F42E-D964-4B1C-AB7B-AA564F3CC037@devgeeks.org> From: Simon MacDonald Date: Fri, 23 Nov 2012 09:53:44 -0500 Message-ID: Subject: Re: InAppBrowser - events To: "dev@cordova.apache.org" Content-Type: multipart/alternative; boundary=f46d042f939841121504cf2ac13c X-Virus-Checked: Checked by ClamAV on apache.org --f46d042f939841121504cf2ac13c Content-Type: text/plain; charset=ISO-8859-1 The Cat-Signal that the Internet Defence League would be purr-fect. http://internetdefenseleague.org/ Simon Mac Donald http://hi.im/simonmacdonald On Fri, Nov 23, 2012 at 7:53 AM, Brian LeRoux wrote: > We need a MAX-signal. It'd be like the bat signal but with cats. > > > On Fri, Nov 23, 2012 at 12:43 AM, Tommy-Carlos Williams > wrote: > > > At some point Gather used ChildBrowser for Oauth, but I think they might > > not be anymore. Max left the list shortly after joining, so I could try > and > > ping him on IRC if it would help? > > > > > > On 23/11/2012, at 10:40 AM, Andrew Grieve wrote: > > > > > 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 < > agrieve@chromium.org> > > >>>> 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 > > >>>>>> > > >>>>> > > >>>> > > >>> > > >>> > > >> > > > > > --f46d042f939841121504cf2ac13c--