[webkit-dev] API layer for GTK port in Web kit

2007-08-13 Thread Namaz

Hi All,

 There is an API layer in WebKit/Gtk folder (although it is not used by
GdkLauncher presently). It provides the GObject interfaces for
WebKitGtkFrame, WebKitGtkPage, etc. Great! 

+ Any idea, what are all the advantages of using these kind of GObjects
instead of C++ class interfaces (Frame, Page classes). 

+ And what classes are going to be added in future into this API layer as
GObjects.

Best reagards,
Namaz

-- 
View this message in context: 
http://www.nabble.com/API-layer-for-GTK-port-in-Web-kit-tf4260315.html#a12123705
Sent from the Webkit mailing list archive at Nabble.com.

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] Issue with calling javascript function from a external thread

2007-08-13 Thread Julien Chaffraix
Thanks for your answer but unfortunately the problem is deeper than I
though.

I think that it is related to the way I call back javascript.

You can find the related class attached with this email. Ivy calls back the
OnMessage method that just initialises the arguments to be given to the
javascript method (stored in m_scriptCb) and set the timer to be used by the
main thread as you suggested. The calling is done in the fired() methods.

Now e.g. if I have a page that contains :
img id=test src=... /

When I am calling back and I try to modify it through
document.getElementById(test) I get an exception (msg: null value) but
modifying its properties could yet work.

I have found that defining a global variable in javascript to keep the
result of document.getElementById(test) solve the problem of the exception
but the layout may not be updated (depending on whether the image is in a
div or not ...).

I am really at a loss to find out the common denominator between the
different bugs. I don't think it is a race condition as I have done simple
testing with a unique call from Ivy.

If someone has an idea or a better way to do the calling, I am ready to test
and change the class.

Thanks,

Julien

On 8/11/07, Oliver Hunt  [EMAIL PROTECTED] wrote:

 If you create a WebCore timer with an timeout of 0 that should allow
 you to perform a reasonably low latency action on the main thread.

 --Oliver

 On 10/08/2007, at 10:41 AM, Geoffrey Garen wrote:

  WebKit is not thread-safe. If you want to perform external
  processing on a secondary thread, that's OK, but any calls into the
  DOM will have to happen on the main thread.
 
  Geoff
 
  On Aug 10, 2007, at 3:00 AM, Julien Chaffraix wrote:
 
  Hi all,
 
  I am trying to make a wrapper in C++ for the Ivy protocol for OWB
  (I think it could work on Webkit even though I have not tested)
  that could world entirely in javascript. Ivy is a light-weigh
  publish/subscribe protocol. It is based on callback functions that
  you call  when a regExp is seen on the bus.
 
  My main problem is that the thread that calls back functions is
  the thread that handles incoming transmissions, that is not one of
  Webkit threads.
 
  As my problem seems close to what is done in XMLHttpRequest, I
  have tried mecanisms used by that class and particularly reusing
  the code from JSAbstractEventListener::handleEvent to call my
  object. The callback seems to work but developing  a javascript
  application on top of that lead me to discover that some part of
  javascript are not working : for example, accessing some (not all)
  element with document.getElementById(...) does return null in
  the callback (but works in the Webkit threads) even though I could
  access it directly in C++ through Document::getElementById.
 
  I do not know much about what I have done wrong but I am eager to
  do the necessary debugging and testing.
 
  Maybe also my method is not the best so if someone has a better
  idea, he is more than welcome.
 
  Thanks,
 
  Julien
  ___
  webkit-dev mailing list
  webkit-dev@lists.webkit.org
  http://lists.webkit.org/mailman/listinfo/webkit-dev
 
  ___
  webkit-dev mailing list
  webkit-dev@lists.webkit.org
  http://lists.webkit.org/mailman/listinfo/webkit-dev




IvyWrapMsgCb.cpp
Description: Binary data


IvyWrapMsgCb.h
Description: Binary data
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] API layer for GTK port in Web kit

2007-08-13 Thread Holger Freyther


Am 13.08.2007 um 13:20 schrieb Namaz:



Hi All,

 There is an API layer in WebKit/Gtk folder (although it is not  
used by

GdkLauncher presently). It provides the GObject interfaces for
WebKitGtkFrame, WebKitGtkPage, etc. Great!


GdkLauncher creates a WebKitGtkPage and is using that. So the API is  
used by the GdkLauncher, the Openmoko RSS Reader, midori can use it  
as well.





+ Any idea, what are all the advantages of using these kind of  
GObjects

instead of C++ class interfaces (Frame, Page classes).


Having a C/GObject API is great because you can easily bind it to  
other languages (e.g. python)and it can be used by C Applications.  
For some strange reasons most of the GNOME stack is still implemented  
in C, so this is quite important.





+ And what classes are going to be added in future into this API  
layer as

GObjects.


