зеркало из https://github.com/mozilla/gecko-dev.git
Bug 895274 part.19 Rename NS_PLUGIN_FOCUS to ePluginFocus r=smaug
This commit is contained in:
Родитель
956405c088
Коммит
07ce780806
|
@ -1767,7 +1767,7 @@ nsPluginFrame::HandleEvent(nsPresContext* aPresContext,
|
|||
if (fm && elem)
|
||||
return fm->SetFocus(elem, 0);
|
||||
}
|
||||
else if (anEvent->mMessage == NS_PLUGIN_FOCUS) {
|
||||
else if (anEvent->mMessage == ePluginFocus) {
|
||||
nsIFocusManager* fm = nsFocusManager::GetFocusManager();
|
||||
if (fm)
|
||||
return fm->FocusPlugin(GetContent());
|
||||
|
|
|
@ -32,11 +32,11 @@ NS_EVENT_MESSAGE(eResize, eWindowEventFirst + 60)
|
|||
NS_EVENT_MESSAGE(eScroll, eWindowEventFirst + 61)
|
||||
|
||||
// A plugin was clicked or otherwise focused. ePluginActivate should be
|
||||
// used when the window is not active. NS_PLUGIN_FOCUS should be used when
|
||||
// used when the window is not active. ePluginFocus should be used when
|
||||
// the window is active. In the latter case, the dispatcher of the event
|
||||
// is expected to ensure that the plugin's widget is focused beforehand.
|
||||
NS_EVENT_MESSAGE(ePluginActivate, eWindowEventFirst + 62)
|
||||
NS_EVENT_MESSAGE(NS_PLUGIN_FOCUS, eWindowEventFirst + 63)
|
||||
NS_EVENT_MESSAGE(ePluginFocus, eWindowEventFirst + 63)
|
||||
|
||||
NS_EVENT_MESSAGE(NS_OFFLINE, eWindowEventFirst + 64)
|
||||
NS_EVENT_MESSAGE(NS_ONLINE, eWindowEventFirst + 65)
|
||||
|
|
|
@ -152,7 +152,7 @@ bool
|
|||
WidgetEvent::HasPluginActivationEventMessage() const
|
||||
{
|
||||
return mMessage == ePluginActivate ||
|
||||
mMessage == NS_PLUGIN_FOCUS;
|
||||
mMessage == ePluginFocus;
|
||||
}
|
||||
|
||||
/******************************************************************************
|
||||
|
|
Загрузка…
Ссылка в новой задаче