[webkit-dev] Frame layout size

2009-06-12 Thread Graffine
Hi:

I want to scale the frame size to fit different window size. In my way ,
I used layoutWidth() to get the displaying size and used contentsWidth()
to get the web contents truly size, but both of this values sometims are
same.

For example, I launch GtkLauncher to browse google, I got the correct
layoutWidth and contentsWidth value at the first time. Ater then, I
click on the url entry and press enter key, the page will be reloaded,
but this two function will return a same value. Is it right?

I'm curious about what meaning of these three functions:

1. visibleWidth()
2. layoutWidth()
3. contentsWidth()

I think layoutWidth() just the visiable area width of whole window, it
isn't including title, toolbar, scrollbar, border, and other things, and
I think contentsWidth() is the width of web page contents. If this is
right, I have a weird case. I make the window size of GtkLauncher is
480x272, but the layoutWidth() will return 510 when I browse google. It
looks like not the true visiable area width. Besides, the visableWidth()
is the same as layoutWidth().

If I want to get the width and height of visiable area and web page
contents, does any function I can use?


Thanks in advances,
Graffine
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


[webkit-dev] NPAPI Plugin on openembedded

2009-06-11 Thread Graffine
Hi all:

I port webkit/Gtk+ to openembedded and try to test flash plugin on
GtkLauncher. I take qemu to simulate the embedded environment, incluing
arm linux and x86 linux platform. I found that webkit cannot load any
plugins on x86 linux, but it can work well on arm linux.

The following is my testing steps:

1. Cross-compile WebKit r44125 and flash plugins (Only for arm linux)
2. Put flash plugin on ~/.mozilla/plugins
3. Launch GtkLauncher and browse YouTube.

In addition, I also test it on desktop linux(OS is Ubuntu 8.10), and it
works well. This looks very strange. Does any one know what I miss or
NPAPI plugins need any extra packages?

Thanks in advance,
Graffine
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] NPAPI Plugin on openembedded

2009-06-11 Thread Graffine
Hi:

Sorry for ambiguous describing. My testing environment was list as follows:

1. qemu arm linux (based on poky linux)
2. qemu x86 linux (based on poky linux)
3. Ubuntu 8.10

I adopt poky linux as my openembedded developing environment. The flash
plugin can be loaded on case 1 and case 3, but it cannotwork on case 2.
For case 2, I just directly use the .so file which genereted on case 3.
It is not only flash plugins, but it seems any plugins cannot be loaded.
What I missing besides compiling the plugin?


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


[webkit-dev] How webkit finds plug-ins

2009-05-14 Thread Graffine
Hi all:

I want to test my npapi plugin. On Mac OS system, the plug-ins can be
stored in |/Library/Internet or ||~/Library/Internet, but I don't know
where should I put my plug-ins on linux OS system.| Dose anyone know how
webkit finds plug-ins in linux OS?

Thanks,
Graffine.
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Rendering for small screen

2009-04-22 Thread Graffine

Hi xunxin:

Thanks for your reply in first. Because of I adapt the GTK+/webkit, I 
couldn't find same functions in GTK+ port. I found a function named 
FrameView::adjustViewSize which use setContentSize to set the content 
size. If I alter the width and height parameters, the scroll bar won't 
shon in browser window. But the whole page contents still overflow the 
window size.


For example, I set the window size is 800*400, and the web page contents 
are 781*488. In this case, we will have a vertical scroll bar. Now I 
want to render the web page contents in proportion to window size, and 
we can see the whole page contents in the browser window. To achieve 
this goal, what should I do? Do I need to set the width and height for 
different htnl tag or there is a global variable to control it in webkit?


And I have another question. I found a function named Frame::createView 
which has a viewportSize parameter, but I didn't know where this 
function be called. Do you have any suggestions?


Thanks,
Graffine.

xunxin ??:


Hi, Graffine:
 
  In QtWebKit, you may use:
page-mainFrame()-setScrollBarPolicy(Qt::Horizontal, 
Qt::ScrollBarAlwaysOff);
page-mainFrame()-setScrollBarPolicy(Qt::Vertical, 
Qt::ScrollBarAlwaysOff);


page-setViewportSize( mainFrame-contentsSize() );

On Mon, Apr 20, 2009 at 5:21 PM, Graffine graff...@gmail.com 
mailto:graff...@gmail.com wrote:


Hello:

I want to render the web page content to small screen size. The
goal is
to adjust viewport size to render whole
web content without scroll bar. I think it might start from Frame or
Render class, but I don't find any feature
or function to do this. Where can I find this?

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




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


[webkit-dev] Rendering for small screen

2009-04-20 Thread Graffine
Hello:

I want to render the web page content to small screen size. The goal is
to adjust viewport size to render whole
web content without scroll bar. I think it might start from Frame or
Render class, but I don't find any feature
or function to do this. Where can I find this?

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