<commit_before>﻿// Copyright © 2010-2017 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

namespace CefSharp
{
    /// <summary>
    /// Messages sent by the render process can be handled by implementing this
    /// interface.
    /// </summary>
    public interface IRenderProcessMessageHandler
    {
        /// <summary>
        /// OnContextCreated is called in the Render process immediately after a CefV8Context is created.
        /// An IPC message is immediately sent to notify the context has been created
        /// (should be safe to execute javascript). If the page has no javascript then on context will be created
        /// and as a result this method will not be called. Currently only called for the Main frame <see cref="IFrame.IsMain"/>
        /// </summary>
        /// <param name="browserControl">The ChromiumWebBrowser control</param>
        /// <param name="browser">the browser object</param>
        /// <param name="frame">The frame.</param>
        void OnContextCreated(IWebBrowser browserControl, IBrowser browser, IFrame frame);

        /// <summary>
        /// OnContextReleased is called in the Render process immediately before the CefV8Context is released.
        /// An IPC message is immediately sent to notify the context has been released
        /// (cannot execute javascript this point). If the page had no javascript then the context would not have been created
        /// and as a result this method will not be called. Currently only called for the Main frame <see cref="IFrame.IsMain"/>
        /// </summary>
        /// <param name="browserControl">The ChromiumWebBrowser control</param>
        /// <param name="browser">the browser object</param>
        /// <param name="frame">The frame.</param>
        void OnContextReleased(IWebBrowser browserControl, IBrowser browser, IFrame frame);

        /// <summary>
        /// Invoked when an element in the UI gains focus (or possibly no
        /// element gains focus; i.e. an element lost focus).
        /// </summary>
        /// <param name="browserControl">The ChromiumWebBrowser control</param>
        /// <param name="browser">the browser object</param>
        /// <param name="frame">The frame object</param>
        /// <param name="node">An object with information about the node (if any) that has focus.</param><commit_msg>Fix typo on IRenderProcessMessageHandler.OnContextCreated<commit_after>﻿// Copyright © 2010-2017 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

namespace CefSharp
{
    /// <summary>
    /// Messages sent by the render process can be handled by implementing this
    /// interface.
    /// </summary>
    public interface IRenderProcessMessageHandler
    {
        /// <summary>
        /// OnContextCreated is called in the Render process immediately after a CefV8Context is created.
        /// An IPC message is immediately sent to notify the context has been created
        /// (should be safe to execute javascript). If the page has no javascript then no V8Context will be created
        /// and as a result this method will not be called. Currently only called for the Main frame <see cref="IFrame.IsMain"/>
        /// </summary>
        /// <param name="browserControl">The ChromiumWebBrowser control</param>
        /// <param name="browser">the browser object</param>
        /// <param name="frame">The frame.</param>
        void OnContextCreated(IWebBrowser browserControl, IBrowser browser, IFrame frame);

        /// <summary>
        /// OnContextReleased is called in the Render process immediately before the CefV8Context is released.
        /// An IPC message is immediately sent to notify the context has been released
        /// (cannot execute javascript this point). If the page had no javascript then the context would not have been created
        /// and as a result this method will not be called. Currently only called for the Main frame <see cref="IFrame.IsMain"/>
        /// </summary>
        /// <param name="browserControl">The ChromiumWebBrowser control</param>
        /// <param name="browser">the browser object</param>
        /// <param name="frame">The frame.</param>
        void OnContextReleased(IWebBrowser browserControl, IBrowser browser, IFrame frame);

        /// <summary>
        /// Invoked when an element in the UI gains focus (or possibly no
        /// element gains focus; i.e. an element lost focus).
        /// </summary>
        /// <param name="browserControl">The ChromiumWebBrowser control</param>
        /// <param name="browser">the browser object</param>
        /// <param name="frame">The frame object</param>
        /// <param name="node">An object with information about the node (if any) that has focus.</param>
{'fraction_non_alphanumeric': 0.10307816929931146, 'fraction_numerical': 0.00425273390036452, 'mean_word_length': 2.6236243580337493, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 63, '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': '7652272', 'n_tokens_mistral': 1214, 'n_tokens_neox': 1171, 'n_words': 530}