// Copyright © 2010-2015 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 { /// /// Messages sent by the render process can be handled by implementing this /// interface. /// public interface IRenderProcessMessageHandler { /// /// 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 /// /// The ChromiumWebBrowser control /// the browser object /// The frame. void OnContextCreated(IWebBrowser browserControl, IBrowser browser, IFrame frame); /// /// Invoked when an element in the UI gains focus (or possibly no /// element gains focus; i.e. an element lost focus). /// /// The ChromiumWebBrowser control /// the browser object /// The frame object /// An object with information about the node (if any) that has focus. void OnFocusedNodeChanged(IWebBrowser browserControl, IBrowser browser, IFrame frame, IDomNode node); } }