mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 02:31:59 +00:00
69 lines
2.1 KiB
C++
69 lines
2.1 KiB
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
*
|
|
* The contents of this file are subject to the Netscape Public
|
|
* License Version 1.1 (the "License"); you may not use this file
|
|
* except in compliance with the License. You may obtain a copy of
|
|
* the License at http://www.mozilla.org/NPL/
|
|
*
|
|
* Software distributed under the License is distributed on an "AS
|
|
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
* implied. See the License for the specific language governing
|
|
* rights and limitations under the License.
|
|
*
|
|
* The Original Code is Mozilla Communicator client code.
|
|
*
|
|
* The Initial Developer of the Original Code is Netscape Communications
|
|
* Corporation. Portions created by Netscape are
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All
|
|
* Rights Reserved.
|
|
*
|
|
* Contributor(s):
|
|
*/
|
|
|
|
#ifndef nsIMenuFrame_h___
|
|
#define nsIMenuFrame_h___
|
|
|
|
// {6A4CDE51-6C05-11d3-BB50-00104B7B7DEB}
|
|
#define NS_IMENUFRAME_IID \
|
|
{ 0x6a4cde51, 0x6c05, 0x11d3, { 0xbb, 0x50, 0x0, 0x10, 0x4b, 0x7b, 0x7d, 0xeb } }
|
|
|
|
class nsIMenuParent;
|
|
|
|
enum nsMenuType {
|
|
eMenuType_Normal = 0,
|
|
eMenuType_Checkbox = 1,
|
|
eMenuType_Radio = 2
|
|
};
|
|
|
|
class nsIMenuFrame : public nsISupports {
|
|
|
|
public:
|
|
static const nsIID& GetIID() { static nsIID iid = NS_IMENUFRAME_IID; return iid; }
|
|
|
|
NS_IMETHOD ActivateMenu(PRBool aFlag) = 0;
|
|
NS_IMETHOD SelectMenu(PRBool aFlag) = 0;
|
|
NS_IMETHOD OpenMenu(PRBool aFlag) = 0;
|
|
|
|
NS_IMETHOD MenuIsOpen(PRBool& aResult) = 0;
|
|
NS_IMETHOD MenuIsContainer(PRBool& aResult) = 0;
|
|
NS_IMETHOD MenuIsChecked(PRBool& aResult) = 0;
|
|
|
|
NS_IMETHOD SelectFirstItem() = 0;
|
|
|
|
NS_IMETHOD Escape(PRBool& aHandledFlag) = 0;
|
|
NS_IMETHOD Enter() = 0;
|
|
NS_IMETHOD ShortcutNavigation(PRUint32 aLetter, PRBool& aHandledFlag) = 0;
|
|
NS_IMETHOD KeyboardNavigation(PRUint32 aDirection, PRBool& aHandledFlag) = 0;
|
|
|
|
NS_IMETHOD GetMenuParent(nsIMenuParent** aMenuParent) = 0;
|
|
NS_IMETHOD GetMenuChild(nsIFrame** aResult) = 0;
|
|
|
|
NS_IMETHOD GetRadioGroupName(nsString &aName) = 0;
|
|
NS_IMETHOD GetMenuType(nsMenuType &aType) = 0;
|
|
|
|
NS_IMETHOD MarkAsGenerated() = 0;
|
|
};
|
|
|
|
#endif
|
|
|