| 359 | } |
| 360 | |
| 361 | void AsyncScriptExecutor::TransferReturnedElements() { |
| 362 | LOG(TRACE) << "Entering AsyncScriptExecutor::TransferReturnedElements"; |
| 363 | std::vector<std::string>::const_iterator it = this->element_id_list_.begin(); |
| 364 | for (; it != this->element_id_list_.end(); ++it) { |
| 365 | std::string element_id = *it; |
| 366 | ElementHandle element_handle; |
| 367 | this->element_repository_->GetManagedElement(element_id, |
| 368 | &element_handle); |
| 369 | ElementInfo* info = new ElementInfo; |
| 370 | info->element_id = element_id.c_str(); |
| 371 | ::CoMarshalInterThreadInterfaceInStream(IID_IHTMLElement, |
| 372 | element_handle->element(), |
| 373 | &info->element_stream); |
| 374 | ::PostMessage(this->main_element_repository_handle_, |
| 375 | WD_ASYNC_SCRIPT_TRANSFER_MANAGED_ELEMENT, |
| 376 | NULL, |
| 377 | reinterpret_cast<LPARAM>(info)); |
| 378 | } |
| 379 | } |
| 380 | |
| 381 | bool AsyncScriptExecutor::WaitForPollingScript(void) { |
| 382 | LOG(TRACE) << "Entering AsyncScriptExecutor::WaitForPollingScript"; |
nothing calls this directly
no test coverage detected