Removing commented out code. Harmless.

This commit is contained in:
hyatt%netscape.com 1999-07-23 09:36:53 +00:00
Родитель cab23331fc
Коммит 0fc93e4ff5
1 изменённых файлов: 0 добавлений и 117 удалений

Просмотреть файл

@ -86,123 +86,6 @@ nsMenuBarListener::QueryInterface(REFNSIID aIID, void** aInstancePtr)
}
return NS_NOINTERFACE;
}
/*
////////////////////////////////////////////////////////////////////////
// This is temporary until the bubbling of events for CSS actions work
////////////////////////////////////////////////////////////////////////
static void ForceDrawFrame(nsIFrame * aFrame)
{
if (aFrame == nsnull) {
return;
}
nsRect rect;
nsIView * view;
nsPoint pnt;
aFrame->GetOffsetFromView(pnt, &view);
aFrame->GetRect(rect);
rect.x = pnt.x;
rect.y = pnt.y;
if (view) {
nsCOMPtr<nsIViewManager> viewMgr;
view->GetViewManager(*getter_AddRefs(viewMgr));
if (viewMgr)
viewMgr->UpdateView(view, rect, NS_VMREFRESH_AUTO_DOUBLE_BUFFER);
}
}
////////////////////////////////////////////////////////////////////////
nsresult
nsMenuBarListener::MouseMove(nsIDOMEvent* aMouseEvent)
{
// Make sure the active menu gets set properly.
// If we're over something then switch to it.
nsCOMPtr<nsIDOMNode> target;
aMouseEvent->GetTarget(getter_AddRefs(target));
nsCOMPtr<nsIContent> current = do_QueryInterface(target);
nsCOMPtr<nsIContent> menuBar;
mMenuBarFrame->GetContent(getter_AddRefs(menuBar));
while (current && (current.get() != menuBar.get())) {
// See if we're a menu item.
nsCOMPtr<nsIAtom> tag;
current->GetTag(*getter_AddRefs(tag));
if (tag && (tag.get() == nsXULAtoms::xpmenu)) {
// We found a menu.
mMenuBarFrame->SetCurrentMenuItem(current);
return NS_OK;
}
// Get our parent.
nsCOMPtr<nsIContent> parent;
current->GetParent(*getter_AddRefs(parent));
current = parent.get();
}
if (!mMenuBarFrame->IsActive()) {
// Clear the selected item if there is one.
mMenuBarFrame->SetCurrentMenuItem(nsnull);
}
return NS_OK; // means I am NOT consuming event
}
////////////////////////////////////////////////////////////////////////
nsresult
nsMenuBarListener::DragMove(nsIDOMEvent* aMouseEvent)
{
return NS_OK; // means I am NOT consuming event
}
////////////////////////////////////////////////////////////////////////
nsresult
nsMenuBarListener::MouseDown(nsIDOMEvent* aMouseEvent)
{
return NS_OK; // means I am NOT consuming event
}
////////////////////////////////////////////////////////////////////////
nsresult
nsMenuBarListener::MouseUp(nsIDOMEvent* aMouseEvent)
{
return NS_OK;
}
////////////////////////////////////////////////////////////////////////
nsresult
nsMenuBarListener::MouseClick(nsIDOMEvent* aMouseEvent)
{
return NS_OK; // means I am NOT consuming event
}
////////////////////////////////////////////////////////////////////////
nsresult
nsMenuBarListener::MouseDblClick(nsIDOMEvent* aMouseEvent)
{
return NS_OK; // means I am NOT consuming event
}
////////////////////////////////////////////////////////////////////////
nsresult
nsMenuBarListener::MouseOver(nsIDOMEvent* aMouseEvent)
{
return NS_OK; // means I am NOT consuming event
}
////////////////////////////////////////////////////////////////////////
nsresult
nsMenuBarListener::MouseOut(nsIDOMEvent* aMouseEvent)
{
if (!mMenuBarFrame->IsActive()) {
// Clear the selected item if there is one.
mMenuBarFrame->SetCurrentMenuItem(nsnull);
}
return NS_OK;
}
*/
////////////////////////////////////////////////////////////////////////
nsresult