203 lines
10 KiB
C++
203 lines
10 KiB
C++
// CodeGear C++Builder
|
|
// Copyright (c) 1995, 2025 by Embarcadero Technologies, Inc.
|
|
// All rights reserved
|
|
|
|
// (DO NOT EDIT: machine generated header) 'uCEFBrowser.pas' rev: 37.00 (Windows)
|
|
|
|
#ifndef uCEFBrowserHPP
|
|
#define uCEFBrowserHPP
|
|
|
|
#pragma delphiheader begin
|
|
#pragma option push
|
|
#if defined(__BORLANDC__) && !defined(__clang__)
|
|
#pragma option -w- // All warnings off
|
|
#pragma option -Vx // Zero-length empty class member
|
|
#endif
|
|
#pragma pack(push,8)
|
|
#include <System.hpp>
|
|
#include <SysInit.hpp>
|
|
#include <System.Classes.hpp>
|
|
#include <System.SysUtils.hpp>
|
|
#include <uCEFBaseRefCounted.hpp>
|
|
#include <uCEFInterfaces.hpp>
|
|
#include <uCEFTypes.hpp>
|
|
|
|
//-- user supplied -----------------------------------------------------------
|
|
|
|
namespace Ucefbrowser
|
|
{
|
|
//-- forward type declarations -----------------------------------------------
|
|
class DELPHICLASS TCefBrowserRef;
|
|
class DELPHICLASS TCefBrowserHostRef;
|
|
//-- type declarations -------------------------------------------------------
|
|
#pragma pack(push,4)
|
|
class PASCALIMPLEMENTATION TCefBrowserRef : public Ucefbaserefcounted::TCefBaseRefCountedRef
|
|
{
|
|
typedef Ucefbaserefcounted::TCefBaseRefCountedRef inherited;
|
|
|
|
protected:
|
|
bool __fastcall IsValid();
|
|
Ucefinterfaces::_di_ICefBrowserHost __fastcall GetHost();
|
|
bool __fastcall CanGoBack();
|
|
void __fastcall GoBack();
|
|
bool __fastcall CanGoForward();
|
|
void __fastcall GoForward();
|
|
bool __fastcall IsLoading();
|
|
void __fastcall Reload();
|
|
void __fastcall ReloadIgnoreCache();
|
|
void __fastcall StopLoad();
|
|
int __fastcall GetIdentifier();
|
|
bool __fastcall IsSame(const Ucefinterfaces::_di_ICefBrowser that);
|
|
bool __fastcall IsPopup();
|
|
bool __fastcall HasDocument();
|
|
Ucefinterfaces::_di_ICefFrame __fastcall GetMainFrame();
|
|
Ucefinterfaces::_di_ICefFrame __fastcall GetFocusedFrame();
|
|
Ucefinterfaces::_di_ICefFrame __fastcall GetFrameByIdentifier(const Uceftypes::ustring identifier);
|
|
Ucefinterfaces::_di_ICefFrame __fastcall GetFrameByName(const Uceftypes::ustring name);
|
|
System::NativeUInt __fastcall GetFrameCount();
|
|
bool __fastcall GetFrameIdentifiers(System::Classes::TStrings* &aFrameIdentifiers);
|
|
bool __fastcall GetFrameNames(System::Classes::TStrings* &aFrameNames);
|
|
|
|
public:
|
|
__classmethod Ucefinterfaces::_di_ICefBrowser __fastcall UnWrap(void * data);
|
|
public:
|
|
/* TCefBaseRefCountedRef.Create */ inline __fastcall virtual TCefBrowserRef(void * data) : Ucefbaserefcounted::TCefBaseRefCountedRef(data) { }
|
|
/* TCefBaseRefCountedRef.Destroy */ inline __fastcall virtual ~TCefBrowserRef() { }
|
|
|
|
private:
|
|
void *__ICefBrowser; // Ucefinterfaces::ICefBrowser
|
|
|
|
public:
|
|
#if defined(MANAGED_INTERFACE_OPERATORS)
|
|
// {BA003C2E-CF15-458F-9D4A-FE3CEFCF3EEF}
|
|
operator Ucefinterfaces::_di_ICefBrowser()
|
|
{
|
|
Ucefinterfaces::_di_ICefBrowser intf;
|
|
this->GetInterface(intf);
|
|
return intf;
|
|
}
|
|
#else
|
|
operator Ucefinterfaces::ICefBrowser*(void) { return (Ucefinterfaces::ICefBrowser*)&__ICefBrowser; }
|
|
#endif
|
|
|
|
};
|
|
|
|
#pragma pack(pop)
|
|
|
|
#pragma pack(push,4)
|
|
class PASCALIMPLEMENTATION TCefBrowserHostRef : public Ucefbaserefcounted::TCefBaseRefCountedRef
|
|
{
|
|
typedef Ucefbaserefcounted::TCefBaseRefCountedRef inherited;
|
|
|
|
protected:
|
|
Ucefinterfaces::_di_ICefBrowser __fastcall GetBrowser();
|
|
void __fastcall CloseBrowser(bool forceClose);
|
|
bool __fastcall TryCloseBrowser();
|
|
bool __fastcall IsReadyToBeClosed();
|
|
void __fastcall SetFocus(bool focus);
|
|
Uceftypes::TCefWindowHandle __fastcall GetWindowHandle();
|
|
Uceftypes::TCefWindowHandle __fastcall GetOpenerWindowHandle();
|
|
int __fastcall GetOpenerIdentifier();
|
|
bool __fastcall HasView();
|
|
Ucefinterfaces::_di_ICefClient __fastcall GetClient();
|
|
Ucefinterfaces::_di_ICefRequestContext __fastcall GetRequestContext();
|
|
bool __fastcall CanZoom(Uceftypes::TCefZoomCommand command);
|
|
void __fastcall Zoom(Uceftypes::TCefZoomCommand command);
|
|
double __fastcall GetDefaultZoomLevel();
|
|
double __fastcall GetZoomLevel();
|
|
void __fastcall SetZoomLevel(const double zoomLevel);
|
|
void __fastcall RunFileDialog(Uceftypes::TCefFileDialogMode mode, const Uceftypes::ustring title, const Uceftypes::ustring defaultFilePath, System::Classes::TStrings* const acceptFilters, const Ucefinterfaces::_di_ICefRunFileDialogCallback callback);
|
|
void __fastcall RunFileDialogProc(Uceftypes::TCefFileDialogMode mode, const Uceftypes::ustring title, const Uceftypes::ustring defaultFilePath, System::Classes::TStrings* const acceptFilters, const Ucefinterfaces::_di_TCefRunFileDialogCallbackProc callback);
|
|
void __fastcall StartDownload(const Uceftypes::ustring url);
|
|
void __fastcall DownloadImage(const Uceftypes::ustring imageUrl, bool isFavicon, unsigned maxImageSize, bool bypassCache, const Ucefinterfaces::_di_ICefDownloadImageCallback callback);
|
|
void __fastcall DownloadImageProc(const Uceftypes::ustring imageUrl, bool isFavicon, unsigned maxImageSize, bool bypassCache, const Ucefinterfaces::_di_TOnDownloadImageFinishedProc callback);
|
|
void __fastcall Print();
|
|
void __fastcall PrintToPdf(const Uceftypes::ustring path, Uceftypes::PCefPdfPrintSettings settings, const Ucefinterfaces::_di_ICefPdfPrintCallback callback);
|
|
void __fastcall PrintToPdfProc(const Uceftypes::ustring path, Uceftypes::PCefPdfPrintSettings settings, const Ucefinterfaces::_di_TOnPdfPrintFinishedProc callback);
|
|
void __fastcall Find(const Uceftypes::ustring searchText, bool forward_, bool matchCase, bool findNext);
|
|
void __fastcall StopFinding(bool clearSelection);
|
|
void __fastcall ShowDevTools(const Uceftypes::PCefWindowInfo windowInfo, const Ucefinterfaces::_di_ICefClient client, const Uceftypes::PCefBrowserSettings settings, Uceftypes::PCefPoint inspectElementAt);
|
|
void __fastcall CloseDevTools();
|
|
bool __fastcall HasDevTools();
|
|
bool __fastcall SendDevToolsMessage(const Uceftypes::ustring message_);
|
|
int __fastcall ExecuteDevToolsMethod(int message_id, const Uceftypes::ustring method, const Ucefinterfaces::_di_ICefDictionaryValue params);
|
|
Ucefinterfaces::_di_ICefRegistration __fastcall AddDevToolsMessageObserver(const Ucefinterfaces::_di_ICefDevToolsMessageObserver observer);
|
|
void __fastcall GetNavigationEntries(const Ucefinterfaces::_di_ICefNavigationEntryVisitor visitor, bool currentOnly);
|
|
void __fastcall GetNavigationEntriesProc(const Ucefinterfaces::_di_TCefNavigationEntryVisitorProc proc, bool currentOnly);
|
|
void __fastcall ReplaceMisspelling(const Uceftypes::ustring word);
|
|
void __fastcall AddWordToDictionary(const Uceftypes::ustring word);
|
|
bool __fastcall IsWindowRenderingDisabled();
|
|
void __fastcall WasResized();
|
|
void __fastcall NotifyScreenInfoChanged();
|
|
void __fastcall WasHidden(bool hidden);
|
|
void __fastcall Invalidate(Uceftypes::TCefPaintElementType type_);
|
|
void __fastcall SendExternalBeginFrame();
|
|
void __fastcall SendKeyEvent(const Uceftypes::PCefKeyEvent event);
|
|
void __fastcall SendMouseClickEvent(const Uceftypes::PCefMouseEvent event, Uceftypes::TCefMouseButtonType type_, bool mouseUp, int clickCount);
|
|
void __fastcall SendMouseMoveEvent(const Uceftypes::PCefMouseEvent event, bool mouseLeave);
|
|
void __fastcall SendMouseWheelEvent(const Uceftypes::PCefMouseEvent event, int deltaX, int deltaY);
|
|
void __fastcall SendTouchEvent(const Uceftypes::PCefTouchEvent event);
|
|
void __fastcall SendCaptureLostEvent();
|
|
void __fastcall NotifyMoveOrResizeStarted();
|
|
int __fastcall GetWindowlessFrameRate();
|
|
void __fastcall SetWindowlessFrameRate(int frameRate);
|
|
void __fastcall IMESetComposition(const Uceftypes::ustring text, const Uceftypes::TCefCompositionUnderlineDynArray underlines, const Uceftypes::PCefRange replacement_range, const Uceftypes::PCefRange selection_range);
|
|
void __fastcall IMECommitText(const Uceftypes::ustring text, const Uceftypes::PCefRange replacement_range, int relative_cursor_pos);
|
|
void __fastcall IMEFinishComposingText(bool keep_selection);
|
|
void __fastcall IMECancelComposition();
|
|
void __fastcall DragTargetDragEnter(const Ucefinterfaces::_di_ICefDragData dragData, const Uceftypes::PCefMouseEvent event, Uceftypes::TCefDragOperations allowedOps);
|
|
void __fastcall DragTargetDragOver(const Uceftypes::PCefMouseEvent event, Uceftypes::TCefDragOperations allowedOps);
|
|
void __fastcall DragTargetDragLeave();
|
|
void __fastcall DragTargetDrop(const Uceftypes::PCefMouseEvent event);
|
|
void __fastcall DragSourceEndedAt(int x, int y, Uceftypes::TCefDragOperation op);
|
|
void __fastcall DragSourceSystemDragEnded();
|
|
Ucefinterfaces::_di_ICefNavigationEntry __fastcall GetVisibleNavigationEntry();
|
|
void __fastcall SetAccessibilityState(Uceftypes::TCefState accessibilityState);
|
|
void __fastcall SetAutoResizeEnabled(bool enabled, const Uceftypes::PCefSize min_size, const Uceftypes::PCefSize max_size);
|
|
void __fastcall SetAudioMuted(bool mute);
|
|
bool __fastcall IsAudioMuted();
|
|
bool __fastcall IsFullscreen();
|
|
void __fastcall ExitFullscreen(bool will_cause_resize);
|
|
bool __fastcall CanExecuteChromeCommand(int command_id);
|
|
void __fastcall ExecuteChromeCommand(int command_id, Uceftypes::TCefWindowOpenDisposition disposition);
|
|
bool __fastcall IsRenderProcessUnresponsive();
|
|
Uceftypes::TCefRuntimeStyle __fastcall GetRuntimeStyle();
|
|
|
|
public:
|
|
__classmethod Ucefinterfaces::_di_ICefBrowserHost __fastcall UnWrap(void * data);
|
|
public:
|
|
/* TCefBaseRefCountedRef.Create */ inline __fastcall virtual TCefBrowserHostRef(void * data) : Ucefbaserefcounted::TCefBaseRefCountedRef(data) { }
|
|
/* TCefBaseRefCountedRef.Destroy */ inline __fastcall virtual ~TCefBrowserHostRef() { }
|
|
|
|
private:
|
|
void *__ICefBrowserHost; // Ucefinterfaces::ICefBrowserHost
|
|
|
|
public:
|
|
#if defined(MANAGED_INTERFACE_OPERATORS)
|
|
// {53AE02FF-EF5D-48C3-A43E-069DA9535424}
|
|
operator Ucefinterfaces::_di_ICefBrowserHost()
|
|
{
|
|
Ucefinterfaces::_di_ICefBrowserHost intf;
|
|
this->GetInterface(intf);
|
|
return intf;
|
|
}
|
|
#else
|
|
operator Ucefinterfaces::ICefBrowserHost*(void) { return (Ucefinterfaces::ICefBrowserHost*)&__ICefBrowserHost; }
|
|
#endif
|
|
|
|
};
|
|
|
|
#pragma pack(pop)
|
|
|
|
//-- var, const, procedure ---------------------------------------------------
|
|
} /* namespace Ucefbrowser */
|
|
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_UCEFBROWSER)
|
|
using namespace Ucefbrowser;
|
|
#endif
|
|
#pragma pack(pop)
|
|
#pragma option pop
|
|
|
|
#pragma delphiheader end.
|
|
//-- end unit ----------------------------------------------------------------
|
|
#endif // uCEFBrowserHPP
|