<commit_before>// Copyright  2010-2013 The CefSharp Project. 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 "ClientAdapter.h"

using namespace msclr;
using namespace System;

namespace CefSharp
{
    namespace Internals
    {
        private class RenderClientAdapter : public ClientAdapter,
            public CefRenderHandler
        {
        private:
            gcroot<IWebBrowserInternal^> _webBrowserInternal;
            gcroot<IRenderWebBrowser^> _renderWebBrowser;

        public:
            gcroot<BitmapInfo^> MainBitmapInfo;
            gcroot<BitmapInfo^> PopupBitmapInfo;

            RenderClientAdapter(IWebBrowserInternal^ webBrowserInternal ) :
                ClientAdapter(webBrowserInternal),
                _webBrowserInternal(webBrowserInternal)
            {
                MainBitmapInfo = gcnew BitmapInfo();
                PopupBitmapInfo = gcnew BitmapInfo();
                PopupBitmapInfo->IsPopup = true;

                _renderWebBrowser = dynamic_cast<IRenderWebBrowser^>(webBrowserInternal);
            }

            ~RenderClientAdapter()
            {
                _renderWebBrowser = nullptr;
            }<commit_msg>Trivial whitespace fix.<commit_after>// Copyright  2010-2013 The CefSharp Project. 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 "ClientAdapter.h"

using namespace msclr;
using namespace System;

namespace CefSharp
{
    namespace Internals
    {
        private class RenderClientAdapter : public ClientAdapter,
            public CefRenderHandler
        {
        private:
            gcroot<IWebBrowserInternal^> _webBrowserInternal;
            gcroot<IRenderWebBrowser^> _renderWebBrowser;

        public:
            gcroot<BitmapInfo^> MainBitmapInfo;
            gcroot<BitmapInfo^> PopupBitmapInfo;

            RenderClientAdapter(IWebBrowserInternal^ webBrowserInternal):
                ClientAdapter(webBrowserInternal),
                _webBrowserInternal(webBrowserInternal)
            {
                MainBitmapInfo = gcnew BitmapInfo();
                PopupBitmapInfo = gcnew BitmapInfo();
                PopupBitmapInfo->IsPopup = true;

                _renderWebBrowser = dynamic_cast<IRenderWebBrowser^>(webBrowserInternal);
            }

            ~RenderClientAdapter()
            {
                _renderWebBrowser = nullptr;
            }
{'fraction_non_alphanumeric': 0.0660741885625966, 'fraction_numerical': 0.0061823802163833074, 'mean_word_length': 2.220149253731343, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1877945', 'n_tokens_mistral': 684, 'n_tokens_neox': 636, 'n_words': 158}