OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/child/npapi/npobject_stub.h" | 5 #include "content/child/npapi/npobject_stub.h" |
6 | 6 |
7 #include "content/child/npapi/np_channel_base.h" | 7 #include "content/child/npapi/np_channel_base.h" |
8 #include "content/child/npapi/npobject_util.h" | 8 #include "content/child/npapi/npobject_util.h" |
9 #include "content/child/plugin_messages.h" | 9 #include "content/child/plugin_messages.h" |
10 #include "content/public/common/content_client.h" | 10 #include "content/public/common/content_client.h" |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 channel_->Send(reply_msg); | 252 channel_->Send(reply_msg); |
253 return; | 253 return; |
254 } | 254 } |
255 | 255 |
256 if (IsPluginProcess()) { | 256 if (IsPluginProcess()) { |
257 if (npobject_->_class->setProperty) { | 257 if (npobject_->_class->setProperty) { |
258 #if defined(OS_WIN) | 258 #if defined(OS_WIN) |
259 static base::FilePath plugin_path = | 259 static base::FilePath plugin_path = |
260 CommandLine::ForCurrentProcess()->GetSwitchValuePath( | 260 CommandLine::ForCurrentProcess()->GetSwitchValuePath( |
261 switches::kPluginPath); | 261 switches::kPluginPath); |
262 static std::wstring filename = StringToLowerASCII( | 262 static std::wstring filename = base::StringToLowerASCII( |
263 plugin_path.BaseName().value()); | 263 plugin_path.BaseName().value()); |
264 static NPIdentifier fullscreen = | 264 static NPIdentifier fullscreen = |
265 WebBindings::getStringIdentifier("fullScreen"); | 265 WebBindings::getStringIdentifier("fullScreen"); |
266 if (filename == kNewWMPPlugin && id == fullscreen) { | 266 if (filename == kNewWMPPlugin && id == fullscreen) { |
267 // Workaround for bug 15985, which is if Flash causes WMP to go | 267 // Workaround for bug 15985, which is if Flash causes WMP to go |
268 // full screen a deadlock can occur when WMP calls SetFocus. | 268 // full screen a deadlock can occur when WMP calls SetFocus. |
269 NPObjectMsg_SetProperty::WriteReplyParams(reply_msg, true); | 269 NPObjectMsg_SetProperty::WriteReplyParams(reply_msg, true); |
270 Send(reply_msg); | 270 Send(reply_msg); |
271 reply_msg = NULL; | 271 reply_msg = NULL; |
272 } | 272 } |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 channel_.get(), | 414 channel_.get(), |
415 &result_param, | 415 &result_param, |
416 true, | 416 true, |
417 render_view_id_, | 417 render_view_id_, |
418 page_url_); | 418 page_url_); |
419 NPObjectMsg_Evaluate::WriteReplyParams(reply_msg, result_param, return_value); | 419 NPObjectMsg_Evaluate::WriteReplyParams(reply_msg, result_param, return_value); |
420 channel_->Send(reply_msg); | 420 channel_->Send(reply_msg); |
421 } | 421 } |
422 | 422 |
423 } // namespace content | 423 } // namespace content |
OLD | NEW |