[Webkit-unassigned] [Bug 43498] [Qt] add an API for QWebPage to get current focused element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 12 17:26:17 PDT 2010


Antonio Gomes <tonikitoo at webkit.org> changed:

           What    |Removed                     |Added
                 CC|                            |tonikitoo at webkit.org

--- Comment #12 from Antonio Gomes <tonikitoo at webkit.org>  2010-08-12 17:26:16 PST ---
(In reply to comment #11)
> > QWebFrame* frame = page->currentFrame();
> Is this the same as 'focusedFrame'?

QWebFrame *QWebPage::currentFrame() const
    return static_cast<WebCore::FrameLoaderClientQt *>(d->page->focusController()->focusedOrMainFrame()->loader()->client())->webFrame();

looks like it'd work, yes.

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list