| 321 | } |
| 322 | |
| 323 | void AsyncScriptExecutor::RemoveManagedElement(const std::string& element_id) { |
| 324 | LOG(TRACE) << "Entering AsyncScriptExecutor::RemoveManagedElement"; |
| 325 | this->element_repository_->RemoveManagedElement(element_id); |
| 326 | |
| 327 | // Simply forward on the request to remove the element from the |
| 328 | // main element repository. We shouldn't need to worry about waiting |
| 329 | // for the removal to be processed; it should be scheduled to happen |
| 330 | // before the next command can arrive. |
| 331 | ElementInfo* info = new ElementInfo; |
| 332 | info->element_id = element_id.c_str(); |
| 333 | ::PostMessage(this->main_element_repository_handle_, |
| 334 | WD_ASYNC_SCRIPT_SCHEDULE_REMOVE_MANAGED_ELEMENT, |
| 335 | NULL, |
| 336 | reinterpret_cast<LPARAM>(info)); |
| 337 | } |
| 338 | |
| 339 | void AsyncScriptExecutor::GetElementIdList(const Json::Value& json_object) { |
| 340 | LOG(TRACE) << "Entering AsyncScriptExecutor::GetElementIdList"; |