Bug 424809 - "nsCocoaWindow.mm causes build errors with GCC 4.2 on OS X" [p=darkweaver@gmail.com (Sean Fleming) r=hwaara sr=vlad a1.9b5=beltzner]

This commit is contained in:
reed@reedloden.com 2008-03-24 22:00:36 -07:00
Родитель 3cbc4b60ae
Коммит 3a1fb992e5
1 изменённых файлов: 6 добавлений и 2 удалений

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

@ -1768,6 +1768,7 @@ NS_IMETHODIMP nsCocoaWindow::EndSecureKeyboardInput()
case NSLeftMouseDragged: case NSLeftMouseDragged:
case NSRightMouseDragged: case NSRightMouseDragged:
case NSOtherMouseDragged: case NSOtherMouseDragged:
{
// Drop all mouse events if a modal window has appeared above us. // Drop all mouse events if a modal window has appeared above us.
// This helps make us behave as if the OS were running a "real" modal // This helps make us behave as if the OS were running a "real" modal
// event loop. // event loop.
@ -1782,6 +1783,7 @@ NS_IMETHODIMP nsCocoaWindow::EndSecureKeyboardInput()
} }
} }
break; break;
}
default: default:
break; break;
} }
@ -2316,6 +2318,7 @@ already_AddRefed<nsIDOMElement> GetFocusedElement()
case NSLeftMouseDragged: case NSLeftMouseDragged:
case NSRightMouseDragged: case NSRightMouseDragged:
case NSOtherMouseDragged: case NSOtherMouseDragged:
{
// Drop all mouse events if a modal window has appeared above us. // Drop all mouse events if a modal window has appeared above us.
// This helps make us behave as if the OS were running a "real" modal // This helps make us behave as if the OS were running a "real" modal
// event loop. // event loop.
@ -2330,6 +2333,7 @@ already_AddRefed<nsIDOMElement> GetFocusedElement()
} }
} }
break; break;
}
default: default:
break; break;
} }