| 101 | } |
| 102 | |
| 103 | LRESULT AsyncScriptExecutor::OnSetDocument(UINT uMsg, |
| 104 | WPARAM wParam, |
| 105 | LPARAM lParam, |
| 106 | BOOL& bHandled) { |
| 107 | LOG(TRACE) << "Entering AsyncScriptExecutor::OnSetDocument"; |
| 108 | CComPtr<IHTMLDocument2> doc; |
| 109 | LPSTREAM initializer_payload = reinterpret_cast<LPSTREAM>(lParam); |
| 110 | HRESULT hr = ::CoGetInterfaceAndReleaseStream(initializer_payload, |
| 111 | IID_IHTMLDocument2, |
| 112 | reinterpret_cast<void**>(&this->script_host_)); |
| 113 | return 0; |
| 114 | } |
| 115 | |
| 116 | LRESULT AsyncScriptExecutor::OnSetElementArgument(UINT uMsg, |
| 117 | WPARAM wParam, |