| 138 | } |
| 139 | |
| 140 | LRESULT AsyncScriptExecutor::OnGetRequiredElementList(UINT uMsg, |
| 141 | WPARAM wParam, |
| 142 | LPARAM lParam, |
| 143 | BOOL& bHandled) { |
| 144 | LOG(TRACE) << "Entering AsyncScriptExecutor::OnGetRequiredElementList"; |
| 145 | Json::Value element_id_list(Json::arrayValue); |
| 146 | std::vector<std::string>::const_iterator it = this->element_id_list_.begin(); |
| 147 | for (; it != this->element_id_list_.end(); ++it) { |
| 148 | element_id_list.append(*it); |
| 149 | } |
| 150 | Json::StreamWriterBuilder writer; |
| 151 | std::string serialized_element_list = Json::writeString(writer, element_id_list); |
| 152 | std::string* return_string = reinterpret_cast<std::string*>(lParam); |
| 153 | *return_string = serialized_element_list.c_str(); |
| 154 | return 0; |
| 155 | } |
| 156 | |
| 157 | LRESULT AsyncScriptExecutor::OnIsExecutionReady(UINT uMsg, |
| 158 | WPARAM wParam, |