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 C629710C6C for ; Tue, 4 Feb 2014 20:12:49 +0000 (UTC) Received: (qmail 72548 invoked by uid 500); 4 Feb 2014 20:12:48 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 72485 invoked by uid 500); 4 Feb 2014 20:12:47 -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 72476 invoked by uid 99); 4 Feb 2014 20:12:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Feb 2014 20:12:47 +0000 X-ASF-Spam-Status: No, hits=1.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS,TVD_FROM_1 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [207.171.184.29] (HELO smtp-fw-9102.amazon.com) (207.171.184.29) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Feb 2014 20:12:43 +0000 X-IronPort-AV: E=Sophos;i="4.95,781,1384300800"; d="scan'208";a="74394510" Received: from email-inbound-relay-62040.pdx2.amazon.com ([10.241.21.71]) by smtp-border-fw-out-9102.sea19.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 04 Feb 2014 20:12:21 +0000 Received: from ex10-hub-36002.ant.amazon.com (ex10-hub-36002.sea32.amazon.com [10.250.1.7]) by email-inbound-relay-62040.pdx2.amazon.com (8.14.7/8.14.7) with ESMTP id s14KCLWp006448 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=OK) for ; Tue, 4 Feb 2014 20:12:21 GMT Received: from EX10-MBX-36006.ant.amazon.com ([fe80::c8c2:5a41:eb0:26e9]) by ex10-hub-36002.ant.amazon.com ([::1]) with mapi id 14.02.0342.003; Tue, 4 Feb 2014 12:12:20 -0800 From: "Naik, Archana" To: "dev@cordova.apache.org" Subject: Re: Android/amazon-fireos: web view callbacks Thread-Topic: Android/amazon-fireos: web view callbacks Thread-Index: AQHPId4ZjOP3bfTcJ02uIe36j4P6m5qmARUA//+F/QA= Date: Tue, 4 Feb 2014 20:12:19 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.3.9.131030 x-originating-ip: [10.184.49.70] Content-Type: text/plain; charset="us-ascii" Content-ID: <2922E220A539214691D5D22551FD506B@ant.amazon.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org So for example, onCreateWindow() or onProgressChanged(). We might need to add onCreateWindow() but onProgressChanged() not that urgent. More importantly, we want to let plugins handle there callbacks first and incase they don't we want to fallback on default handlers in these classes. Archana On 2/4/14 11:29 AM, "Joe Bowser" wrote: >Which callbacks in particular are missing? There are some callbacks we >don't touch because they can break the WebView. These can include >anything that handles gestures (which when done wrong, can break touch >events), and other view related callbacks. I'd highly recommend >writing tests for the existing behaviour before adding the callbacks, >since we've had very bad luck with this in the past w.r.t. the back >button. > >On Tue, Feb 4, 2014 at 11:20 AM, Naik, Archana wrote: >> Hi, Devs >> >> There are 2 classes - CordovaWebViewClient and CordovaChromeClient in >>amazon-fireos repo. They basically handle WebView callbacks. Recently, >>while using Cordova internally for our projects we needed to handle few >>more callbacks and noticed they were missing. I was wondering if there >>is any reason why some callbacks were not handled? If not, I am cool. >> I would like to add the ones we need for now so want to make sure I am >>not missing anything. :) >> >> Also, one more thing, we would like to pass on these callbacks to >>plugins incase they want to handle it. If no plugin wants handle it then >>callback handling will fallback to the default cordova one. >> >> Please let me know your thoughts. >> Thanks >> Archana