| 258 | } |
| 259 | |
| 260 | LRESULT AsyncScriptExecutor::OnNotifyElementTransferred(UINT uMsg, |
| 261 | WPARAM wParam, |
| 262 | LPARAM lParam, |
| 263 | BOOL& bHandled) { |
| 264 | LOG(TRACE) << "Entering AsyncScriptExecutor::OnNotifyElementTransferred"; |
| 265 | RemappedElementInfo* info = reinterpret_cast<RemappedElementInfo*>(lParam); |
| 266 | std::string element_id = info->element_id; |
| 267 | std::string original_element_id = info->original_element_id; |
| 268 | delete info; |
| 269 | this->ReplaceTransferredElementResult(original_element_id, element_id, &this->script_result_); |
| 270 | std::vector<std::string>::const_iterator item = std::find(this->element_id_list_.begin(), |
| 271 | this->element_id_list_.end(), |
| 272 | original_element_id); |
| 273 | this->element_id_list_.erase(item); |
| 274 | if (this->element_id_list_.size() == 0) { |
| 275 | this->is_execution_completed_ = true; |
| 276 | } |
| 277 | return WD_SUCCESS; |
| 278 | } |
| 279 | void AsyncScriptExecutor::ReplaceTransferredElementResult(std::string original_element_id, |
| 280 | std::string element_id, |
| 281 | Json::Value* result) { |
nothing calls this directly
no test coverage detected