// Copyright (C) Microsoft Corporation. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #pragma once #include "stdafx.h" #include #include "AppWindow.h" #include "ComponentBase.h" class ScenarioScreenCapture : public ComponentBase { public: ScenarioScreenCapture(AppWindow* appWindow); ~ScenarioScreenCapture() override; private: AppWindow* m_appWindow = nullptr; wil::com_ptr m_webView; wil::com_ptr m_webView4; wil::com_ptr m_webView2_27; wil::com_ptr m_frame6; std::wstring m_sampleUri; std::map m_screenCaptureFrameIdPermission; BOOL m_mainFramePermission = TRUE; EventRegistrationToken m_contentLoadingToken = {}; EventRegistrationToken m_webMessageReceivedToken = {}; EventRegistrationToken m_frameCreatedToken = {}; EventRegistrationToken m_screenCaptureStartingToken = {}; EventRegistrationToken m_frameScreenCaptureStartingToken = {}; };