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 5E5CBD8D9 for ; Fri, 23 Nov 2012 04:50:31 +0000 (UTC) Received: (qmail 54595 invoked by uid 500); 23 Nov 2012 04:50:31 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 54420 invoked by uid 500); 23 Nov 2012 04:50:30 -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 54393 invoked by uid 99); 23 Nov 2012 04:50:29 -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 04:50:29 +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 shazron@gmail.com designates 209.85.212.47 as permitted sender) Received: from [209.85.212.47] (HELO mail-vb0-f47.google.com) (209.85.212.47) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Nov 2012 04:50:23 +0000 Received: by mail-vb0-f47.google.com with SMTP id e21so6295420vbm.6 for ; Thu, 22 Nov 2012 20:50:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=URVRTaVp2CMdFsrNPNMgBJbTOW8Brs7rQ/d4iQXJ3Q0=; b=If7c+ENjRhRksyqVL0x4JdWO6C4vb1NGWJ04dWLH1Z7U0gCr9740xxmGz9RlHgmYfz icGNaLMTeQxN6iUpGfPZTdpa4WEDcMfOlsmk25FqV0Xe3Mu3lCKepKt0podFrh4v14WL o5GH+gVwrcm+tY0UKc1NIsGv1+zDCh3iClQAVsgBmXvRsg8SxFUQ2KLYN+yMBJ1mp6uF eFZwrn9ENM/SIrXEDmXxrug74r8TtCJs8YTPlKKPIJ2gF+VerDeUSDSTKhrG/NGkpdRw jMIb3YmXcGXElb7qlREyHqx7YeFcO+u2zwyedAi0snNdn+/bsBFAq0XKl1BFRGiN5H8n p6+A== MIME-Version: 1.0 Received: by 10.58.39.42 with SMTP id m10mr4356587vek.21.1353646202150; Thu, 22 Nov 2012 20:50:02 -0800 (PST) Received: by 10.58.106.114 with HTTP; Thu, 22 Nov 2012 20:50:01 -0800 (PST) Received: by 10.58.106.114 with HTTP; Thu, 22 Nov 2012 20:50:01 -0800 (PST) In-Reply-To: References: Date: Thu, 22 Nov 2012 20:50:01 -0800 Message-ID: Subject: Re: InAppBrowser - events From: Shazron To: dev@cordova.apache.org Content-Type: multipart/alternative; boundary=089e0115e9d407df7604cf225164 X-Virus-Checked: Checked by ClamAV on apache.org --089e0115e9d407df7604cf225164 Content-Type: text/plain; charset=ISO-8859-1 I'd like to, if everyone agrees. I'd like to wipe out ChildBrowser use if I can, and this (events) is the only thing I believe that people are still using ChilBrowser for. 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 > > > wrote: > > > > > > > > > > > > > > > > > https://github.com/GoogleChrome/chrome-app-samples/blob/master/browser/browser.js > > > > > > --089e0115e9d407df7604cf225164--