Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem using HiWebView




Hi all,

I am running into a problem using HiWebView that may not be the usual. I am trying to use the control as a way to display a web page from inside a browser plugin (the NPAPI type, like flash). So I have my browser plugin up and running as a carbon bundle from inside Safari or Firefox and I'm given a CGraphPtr and an area in the browser window to display my UI into. I am able to draw into that area just fine using Quartz or Quickdraw. So far so good. However when I try to create and embed an HiWebView into the browser window in the plugin area it doesn't seem to work.

None of the browser's (Safari, Firefox, Camino, ...) windows seem to be composited so my code falls back to what the SimpleCarbonWeb sample does, i.e. insert the HiWebView I just created into the root control of the window. Here comes the problem, the browser windows (at least I'm sure in Safari from debugging into it) doesn't seem to have a root control! What I try to do then is create one with CreateRootControl() and embed the HiWebView into it and show it. At this point I see a white frame where the HiWebView should be. It fails to load a page however (doesn't show anything) and has problems redrawing (does not redraw at all actually) so I figure something must be wrong. In Firefox it doesn't even show the white area.

Someone ever tried to do what I am trying to do ? Could there be something missing from the browser window that would prevent HiWebView from working ? I would have assumed Safari was already using HiWebView to begin with and would allow me to use it as well (but maybe that's actually why it doesn't?).

If I use the same creation/embed/load HTML code but using a simple overlay Carbon window that I create myself as the container then it all magically works fine, I see my web page and all.

Any ideas ? Thank you for reading webkit gurus !

:)

Cheers,
--
roy204.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.