зеркало из https://github.com/mozilla/pjs.git
Oops. Forgot to add a file.
This commit is contained in:
Родитель
41b6eb68fb
Коммит
bcb55620ca
|
@ -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
|
Загрузка…
Ссылка в новой задаче