nsITaskbarTabPreview 编辑

widget/public/nsITaskbarTabPreview.idlScriptable This interface is used on Microsoft Windows to control tab preview specific behavior. 1.0 66 Introduced Gecko 1.9.2 Inherits from: nsITaskbarPreview Last changed in Gecko 1.9.2 (Firefox 3.6 / Thunderbird 3.1 / Fennec 1.0)

Tab preview support is disabled by default in Gecko 1.9.2

Creating an nsITaskbarTabPreview for a window will automatically hide that window's nsITaskbarWindowPreview; this is done by Windows and cannot be prevented. When there are no more tab previews left for a window, the window preview is automatically made visible again.

An application may have as many tab previews as memory allows.

You can't directly instantiate this interface; instead, call the nsIWinTaskbar.createTaskbarTabPreview().

Method overview

void EnsureRegistration(); Violates the XPCOM interface guidelines
nativeWindow GetHWND(); Violates the XPCOM interface guidelines
void move(in nsITaskbarTabPreview aNext);

Attributes

AttributeTypeDescription
iconimgIContainerThe icon displayed next to the title in the preview. This is null by default.
titleDOMStringThe title displayed above the thumbnail. By default, this is an empty string.

Methods

Violates the XPCOM interface guidelines

EnsureRegistration()

Used internally to ensure that the taskbar knows about this preview. If a preview is not registered, the API call to set its sibling (via the move() method) will fail silently.

This method is only invoked when it's safe to make taskbar API calls.

void EnsureRegistration();
Parameters

None.

Violates the XPCOM interface guidelines

GetHWND()

Used internally to obtain the handle to the proxy window for the preview.

nativeWindow GetHWND();
Parameters

None.

Return value

The HWND for the preview's proxy window.

move()

Relocates the preview relative to another tab preview from the same window.

void move(
  in nsITaskbarTabPreview aNext
);
Parameters
aNext
The preview that this preview should be placed to the left of. A value of null indicates that this preview should be the rightmost one.

See also

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:101 次

字数:5055

最后编辑:7年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文