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 89573E2F9 for ; Thu, 22 Nov 2012 04:07:48 +0000 (UTC) Received: (qmail 87176 invoked by uid 500); 22 Nov 2012 04:07:48 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 87162 invoked by uid 500); 22 Nov 2012 04:07:48 -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 87138 invoked by uid 99); 22 Nov 2012 04:07:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Nov 2012 04:07:47 +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 agrieve@google.com designates 209.85.216.54 as permitted sender) Received: from [209.85.216.54] (HELO mail-qa0-f54.google.com) (209.85.216.54) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Nov 2012 04:07:39 +0000 Received: by mail-qa0-f54.google.com with SMTP id g24so748614qab.6 for ; Wed, 21 Nov 2012 20:07:19 -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=IZd+SZZWcU/Ob+jx7KMQ/YL6cbbnYYgW80B8VOt7UEE=; b=XkAhbPmNW5Cc2Dkh08meUcmz1iM9pzvRfVmnvtMtbFKhHzXW5Mfa02eTtRwn4vAM2L nUtMWviepQhbyFhDDyfJ8xMsygspfqubnXOSbldESF7BEOxLtLKvPH5AaFS1aEkOty4i Jl9LTcxbXbBAUnEWwPjVDxAz7ATOB9EL3dEFKZhiLBgSYSAuiWXDKFFA8RQIbQpQ5hvP /hWHOqyiXD39w2updGAn1S33/zx3rh3RS9svm8UttV+ps/qnK9ZS/3gNvdPonMWfC3Ia g/FxjHgLzRIVidjMFJkTUWldIJ5vcPR9XPBA8yRYLR3vC8RB1J+6I7A+dy1F6bzXs9wn CnLw== 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=IZd+SZZWcU/Ob+jx7KMQ/YL6cbbnYYgW80B8VOt7UEE=; b=HjWZte4+SvaYLqtOUSWnvLOTL5+TB+rHzhu1lrHjElDWGgBP6ZehS+lZH318XOJF4h cjTxDQvFpat47vmhuFwp0OI9hKMOF6b0MrmeZyflWozBsu4zxcXIv+UNI88A9TRkJNa/ xKkjNFM/VWtjusIJyqZgUFnihuy8OYGKZvymFw1p0MJVmC71nmKL10YZPy97WvRr13HZ hWUGM7fV9zVBuWFh6+dwuzItjK8D7gTJV/vrNogO4yxEGG8wuE2P3kL4M7Ruh30t+ukz SiKF3I5DHu10V/3ivQQT1WjS4OusArQrC2gRFjZh5SFxdbR0Eo4vXqi5feeDWD4hU7aI aA2g== Received: by 10.49.2.74 with SMTP id 10mr23948852qes.10.1353557238946; Wed, 21 Nov 2012 20:07:18 -0800 (PST) MIME-Version: 1.0 Sender: agrieve@google.com Received: by 10.229.12.68 with HTTP; Wed, 21 Nov 2012 20:06:58 -0800 (PST) In-Reply-To: References: From: Andrew Grieve Date: Wed, 21 Nov 2012 23:06:58 -0500 X-Google-Sender-Auth: V6FNrM0_hmBy7bPprVhO1W60_1A Message-ID: Subject: Re: InAppBrowser - events To: dev Content-Type: multipart/alternative; boundary=047d7b677c8e691ca904cf0d9a4d X-Gm-Message-State: ALoCoQnXTaaTmxg03Ni8ukivQZt+vsg5EOKw8L8xsDEzXRO6YYP2OuO0APy1a0Q72mjk5YyZPtzESyzoQ5dC628RnQd8FTtly45cOqRENGiyYXTUqFXKUeNKwXSrTIOmVStpz/zdphJgg1+POdaUDHzx8tvk3oCqlh75noUtDD2nYeYk4NjjnS8Rva3ti17mT5xZiWG2WgHK X-Virus-Checked: Checked by ClamAV on apache.org --047d7b677c8e691ca904cf0d9a4d Content-Type: text/plain; charset=ISO-8859-1 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 > --047d7b677c8e691ca904cf0d9a4d--