From bcb55620cab699eb4689c5045187d594f97c7a62 Mon Sep 17 00:00:00 2001 From: "hyatt%netscape.com" Date: Wed, 9 Feb 2000 10:13:36 +0000 Subject: [PATCH] Oops. Forgot to add a file. --- layout/xul/base/src/nsMenuListener.h | 66 ++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 layout/xul/base/src/nsMenuListener.h diff --git a/layout/xul/base/src/nsMenuListener.h b/layout/xul/base/src/nsMenuListener.h new file mode 100644 index 00000000000..4e8016e36fe --- /dev/null +++ b/layout/xul/base/src/nsMenuListener.h @@ -0,0 +1,66 @@ +/* -*- 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 nsMenuListener_h__ +#define nsMenuListener_h__ + +#include "nsIDOMMouseMotionListener.h" +#include "nsIDOMMouseListener.h" +#include "nsIDOMKeyListener.h" +#include "nsIDOMFocusListener.h" +#include "nsIDOMEventReceiver.h" + +class nsIMenuParent; +class nsIPresContext; + +/** editor Implementation of the DragListener interface + */ +class nsMenuListener : public nsIDOMKeyListener, public nsIDOMFocusListener, public nsIDOMMouseListener +{ +public: + nsMenuListener(nsIMenuParent* aMenuParent); + + virtual ~nsMenuListener(); + + virtual nsresult HandleEvent(nsIDOMEvent* aEvent); + + virtual nsresult KeyUp(nsIDOMEvent* aMouseEvent); + virtual nsresult KeyDown(nsIDOMEvent* aMouseEvent); + virtual nsresult KeyPress(nsIDOMEvent* aMouseEvent); + + virtual nsresult Focus(nsIDOMEvent* aEvent); + virtual nsresult Blur(nsIDOMEvent* aEvent); + + virtual nsresult MouseDown(nsIDOMEvent* aMouseEvent); + virtual nsresult MouseUp(nsIDOMEvent* aMouseEvent); + virtual nsresult MouseClick(nsIDOMEvent* aMouseEvent); + virtual nsresult MouseDblClick(nsIDOMEvent* aMouseEvent); + virtual nsresult MouseOver(nsIDOMEvent* aMouseEvent); + virtual nsresult MouseOut(nsIDOMEvent* aMouseEvent); + + NS_DECL_ISUPPORTS + +protected: + nsIMenuParent* mMenuParent; // The outermost object capturing events (either a menu bar or menupopup). +}; + + +#endif