gecko-dev/xpfe/components/sidebar/public/nsISidebar.idl

53 строки
1.6 KiB
Plaintext

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
The Sidebar API for 3rd parties
*/
#include "nsISupports.idl"
interface nsIDOMWindow;
[scriptable, uuid(577CB745-8CAF-11d3-AAEF-00805F8A4905)]
interface nsISidebar : nsISupports
{
void setWindow (in nsIDOMWindow aWindow);
void addPanel(in wstring aTitle, in string aContentURL,
in string aCustomizeURL);
void addSearchEngine(in string engineURL, in string iconURL,
in wstring suggestedTitle, in wstring suggestedCategory);
};
%{ C++
// {577CB744-8CAF-11d3-AAEF-00805F8A4905}
#define NS_SIDEBAR_CID \
{ 0x577cb744, 0x8caf, 0x11d3, { 0xaa, 0xef, 0x0, 0x80, 0x5f, 0x8a, 0x49, 0x5 } }
#define NS_SIDEBAR_PROGID "component://mozilla/sidebar"
%}
/*
var isidebar = Components.interfaces.nsISidebar;
var csidebar = Components.classes['component://mozilla/sidebar'];
var sidebar = csidebar.createInstance(isidebar);
*/