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 231E9D8E7 for ; Fri, 23 Nov 2012 04:51:16 +0000 (UTC) Received: (qmail 56450 invoked by uid 500); 23 Nov 2012 04:51:16 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 56399 invoked by uid 500); 23 Nov 2012 04:51:15 -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 56391 invoked by uid 99); 23 Nov 2012 04:51:15 -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:51:15 +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.220.175 as permitted sender) Received: from [209.85.220.175] (HELO mail-vc0-f175.google.com) (209.85.220.175) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Nov 2012 04:51:09 +0000 Received: by mail-vc0-f175.google.com with SMTP id m8so4800808vcd.6 for ; Thu, 22 Nov 2012 20:50:49 -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=gNHt2EJMo9e3iZO+TbqfAadgD0DOStUPX9U6+y7B0No=; b=SQi8tBzFQKVT4dv6bxYksCmhNFgeczljInEvws1tMVApaAbRqV0+meM9UD9eoeYYJb jLRnQ9+wq8j3vPzWQXEymoOilnT1FADyTIhzC6a/Urlv715yKsAgsZL+KQ+8gvFTEQIO pDrm3SGTie5AirTEihLOvgixZbEOxqitwV6zOFk1pQdgLveqTrj9YQ3/C6FZ/vIQ4uMe WIEZbbbnkia+GHFtTjdyQWf4SiX8lYqKFd8mTyd7DhcUSiDcdJn77S8abulqyeUAI1Gm PpfBNk77XS3ndz8mbwx8c+Nh2hstjvnP6q+JCYsH9cMI9cZuYLP9YMLd12ok7OqSfo3P vjTQ== MIME-Version: 1.0 Received: by 10.58.198.164 with SMTP id jd4mr4303401vec.34.1353646248999; Thu, 22 Nov 2012 20:50:48 -0800 (PST) Received: by 10.58.106.114 with HTTP; Thu, 22 Nov 2012 20:50:48 -0800 (PST) Received: by 10.58.106.114 with HTTP; Thu, 22 Nov 2012 20:50:48 -0800 (PST) In-Reply-To: References: Date: Thu, 22 Nov 2012 20:50:48 -0800 Message-ID: Subject: Re: InAppBrowser - events From: Shazron To: dev@cordova.apache.org Content-Type: multipart/alternative; boundary=e89a8f642ee0d2bc8004cf225390 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8f642ee0d2bc8004cf225390 Content-Type: text/plain; charset=ISO-8859-1 Those events sound good to me. On Nov 22, 2012 1:27 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 > >> > > > >> > > >> > > > > > --e89a8f642ee0d2bc8004cf225390--