/src/Library/shared/NetDimension.NanUI.SharedProject/thrid_party_libs/ChromiumFX/Generated/Remote/CfrBrowser.cs
https://github.com/NetDimension/NanUI · C# · 352 lines · 173 code · 28 blank · 151 comment · 4 complexity · fe9062cd47ebb572f8cb3af3572293d6 MD5 · raw file
- // Copyright (c) 2014-2017 Wolfgang Borgsmüller
- // All rights reserved.
- //
- // This software may be modified and distributed under the terms
- // of the BSD license. See the License.txt file for details.
- // Generated file. Do not edit.
- using System;
- namespace Chromium.Remote {
- /// <summary>
- /// Structure used to represent a browser window. When used in the browser
- /// process the functions of this structure may be called on any thread unless
- /// otherwise indicated in the comments. When used in the render process the
- /// functions of this structure may only be called on the main thread.
- /// </summary>
- /// <remarks>
- /// See also the original CEF documentation in
- /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_browser_capi.h">cef/include/capi/cef_browser_capi.h</see>.
- /// </remarks>
- public class CfrBrowser : CfrBaseLibrary {
- internal static CfrBrowser Wrap(RemotePtr remotePtr) {
- if(remotePtr == RemotePtr.Zero) return null;
- var weakCache = CfxRemoteCallContext.CurrentContext.connection.weakCache;
- bool isNew = false;
- var wrapper = (CfrBrowser)weakCache.GetOrAdd(remotePtr.ptr, () => {
- isNew = true;
- return new CfrBrowser(remotePtr);
- });
- if(!isNew) {
- var call = new CfxApiReleaseRemoteCall();
- call.nativePtr = remotePtr.ptr;
- call.RequestExecution(remotePtr.connection);
- }
- return wrapper;
- }
- private CfrBrowser(RemotePtr remotePtr) : base(remotePtr) {}
- /// <summary>
- /// Returns true (1) if the browser can navigate backwards.
- /// </summary>
- /// <remarks>
- /// See also the original CEF documentation in
- /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_browser_capi.h">cef/include/capi/cef_browser_capi.h</see>.
- /// </remarks>
- public bool CanGoBack {
- get {
- var connection = RemotePtr.connection;
- var call = new CfxBrowserCanGoBackRemoteCall();
- call.@this = RemotePtr.ptr;
- call.RequestExecution(connection);
- return call.__retval;
- }
- }
- /// <summary>
- /// Returns true (1) if the browser can navigate forwards.
- /// </summary>
- /// <remarks>
- /// See also the original CEF documentation in
- /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_browser_capi.h">cef/include/capi/cef_browser_capi.h</see>.
- /// </remarks>
- public bool CanGoForward {
- get {
- var connection = RemotePtr.connection;
- var call = new CfxBrowserCanGoForwardRemoteCall();
- call.@this = RemotePtr.ptr;
- call.RequestExecution(connection);
- return call.__retval;
- }
- }
- /// <summary>
- /// Returns true (1) if the browser is currently loading.
- /// </summary>
- /// <remarks>
- /// See also the original CEF documentation in
- /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_browser_capi.h">cef/include/capi/cef_browser_capi.h</see>.
- /// </remarks>
- public bool IsLoading {
- get {
- var connection = RemotePtr.connection;
- var call = new CfxBrowserIsLoadingRemoteCall();
- call.@this = RemotePtr.ptr;
- call.RequestExecution(connection);
- return call.__retval;
- }
- }
- /// <summary>
- /// Returns the globally unique identifier for this browser. This value is also
- /// used as the tabId for extension APIs.
- /// </summary>
- /// <remarks>
- /// See also the original CEF documentation in
- /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_browser_capi.h">cef/include/capi/cef_browser_capi.h</see>.
- /// </remarks>
- public int Identifier {
- get {
- var connection = RemotePtr.connection;
- var call = new CfxBrowserGetIdentifierRemoteCall();
- call.@this = RemotePtr.ptr;
- call.RequestExecution(connection);
- return call.__retval;
- }
- }
- /// <summary>
- /// Returns true (1) if the window is a popup window.
- /// </summary>
- /// <remarks>
- /// See also the original CEF documentation in
- /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_browser_capi.h">cef/include/capi/cef_browser_capi.h</see>.
- /// </remarks>
- public bool IsPopup {
- get {
- var connection = RemotePtr.connection;
- var call = new CfxBrowserIsPopupRemoteCall();
- call.@this = RemotePtr.ptr;
- call.RequestExecution(connection);
- return call.__retval;
- }
- }
- /// <summary>
- /// Returns true (1) if a document has been loaded in the browser.
- /// </summary>
- /// <remarks>
- /// See also the original CEF documentation in
- /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_browser_capi.h">cef/include/capi/cef_browser_capi.h</see>.
- /// </remarks>
- public bool HasDocument {
- get {
- var connection = RemotePtr.connection;
- var call = new CfxBrowserHasDocumentRemoteCall();
- call.@this = RemotePtr.ptr;
- call.RequestExecution(connection);
- return call.__retval;
- }
- }
- /// <summary>
- /// Returns the main (top-level) frame for the browser window.
- /// </summary>
- /// <remarks>
- /// See also the original CEF documentation in
- /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_browser_capi.h">cef/include/capi/cef_browser_capi.h</see>.
- /// </remarks>
- public CfrFrame MainFrame {
- get {
- var connection = RemotePtr.connection;
- var call = new CfxBrowserGetMainFrameRemoteCall();
- call.@this = RemotePtr.ptr;
- call.RequestExecution(connection);
- return CfrFrame.Wrap(new RemotePtr(connection, call.__retval));
- }
- }
- /// <summary>
- /// Returns the focused frame for the browser window.
- /// </summary>
- /// <remarks>
- /// See also the original CEF documentation in
- /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_browser_capi.h">cef/include/capi/cef_browser_capi.h</see>.
- /// </remarks>
- public CfrFrame FocusedFrame {
- get {
- var connection = RemotePtr.connection;
- var call = new CfxBrowserGetFocusedFrameRemoteCall();
- call.@this = RemotePtr.ptr;
- call.RequestExecution(connection);
- return CfrFrame.Wrap(new RemotePtr(connection, call.__retval));
- }
- }
- /// <summary>
- /// Returns the number of frames that currently exist.
- /// </summary>
- /// <remarks>
- /// See also the original CEF documentation in
- /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_browser_capi.h">cef/include/capi/cef_browser_capi.h</see>.
- /// </remarks>
- public ulong FrameCount {
- get {
- var connection = RemotePtr.connection;
- var call = new CfxBrowserGetFrameCountRemoteCall();
- call.@this = RemotePtr.ptr;
- call.RequestExecution(connection);
- return call.__retval;
- }
- }
- /// <summary>
- /// Returns the identifiers of all existing frames.
- /// </summary>
- /// <remarks>
- /// See also the original CEF documentation in
- /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_browser_capi.h">cef/include/capi/cef_browser_capi.h</see>.
- /// </remarks>
- public long[] FrameIdentifiers {
- get {
- var connection = RemotePtr.connection;
- var call = new CfxBrowserGetFrameIdentifiersRemoteCall();
- call.@this = RemotePtr.ptr;
- call.RequestExecution(connection);
- return call.__retval;
- }
- }
- /// <summary>
- /// Navigate backwards.
- /// </summary>
- /// <remarks>
- /// See also the original CEF documentation in
- /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_browser_capi.h">cef/include/capi/cef_browser_capi.h</see>.
- /// </remarks>
- public void GoBack() {
- var connection = RemotePtr.connection;
- var call = new CfxBrowserGoBackRemoteCall();
- call.@this = RemotePtr.ptr;
- call.RequestExecution(connection);
- }
- /// <summary>
- /// Navigate forwards.
- /// </summary>
- /// <remarks>
- /// See also the original CEF documentation in
- /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_browser_capi.h">cef/include/capi/cef_browser_capi.h</see>.
- /// </remarks>
- public void GoForward() {
- var connection = RemotePtr.connection;
- var call = new CfxBrowserGoForwardRemoteCall();
- call.@this = RemotePtr.ptr;
- call.RequestExecution(connection);
- }
- /// <summary>
- /// Reload the current page.
- /// </summary>
- /// <remarks>
- /// See also the original CEF documentation in
- /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_browser_capi.h">cef/include/capi/cef_browser_capi.h</see>.
- /// </remarks>
- public void Reload() {
- var connection = RemotePtr.connection;
- var call = new CfxBrowserReloadRemoteCall();
- call.@this = RemotePtr.ptr;
- call.RequestExecution(connection);
- }
- /// <summary>
- /// Reload the current page ignoring any cached data.
- /// </summary>
- /// <remarks>
- /// See also the original CEF documentation in
- /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_browser_capi.h">cef/include/capi/cef_browser_capi.h</see>.
- /// </remarks>
- public void ReloadIgnoreCache() {
- var connection = RemotePtr.connection;
- var call = new CfxBrowserReloadIgnoreCacheRemoteCall();
- call.@this = RemotePtr.ptr;
- call.RequestExecution(connection);
- }
- /// <summary>
- /// Stop loading the page.
- /// </summary>
- /// <remarks>
- /// See also the original CEF documentation in
- /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_browser_capi.h">cef/include/capi/cef_browser_capi.h</see>.
- /// </remarks>
- public void StopLoad() {
- var connection = RemotePtr.connection;
- var call = new CfxBrowserStopLoadRemoteCall();
- call.@this = RemotePtr.ptr;
- call.RequestExecution(connection);
- }
- /// <summary>
- /// Returns true (1) if this object is pointing to the same handle as |that|
- /// object.
- /// </summary>
- /// <remarks>
- /// See also the original CEF documentation in
- /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_browser_capi.h">cef/include/capi/cef_browser_capi.h</see>.
- /// </remarks>
- public bool IsSame(CfrBrowser that) {
- var connection = RemotePtr.connection;
- var call = new CfxBrowserIsSameRemoteCall();
- call.@this = RemotePtr.ptr;
- if(!CfrObject.CheckConnection(that, connection)) throw new ArgumentException("Render process connection mismatch.", "that");
- call.that = CfrObject.Unwrap(that).ptr;
- call.RequestExecution(connection);
- return call.__retval;
- }
- /// <summary>
- /// Returns the frame with the specified identifier, or NULL if not found.
- /// </summary>
- /// <remarks>
- /// See also the original CEF documentation in
- /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_browser_capi.h">cef/include/capi/cef_browser_capi.h</see>.
- /// </remarks>
- public CfrFrame GetFrame(long identifier) {
- var connection = RemotePtr.connection;
- var call = new CfxBrowserGetFrameByIdentifierRemoteCall();
- call.@this = RemotePtr.ptr;
- call.identifier = identifier;
- call.RequestExecution(connection);
- return CfrFrame.Wrap(new RemotePtr(connection, call.__retval));
- }
- /// <summary>
- /// Returns the frame with the specified name, or NULL if not found.
- /// </summary>
- /// <remarks>
- /// See also the original CEF documentation in
- /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_browser_capi.h">cef/include/capi/cef_browser_capi.h</see>.
- /// </remarks>
- public CfrFrame GetFrame(string name) {
- var connection = RemotePtr.connection;
- var call = new CfxBrowserGetFrameRemoteCall();
- call.@this = RemotePtr.ptr;
- call.name = name;
- call.RequestExecution(connection);
- return CfrFrame.Wrap(new RemotePtr(connection, call.__retval));
- }
- /// <summary>
- /// Returns the names of all existing frames.
- /// </summary>
- /// <remarks>
- /// See also the original CEF documentation in
- /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_browser_capi.h">cef/include/capi/cef_browser_capi.h</see>.
- /// </remarks>
- public System.Collections.Generic.List<string> GetFrameNames() {
- var connection = RemotePtr.connection;
- var call = new CfxBrowserGetFrameNamesRemoteCall();
- call.@this = RemotePtr.ptr;
- call.RequestExecution(connection);
- return call.__retval;
- }
- }
- }