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 80E6B103FA for ; Thu, 22 Aug 2013 17:50:12 +0000 (UTC) Received: (qmail 70691 invoked by uid 500); 22 Aug 2013 17:50:12 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 70670 invoked by uid 500); 22 Aug 2013 17:50:12 -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 70657 invoked by uid 99); 22 Aug 2013 17:50:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Aug 2013 17:50:11 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bowserj@gmail.com designates 209.85.220.173 as permitted sender) Received: from [209.85.220.173] (HELO mail-vc0-f173.google.com) (209.85.220.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Aug 2013 17:50:05 +0000 Received: by mail-vc0-f173.google.com with SMTP id id13so1247325vcb.18 for ; Thu, 22 Aug 2013 10:49:44 -0700 (PDT) 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=AyQZG7ZP9d6e7rf4Qg32UeQmrf12l/qvkvHD3deZyDI=; b=eiIx8J52Bsc+aDTgT3kQYiz+bgauh1REu9MNhsk4Uanrii4hNxbQDiixMMHCZ+Wg1A Raf+53zcTrYX/FwlR5eBaPRhTPx2+wPtdmZUm6p+6FHdSoXgTWrsLvQUFG/lfpACVGfW jPkABOMUVnFpwuHvsBFwRsO41ygfhKTg67T1otiZNVvH7OFnxgeDQYUv7ArCnk1QCf41 VjrS254Quk6ZGbbrn9/7ntLFQeiZ8fRwsJXUZKIGyJQsN2w/swAz5atKoB+IHyj+qUN+ rq8TZvWq9K4uGjfL96FLMvO+VuW7X/ubxvkSf+h2+TGtR4sDb7iHIz/+29d+bGPBLQpb 7YSA== MIME-Version: 1.0 X-Received: by 10.220.10.194 with SMTP id q2mr12406346vcq.2.1377193784299; Thu, 22 Aug 2013 10:49:44 -0700 (PDT) Received: by 10.220.183.5 with HTTP; Thu, 22 Aug 2013 10:49:44 -0700 (PDT) In-Reply-To: References: <-8004901042939693325@unknownmsgid> Date: Thu, 22 Aug 2013 10:49:44 -0700 Message-ID: Subject: Re: Extending CordovaWebView From: Joe Bowser To: dev Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Thu, Aug 22, 2013 at 10:43 AM, Ian Clelland wrote: > After thinking about this for a couple of days, and discussing with Andrew > and Michal here, it seem that there are definitely (at least) two different > issues here. > > > First is that there is no way to use a custom WebView / WebViewClient / > ChromeClient class within the CLI system, without writing custom native > code after your project has been created. This may be acceptable for > individual project authors, but it's a pain for framework authors. > Can you explain why this is a pain? Also, what do you mean by framework author? Do you mean us? > Thinking some more, it is apparent that overriding templates is strictly > more powerful, although it is only accessible to people who create lots of > apps, and who would therefore have the incentive to create their own > templates. I think I'm going to move forward with this path. > That makes sense. I think this is the better way to go, since the Android modifications would probably need to be shared across apps anyway. > The second issue is how to allow plugins to listen for the (rather large) > set of possible callbacks from these three classes. There are now a couple > of cases where this has been asked: for gesture recognition, and now for > basic auth. I have a couple of ideas as to how to let plugins register for > these, without slowing down the WebView horribly, but I'm going to break > that out into a separate thread for discussion. Sounds good.