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 256F3DC0B for ; Tue, 30 Oct 2012 12:09:11 +0000 (UTC) Received: (qmail 88530 invoked by uid 500); 30 Oct 2012 12:09:10 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 88508 invoked by uid 500); 30 Oct 2012 12:09:10 -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 88494 invoked by uid 99); 30 Oct 2012 12:09:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Oct 2012 12:09:10 +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 pmuellr@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; Tue, 30 Oct 2012 12:09:04 +0000 Received: by mail-vc0-f175.google.com with SMTP id p1so172656vcq.6 for ; Tue, 30 Oct 2012 05:08:43 -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=FDRhNP+aJY39kcvCFG8lJ7SxU+dAoehFBDuAATBiR7Y=; b=AQuFIoZ7oN8uuXWFImrnqPeFxKu2aOKXPGlY15kBQY2C3nlG8mdb9vqhyT494hs14h peMSEquxVGTXjWhbFSeHvLQ0KKayC813OtJ22sw4QBFP/EOUKobIWw4vXQHJZ/ytgG6X bnh+n3NDhFAokzTYlIVaySIHWpljn5wpcxH0gb19dvNl/Nxt0ZYtcJpei1ho7k9OTZtn uJc7y2TQvRnrKzK11+so9hnmdP9cNpQWnm1UIWpm7/A63xSFkd0hXswmjV33E81A23of dndYqE9+LU5YDthglo7A94p7AoTyPJLGJqPX+AL6YhqysP1VVYvoi7LwCKRkqQguKLI7 7Mfw== MIME-Version: 1.0 Received: by 10.220.106.129 with SMTP id x1mr13156352vco.9.1351598923270; Tue, 30 Oct 2012 05:08:43 -0700 (PDT) Received: by 10.58.106.17 with HTTP; Tue, 30 Oct 2012 05:08:43 -0700 (PDT) In-Reply-To: References: Date: Tue, 30 Oct 2012 08:08:43 -0400 Message-ID: Subject: Re: Regarding integration of Weinre to eclipse framework. From: Patrick Mueller To: dev@cordova.apache.org Content-Type: multipart/alternative; boundary=f46d043c7aceb34b1a04cd45a53b X-Virus-Checked: Checked by ClamAV on apache.org --f46d043c7aceb34b1a04cd45a53b Content-Type: text/plain; charset=ISO-8859-1 On Sat, Oct 27, 2012 at 12:19 AM, Karthik wrote: > I am planning to develop a tool for eclipse community where in people would > use eclipse for debugging the remote browsers DOM's, css etc. > cool > I am now thinking to integrate cordova to eclipse, so thought of discussing > this on this list. > I think you mean weinre instead of cordova (given the previous message you sent to me). weinre is a sub-project of the Apache Cordova project. I'll give you one warning now. As Web Inspector was written for WebKit, it will likely never run (the client, UI code) in a browser other than a WebKit-based one. If you're going to try to integrate this in Eclipse, you'll probably want to use the SWT Browser widget, but, again, this will only work to display the weinre UI if that browser widget is using a WebKit-based native browser widget. > Does cordova expose any apis, which I could use and develop this tool? > Do you have any picture which explains the server-agents (client, target) . > (Like the command sent and response received)? > There aren't really any APIs for weinre itself. weinre is really just a tool, where I bolted the Web Inspector front-end onto enough code to get it to do what it does. There is an API of sorts available, where you can send messages back and forth, defined by Web Inspector. And weinre adds it's own little API bits to that as well. Look for the idl files. https://github.com/apache/incubator-cordova-weinre/tree/master/weinre.server/interfaces The Web Inspector .idl files will be here, after you've done a build: weinre.build/vendor/webkit/WebCore/inspector Although I don't really have a way of using these APIs today, outside of the tool, it's not out of the question to provide one. > If possible can you please provide me more tips on how to build this tool. > There should be documentation in the project files on how to do a build - start with the base README and it should point to additional resources. Several folks have figured this out, so this seems like a good first task - there will be much searching around the code for what you are trying to do. If there's anything we need to clean up with regard to the build docs, please open a bug. There's a link to create a weinre bug on the main weinre page: http://people.apache.org/~pmuellr/weinre/ -- Patrick Mueller http://muellerware.org --f46d043c7aceb34b1a04cd45a53b--