We aim for implementing what WebView [1] on OS X is offering. So if  
you have need some feature, we will take a look at WebView and  
consider how to map it to the Gtk+/GObject world.



z.


[1] http://developer.apple.com/documentation/Cocoa/Reference/WebKit/ 
Classes/WebView_Class/Reference/Reference.html

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


[webkit-dev] Adding custom module to the WebkitQt build files?

2007-08-13 Thread Mayur Kankanwadi
Hi All,

I am trying to add a custom helloworld module to be compiled with the
WebKitQt build for the gdk build.

I have tried modifying WebKit.pro to this add this line:
gdk-port:SUBDIRS += ../../WebKitQt/helloworld
../../WebKitQt/helloworld/helloworld.pro

But then it gives this error:
Error processing project file: /.../XXX/project/WebKit.pro
Can someone point me some doc which explains the build system as well as
a simple 'how-to' to add custom modules.
Thanks in advance.
--Mayur Kankanwadi.



DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Pvt. Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Pvt. Ltd. does not accept any liability for virus infected mails.
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


[webkit-dev] Re: [webkit-reviews] Highlighing Object Lists

2007-08-13 Thread Adam Roben

On Aug 13, 2007, at 1:03 PM, Johnson, Geoffrey wrote:


Hi Adam,

I think the bug you were looking for is logged as 14401, and also  
there appears to be a patch which allows users the freedom to copy  
and paste network requests.  I tried implementing the patch however  
I couldn’t get it to work.  Would it be possible to verify that it  
is still correct?


   The bug/patch you're referring to make it possible to select and  
copy the HTTP headers shown when you click on a resource in the  
Network Panel. It sounds like you want to copy the actual list of  
resources, though, which I don't believe is currently possible and  
should be filed as a new bug.


-Adam



Thanks,
Geoffrey Johnson
From: Adam Roben [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 08, 2007 1:11 PM
To: Johnson, Geoffrey
Cc: WebKit Development
Subject: Re: [webkit-reviews] Highlighing Object Lists

On Aug 8, 2007, at 6:37 AM, Johnson, Geoffrey wrote:


 Is it possible to get Webkit Inspector to highlight the list of  
objects in “Network” so that they can be copied?  I would like to  
paste the object list into a text editor as is possible in Firebug,  
but currently this is not supported.  Thanks.


(I'm moving this thread to webkit-dev, which is the appropriate list  
for discussions such as this).


Hi-
   There's not currently a way to copy from the Network panel of the  
Inspector, though this is something we'd definitely like to support.  
We'd also like to support copying from other parts of the Inspector  
(e.g., the DOM view). I thought we had a bug filed on this, but I  
can't find it right now, so it would be great if you could file one  
on http://bugs.webkit.org/ !


-Adam



___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


[webkit-dev] Embedded WebView autoscroll

2007-08-13 Thread piet
I need help!

What I'm trying to do is very similar to the Message Pane in the Apple Mail
application, ie. put a WebView together with one other view into a
NSScrollView. In the case of Apple Mail, the WebView displays HTML messages,
the other view displays the message headers, and a single set of scrollbars
make them scroll both at the same time.

To do so, I have a TilingView that contains a NSBoxView and a WebView. The
WebView doesn't have scrollbars: instead, it adjusts its size to the size of
the HTML document. The TilingView listens to
NSViewFrameDidChangeNotification, adjusts its size to the size of the
WebView, makes additional space for the NSBoxView, and is included into a
NSScrollView.

All that works fine as long as I'm using the scrollbars of my NSScrollView:
the NSBoxView and the WebView scroll together and allow to see the entire
document, and the scrollbars are shown/hidden correctly if the NSScrollView
is large enough to display both views simultaneously.

The problem is: auto-scroll does not work. When I click into the WebView,
the mouseDown event is captured and handled by the WebView, and is not
propagated up the view hierarchy into my NSScrollView.

What can I do to make the TilingView auto-scroll inside the NSScrollView?

---

Here are more details to put you on track maybe...

The view hierarchy of my application, as displayed by F-Script, is:
WebHTMLView
WebClipView
WebDynamicScrollBarsView
WebFrameView
WebView
MyTilingView
NSClipView
NSScrollView
MyComposedView
etc...

The view hierarchy of Apple Mail (when displaying an HTML mail) is:
MessageWebHTMLView
WebClipView
WebDynamicScrollBarsView
WebFrameView
MessageWebView
TilingView
NSClipView
NSScrollView
ColorBackgroundView
etc...

How does Apple Mail manage to have the WebView create and use their own
subclass of WebHTMLView (the MessageWebHTMLView) instead of a standard
WebHTMLView? 

Thanks a lot,
Piet



  

Park yourself in front of a world of choices in alternative vehicles. Visit the 
Yahoo! Auto Green Center.
http://autos.yahoo.com/green_center/ 
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev