mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
35 lines
1.6 KiB
C#
35 lines
1.6 KiB
C#
// Copyright © 2010-2016 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.
|
|
|
|
using System;
|
|
|
|
namespace CefSharp
|
|
{
|
|
public interface IBrowserProcessHandler : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// Called on the CEF UI thread immediately after the CEF context has been initialized.
|
|
/// You can now access the Global RequestContext through Cef.GetGlobalRequestContext() - this is the
|
|
/// first place you can set Preferences (e.g. proxy settings, spell check dictionaries).
|
|
/// </summary>
|
|
void OnContextInitialized();
|
|
|
|
/// <summary>
|
|
/// Called from any thread when work has been scheduled for the browser process
|
|
/// main (UI) thread. This callback is used in combination with CefSettings.
|
|
/// ExternalMessagePump and Cef.DoMessageLoopWork() in cases where the CEF
|
|
/// message loop must be integrated into an existing application message loop
|
|
/// (see additional comments and warnings on Cef.DoMessageLoopWork). This
|
|
/// callback should schedule a Cef.DoMessageLoopWork() call to happen on the
|
|
/// main (UI) thread.
|
|
/// </summary>
|
|
/// <param name="delay">is the requested delay in milliseconds. If
|
|
/// delay is <= 0 then the call should happen reasonably soon. If
|
|
/// delay is > 0 then the call should be scheduled to happen after the
|
|
/// specified delay and any currently pending scheduled call should be
|
|
/// cancelled.</param>
|
|
void OnScheduleMessagePumpWork(long delay);
|
|
}
|
|
}
|