How to get window handle (int) from chrome extension?

842 views
Skip to first unread message

omri suissa

unread,
Aug 26, 2013, 11:28:04 AM8/26/13
to chromium-...@chromium.org
Hi,
I got a chrome extension and in the event of a new tab I want to get the window handle in windows if the current window.

On the event I got the tab object and I got chrome's internal window id but this is not the handle in windows.

    chrome.tabs.onCreated.addListener(
            function (tab)
            {
                var intMainWindowHwnd = 0; // how to get it? not tab.windowId…
            });


Thanks!

Scott Fujan

unread,
Aug 26, 2013, 11:34:12 AM8/26/13
to omri suissa, Chromium-extensions
Chrome extensions use windowId. They do not provide an API to access lower level window handles.


--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/f479e9f9-039d-4647-ad88-af1eef929bb9%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages