-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathIOutOfProcessClientRpc.cs
More file actions
70 lines (62 loc) · 2.64 KB
/
IOutOfProcessClientRpc.cs
File metadata and controls
70 lines (62 loc) · 2.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
using System;
using System.Threading.Tasks;
using System.Collections.Generic;
namespace CefSharp.OutOfProcess.Interface
{
/// <summary>
/// Send messages to the Remote Host (Browser process)
/// </summary>
public interface IOutOfProcessClientRpc
{
/// <summary>
/// Close Browser
/// </summary>
/// <param name="browserId">browser Id</param>
/// <returns>Task</returns>
Task CloseBrowser(int browserId);
/// <summary>
/// Send DevTools message
/// </summary>
/// <param name="browserId">browser Id</param>
/// <param name="message"devtools message (json)></param>
/// <returns>Task</returns>
Task SendDevToolsMessage(int browserId, string message);
/// <summary>
/// Close the Browser Process (host)
/// </summary>
/// <returns>Task</returns>
Task CloseHost();
/// <summary>
/// Create a new browser within the Browser Process
/// </summary>
/// <param name="parentHwnd">parent Hwnd</param>
/// <param name="url">start url</param>
/// <param name="browserId">browser id</param>
/// <param name="requestContextPreferences">Request Context Preferences to set.</param>
/// <returns>Task</returns>
Task CreateBrowser(IntPtr parentHwnd, string url, int browserId, IDictionary<string, object> requestContextPreferences);
/// <summary>
/// Modify RequestContext-Preferences for an existing browser.
/// </summary>
/// <param name="browserId">browser id</param>
/// <param name="requestContextPreferences">Request Context Preferences to set.</param>
void SetRequestContextPreferences(int browserId, IDictionary<string, object> requestContextPreferences);
/// <summary>
/// Modify Global RequestContext-Preferences
/// </summary>
/// /// <param name="requestContextPreferences">Request Context Preferences to set.</param>
void SetGlobalRequestContextPreferences(IDictionary<string, object> requestContextPreferences);
/// <summary>
/// Notify the browser that the window hosting it is about to be moved or resized.
/// This will dismiss any existing popups (dropdowns).
/// </summary>
/// <param name="browserId">browser Id</param>
void NotifyMoveOrResizeStarted(int browserId);
/// <summary>
/// Set whether the browser is focused.
/// </summary>
/// <param name="id">browser id</param>
/// <param name="focus">set focus</param>
void SetFocus(int browserId, bool focus);
}
}