Bug 1095754 - Add platform widget support for providing widget identifiers used in remote widget tracking and hookl this up on gtk and Windows. r=roc

This commit is contained in:
Jim Mathies
2015-01-29 13:41:57 -06:00
parent fe5fcfcfb2
commit b00655c384
7 changed files with 48 additions and 21 deletions

View File

@@ -144,12 +144,6 @@ PluginWidgetParent::RecvCreate()
drv = mWidget->Enable(true);
NS_ASSERTION(NS_SUCCEEDED(drv), "widget call failure");
// This is a special call we make to nsBaseWidget to register this
// window as a remote plugin window which is expected to receive
// visibility updates from the compositor, which ships this data
// over with corresponding layer updates.
mWidget->RegisterPluginWindowForRemoteUpdates();
#if defined(MOZ_WIDGET_GTK)
// For setup, initially GTK code expects 'window' to hold the parent.
mWrapper->window = mWidget->GetNativeData(NS_NATIVE_PLUGIN_PORT);
@@ -164,6 +158,12 @@ PluginWidgetParent::RecvCreate()
NS_ASSERTION(winres, "SetPropW call failure");
#endif
// This is a special call we make to nsBaseWidget to register this
// window as a remote plugin window which is expected to receive
// visibility updates from the compositor, which ships this data
// over with corresponding layer updates.
mWidget->RegisterPluginWindowForRemoteUpdates();
return true;
}