Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(421)

Unified Diff: remoting/host/plugin/host_plugin.cc

Issue 10161034: Making sure that UAC promts fired by the Chromoting plugin get focus (instead of being shown in the… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR feedback Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/plugin/daemon_installer_win.cc ('k') | remoting/host/plugin/host_script_object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/plugin/host_plugin.cc
diff --git a/remoting/host/plugin/host_plugin.cc b/remoting/host/plugin/host_plugin.cc
index 94826156afb1652b7dcf20f1f5509766b138956a..d8cf8d852aa35a1489460bbdf51984232f85515f 100644
--- a/remoting/host/plugin/host_plugin.cc
+++ b/remoting/host/plugin/host_plugin.cc
@@ -161,6 +161,12 @@ class HostNPPlugin : public remoting::PluginMessageLoopProxy::Delegate {
return true;
}
+ void SetWindow(NPWindow* np_window) {
+ if (scriptable_object_) {
+ ScriptableFromObject(scriptable_object_)->SetWindow(np_window);
+ }
+ }
+
static void NPDelayedTaskSpringboard(NPP npp, uint32_t timer_id) {
HostNPPlugin* self = reinterpret_cast<HostNPPlugin*>(npp->pdata);
DelayedTask task;
@@ -419,6 +425,10 @@ NPError HandleEvent(NPP instance, void* ev) {
NPError SetWindow(NPP instance, NPWindow* pNPWindow) {
VLOG(2) << "SetWindow";
+ HostNPPlugin* plugin = PluginFromInstance(instance);
+ if (plugin) {
+ plugin->SetWindow(pNPWindow);
+ }
return NPERR_NO_ERROR;
}
« no previous file with comments | « remoting/host/plugin/daemon_installer_win.cc ('k') | remoting/host/plugin/host_script_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698