/*
*
* wolar@qq.com
* http://miniblink.net 文档地址
* https://github.com/weolar/miniblink49
* licence Apache-2.0
*
*/
#ifndef WKE_DEFINE_H
#define WKE_DEFINE_H
#include <wchar.h>
#include <windows.h>
//////////////////////////////////////////////////////////////////////////
#define WKE_CALL_TYPE __cdecl
typedef struct _wkeRect {
int x;
int y;
int w;
int h;
} wkeRect;
typedef struct _wkePoint {
int x;
int y;
} wkePoint;
typedef struct _wkeSize {
int w;
int h;
} wkeSize;
typedef enum _wkeMouseFlags {
WKE_LBUTTON = 0x01,
WKE_RBUTTON = 0x02,
WKE_SHIFT = 0x04,
WKE_CONTROL = 0x08,
WKE_MBUTTON = 0x10,
} wkeMouseFlags;
typedef enum _wkeKeyFlags {
WKE_EXTENDED = 0x0100,
WKE_REPEAT = 0x4000,
} wkeKeyFlags;
typedef enum _wkeMouseMsg {
WKE_MSG_MOUSEMOVE = 0x0200,
WKE_MSG_LBUTTONDOWN = 0x0201,
WKE_MSG_LBUTTONUP = 0x0202,
WKE_MSG_LBUTTONDBLCLK = 0x0203,
WKE_MSG_RBUTTONDOWN = 0x0204,
WKE_MSG_RBUTTONUP = 0x0205,
WKE_MSG_RBUTTONDBLCLK = 0x0206,
WKE_MSG_MBUTTONDOWN = 0x0207,
WKE_MSG_MBUTTONUP = 0x0208,
WKE_MSG_MBUTTONDBLCLK = 0x0209,
WKE_MSG_MOUSEWHEEL = 0x020A,
} wkeMouseMsg;
#if !defined(__cplusplus)
#ifndef HAVE_WCHAR_T
typedef unsigned short wchar_t;
#endif
#define bool _Bool
#define false 0
#define true 1
#endif
#if defined(__cplusplus)
#define WKE_EXTERN_C extern "C"
#else
#define WKE_EXTERN_C
#endif
typedef char utf8;
#if !defined(__cplusplus)
typedef void* jsExecState;
#else
struct JsExecStateInfo;
typedef JsExecStateInfo* jsExecState;
#endif
typedef __int64 jsValue;
#if defined(__cplusplus)
namespace wke { class CWebView; }
typedef wke::CWebView* wkeWebView;
namespace wke { class CString; }
typedef wke::CString* wkeString;
#else
struct _tagWkeWebView;
typedef struct _tagWkeWebView* wkeWebView;
struct _tagWkeString;
typedef struct _tagWkeString* wkeString;
#endif
#if defined(__cplusplus)
namespace wke { class WkeMediaPlayer; }
typedef wke::WkeMediaPlayer* wkeMediaPlayer;
namespace wke { class WkeMediaPlayerClient; }
typedef wke::WkeMediaPlayerClient* wkeMediaPlayerClient;
namespace blink { class WebURLRequest; }
typedef blink::WebURLRequest* blinkWebURLRequestPtr;
#else
typedef struct _tagWkeMediaPlayer* wkeMediaPlayer;
typedef struct _tagWkeMediaPlayerClient* wkeMediaPlayerClient;
typedef struct _tabblinkWebURLRequestPtr* blinkWebURLRequestPtr;
#endif
typedef enum _wkeProxyType {
WKE_PROXY_NONE,
WKE_PROXY_HTTP,
WKE_PROXY_SOCKS4,
WKE_PROXY_SOCKS4A,
WKE_PROXY_SOCKS5,
WKE_PROXY_SOCKS5HOSTNAME
} wkeProxyType;
typedef struct _wkeProxy {
wkeProxyType type;
char hostname[100];
unsigned short port;
char username[50];
char password[50];
} wkeProxy;
typedef enum _wkeSettingMask {
WKE_SETTING_PROXY = 1,
WKE_SETTING_EXTENSION = 1 << 2, // 测试功能,请勿调用
} wkeSettingMask;
typedef struct _wkeSettings {
wkeProxy proxy;
unsigned int mask;
const char* extension;
} wkeSettings;
typedef struct _wkeViewSettings {
int size;
unsigned int bgColor;
} wkeViewSettings;
typedef void* wkeWebFrameHandle;
typedef struct _wkeGeolocationPosition{
double timestamp;
double latitude;
double longitude;
double accuracy;
bool providesAltitude;
double altitude;
bool providesAltitudeAccuracy;
double altitudeAccuracy;
bool providesHeading;
double heading;
bool providesSpeed;
double speed;
#if defined(__cplusplus)
_wkeGeolocationPosition(const _wkeGeolocationPosition& other);
#endif
} wkeGeolocationPosition;
#if defined(__cplusplus)
inline _wkeGeolocationPosition::_wkeGeolocationPosition(const _wkeGeolocationPosition& other)
{
timestamp = other.timestamp;
latitude = other.latitude;
longitude = other.longitude;
accuracy = other.accuracy;
providesAltitude = other.providesAltitude;
altitude = other.altitude;
providesAltitudeAccuracy = other.providesAltitudeAccuracy;
altitudeAccuracy = other.altitudeAccuracy;
providesHeading = other.providesHeading;
heading = other.heading;
providesSpeed = other.providesSpeed;
speed = other.speed;
}
#endif
typedef enum _wkeMenuItemId {
kWkeMenuSelectedAllId = 1 << 1,
kWkeMenuSelectedTextId = 1 << 2,
kWkeMenuUndoId = 1 << 3,
kWkeMenuCopyImageId = 1 << 4,
kWkeMenuInspectElementAtId = 1 << 5,
kWkeMenuCutId = 1 << 6,
kWkeMenuPasteId = 1 << 7,
kWkeMenuPrintId = 1 << 8,
kWkeMenuGoForwardId = 1 << 9,
kWkeMenuGoBackId = 1 << 10,
kWkeMenuReloadId = 1 << 11,
kWkeMenuSaveImageId = 1 << 12,
} wkeMenuItemId;
typedef void* (WKE_CALL_TYPE *FILE_OPEN_) (const char* path);
typedef void(WKE_CALL_TYPE *FILE_CLOSE_) (void* handle);
typedef size_t(WKE_CALL_TYPE *FILE_SIZE) (void* handle);
typedef int(WKE_CALL_TYPE *FILE_READ) (void* handle, void* buffer, size_t size);
typedef int(WKE_CALL_TYPE *FILE_SEEK) (void* handle, int offset, int origin);
typedef FILE_OPEN_ WKE_FILE_OPEN;
typedef FILE_CLOSE_ WKE_FILE_CLOSE;
typedef FILE_SIZE WKE_FILE_SIZE;
typedef FILE_READ WKE_FILE_READ;
typedef FILE_SEEK WKE_FILE_SEEK;
typedef bool(WKE_CALL_TYPE *WKE_EXISTS_FILE)(const char * path);
struct _wkeClientHandler; // declare warning fix
typedef void(WKE_CALL_TYPE *ON_TITLE_CHANGED) (const struct _wkeClientHandler* clientHandler, const wkeString title);
typedef void(WKE_CALL_TYPE *ON_URL_CHANGED) (const struct _wkeClientHandler* clientHandler, const wkeString url);
typedef struct _wkeClientHandler {
ON_TITLE_CHANGED onTitleChanged;
ON_URL_CHANGED onURLChanged;
} wkeClientHandler;
typedef bool(WKE_CALL_TYPE * wkeCookieVisitor)(
void* params,
const char* name,
const char* value,
const char* domain,
const char* path, // If |path| is non-empty only URLs at or below the path will get the cookie value.
int secure, // If |secure| is true the cookie will only be sent for HTTPS requests.
int httpOnly, // If |httponly| is true the cookie will only be sent for HTTP requests.
int* expires // The cookie expiration date is only valid if |has_expires| is true.
);
typedef enum _wkeCookieCommand {
wkeCookieCommandClearAllCookies,
wkeCookieCommandClearSessionCookies,
wkeCookieCommandFlushCookiesToFile,
wkeCookieCommandReloadCookiesFromFile,
} wkeCookieCommand;
typedef enum _wkeNavigationType {
WKE_NAVIGATION_TYPE_LINKCLICK,
WKE_NAVIGATION_TYPE_FORMSUBMITTE,
WKE_NAVIGATION_TYPE_BACKFORWARD,
WKE_NAVIGATION_TYPE_RELOAD,
WKE_NAVIGATION_TYPE_FORMRESUBMITT,
WKE_NAVIGATION_TYPE_OTHER
} wkeNavigationType;
typedef enum _WkeCursorInfoType {
WkeCursorInfoPointer,
WkeCursorInfoCross,
WkeCursorInfoHand,
WkeCursorInfoIBeam,
WkeCursorInfoWait,
WkeCursorInfoHelp,
WkeCursorInfoEastResize,
WkeCursorInfoNorthResize,
WkeCursorInfoNorthEastResize,
WkeCursorInfoNorthWestResize,
WkeCursorInfoSouthResize,
WkeCursorInfoSouthEastResize,
WkeCursorInfoSouthWestResize,
WkeCursorInfoWestResize,
WkeCursorInfoNorthSouthResize,
WkeCursorInfoEastWestResize,
WkeCursorInfoNorthEastSouthWestResize,
WkeCursorInfoNorthWestSouthEastResize,
WkeCursorInfoColumnResize,
WkeCursorInfoRowResize,
WkeCursorInfoMiddlePanning,
WkeCursorInfoEastPanning,
WkeCursorInfoNorthPanning,
WkeCursorInfoNorthEastPanning,
WkeCursorInfoNorthWestPanning,
WkeCursorInfoSouthPanning,
WkeCursorInfoSouthEastPanning,
WkeCursorInfoSouthWestPanning,
WkeCursorInfoWestPanning,
WkeCursorInfoMove,
WkeCursorInfoVerticalText,
WkeCursorInfoCell,
WkeCursorInfoContextMenu,
WkeCursorInfoAlias,
WkeCursorInfoProgress,
WkeCursorInfoNoDrop,
WkeCursorInfoCopy,
WkeCursorInfoNone,
WkeCursorInfoNotAllowed,
WkeCursorInfoZoomIn,
WkeCursorInfoZoomOut,
WkeCursorInfoGrab,
WkeCursorInfoGrabbing,
WkeCursorInfoCustom
} WkeCursorInfoType;
typedef struct _wkeWindowFeatures {
int x;
没有合适的资源?快使用搜索试试~ 我知道了~
基于免费版的 miniblink 的 GO 封装.zip
共710个文件
js:416个
css:92个
png:81个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 155 浏览量
2024-05-24
11:42:32
上传
评论
收藏 32.09MB ZIP 举报
温馨提示
基于免费版的 miniblink 的 GO 封装Go语言(也称为Golang)是由Google开发的一种静态强类型、编译型的编程语言。它旨在成为一门简单、高效、安全和并发的编程语言,特别适用于构建高性能的服务器和分布式系统。以下是Go语言的一些主要特点和优势: 简洁性:Go语言的语法简单直观,易于学习和使用。它避免了复杂的语法特性,如继承、重载等,转而采用组合和接口来实现代码的复用和扩展。 高性能:Go语言具有出色的性能,可以媲美C和C++。它使用静态类型系统和编译型语言的优势,能够生成高效的机器码。 并发性:Go语言内置了对并发的支持,通过轻量级的goroutine和channel机制,可以轻松实现并发编程。这使得Go语言在构建高性能的服务器和分布式系统时具有天然的优势。 安全性:Go语言具有强大的类型系统和内存管理机制,能够减少运行时错误和内存泄漏等问题。它还支持编译时检查,可以在编译阶段就发现潜在的问题。 标准库:Go语言的标准库非常丰富,包含了大量的实用功能和工具,如网络编程、文件操作、加密解密等。这使得开发者可以更加专注于业务逻辑的实现,而无需花费太多时间在底层功能的实现上。 跨平台:Go语言支持多种操作系统和平台,包括Windows、Linux、macOS等。它使用统一的构建系统(如Go Modules),可以轻松地跨平台编译和运行代码。 开源和社区支持:Go语言是开源的,具有庞大的社区支持和丰富的资源。开发者可以通过社区获取帮助、分享经验和学习资料。 总之,Go语言是一种简单、高效、安全、并发的编程语言,特别适用于构建高性能的服务器和分布式系统。如果你正在寻找一种易于学习和使用的编程语言,并且需要处理大量的并发请求和数据,那么Go语言可能是一个不错的选择。
资源推荐
资源详情
资源评论
收起资源包目录
基于免费版的 miniblink 的 GO 封装.zip (710个子文件)
timelinePanel.css 19KB
elementsPanel.css 16KB
inspectorStyle.css 15KB
networkLogView.css 14KB
helpScreen.css 11KB
responsiveDesignView.css 11KB
consoleView.css 11KB
toolbar.css 9KB
resourcesPanel.css 9KB
codemirror.css 7KB
cmdevtools.css 7KB
elementsTreeOutline.css 6KB
profilesPanel.css 6KB
overrides.css 6KB
sourcesPanel.css 6KB
tabbedPane.css 6KB
splitWidget.css 5KB
serviceWorkersView.css 5KB
networkPanel.css 5KB
animationTimeline.css 5KB
heapProfiler.css 5KB
dataGrid.css 5KB
popover.css 4KB
inspectorSyntaxHighlight.css 4KB
breakpointsList.css 4KB
screencastView.css 4KB
sourcesSearch.css 4KB
sidebarPane.css 4KB
filter.css 4KB
bezierEditor.css 3KB
indexedDBViews.css 3KB
devicesSettingsTab.css 3KB
auditsPanel.css 3KB
sourcesView.css 3KB
accelerometer.css 3KB
spectrum.css 3KB
suggestBox.css 3KB
navigatorView.css 3KB
revisionHistory.css 3KB
searchableView.css 3KB
inspectorCommon.css 3KB
panelEnablerView.css 3KB
requestHeadersView.css 2KB
treeoutline.css 2KB
objectValue.css 2KB
propertiesSection.css 2KB
serviceWorkerCacheViews.css 2KB
xmlView.css 2KB
softContextMenu.css 2KB
promisePane.css 2KB
overviewGrid.css 2KB
breadcrumbs.css 2KB
section.css 2KB
textButton.css 2KB
filmStripView.css 1KB
flameChart.css 1KB
computedStyleSidebarPane.css 1KB
lockIcon.css 1KB
smallIcon.css 1KB
filteredItemSelectionDialog.css 1KB
timelineGrid.css 1KB
checkboxTextLabel.css 1KB
dialog.css 1KB
imageView.css 1KB
textPrompt.css 1KB
uiList.css 1KB
accessibilityNode.css 1KB
radioButton.css 1020B
objectPropertiesSection.css 935B
webSocketFrameView.css 927B
closeButton.css 889B
securityPanel.css 863B
customPreviewSection.css 831B
infobar.css 814B
auditResultTree.css 803B
inspectorViewTabbedPane.css 714B
progressIndicator.css 714B
colorSwatch.css 687B
eventListenersView.css 624B
dropTarget.css 574B
invalidationsTree.css 573B
serviceWorkersSidebar.css 520B
domUtils.css 506B
pieChart.css 490B
requestCookiesView.css 443B
filmStripDialog.css 420B
emptyWidget.css 360B
resourceSourceFrame.css 346B
fontView.css 310B
inspector.css 295B
eventSourceMessagesView.css 254B
toolbox.css 247B
blink.dll 40.54MB
blink.dll 33.83MB
.gitattributes 114B
.gitignore 133B
view.go 14KB
cast.go 14KB
window.go 11KB
js.go 8KB
共 710 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8
资源评论
生瓜蛋子
- 粉丝: 3829
- 资源: 5969
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功