随笔分类 -  electron与chromium内核

摘要:chromium 保存文件名乱码 content-disposition 阅读全文
posted @ 2020-09-18 20:02 Bigben 阅读(6555) 评论(0) 推荐(1) 编辑
摘要:把网页输出成pdf:.\chromium -disable-gpu -headless -print-to-pdf https://www.bilibili.com 生成的pdf会花费些时间。等几分钟,看看chromium目录下应该有 output.pdf。 参考 https://segmentfa 阅读全文
posted @ 2020-09-16 11:54 Bigben 阅读(544) 评论(0) 推荐(0) 编辑
摘要:1,外围调用的 js方法: win.webContents.session.getCacheData("http://192.168.50.206:8080/back.html1").then( result=>{ console.log("getCacheData resolve:"+result 阅读全文
posted @ 2020-09-14 14:01 Bigben 阅读(938) 评论(0) 推荐(0) 编辑
摘要:nodejs c++扩展 electron native module 阅读全文
posted @ 2020-09-08 09:55 Bigben 阅读(785) 评论(0) 推荐(0) 编辑
摘要:js中函数,其实也有属性,比如: function myfunc(){ return 888; } myfunc.length //这个就是函数的属性 c++中实现时, obj_template->SetCallAsFunctionHandler(Myfunc); 这样实现的。类似java的类,就是 阅读全文
posted @ 2020-08-28 10:06 Bigben 阅读(260) 评论(0) 推荐(0) 编辑
摘要:所有chrome内部使用协议查看: chrome://chrome-urls/ chrome缓存查看器: http://www.nirsoft.net/utils/chrome_cache_view.html Chrome DevTools Frontend 运行原理浅析 深入理解 Chrome D 阅读全文
posted @ 2020-08-24 11:21 Bigben 阅读(719) 评论(0) 推荐(0) 编辑
摘要:chrome 缓存查看 chrome://version/ 可以看到缓存目录 chrome://cache/ == chrome://view-http-cache/ 可以看到已经编码的缓存文件。需要在chrome 65以前版本。后来的删除了。 electron 缓存目录 unix dir: /ho 阅读全文
posted @ 2020-08-20 17:00 Bigben 阅读(3270) 评论(0) 推荐(0) 编辑
摘要:How cc Works 中文 cc readme文档:cc readme - Bigben - 博客园 (cnblogs.com) Original google doc Chinese | Korean Chromium 的工程师们写了两篇技术文章 How Blink Works (中文译文) 阅读全文
posted @ 2020-08-20 09:24 Bigben 阅读(947) 评论(0) 推荐(0) 编辑
摘要:进入fullscreen 退出fullscreen 阅读全文
posted @ 2020-08-13 15:15 Bigben 阅读(505) 评论(0) 推荐(0) 编辑
摘要:一,electron用typescript实现了函数。比如重写了 windows.history.back go等js 内置函数。不走blink的js binding。 D:\dev\electron7\src\electron\lib\renderer\window-setup.ts window 阅读全文
posted @ 2020-08-07 15:38 Bigben 阅读(1366) 评论(0) 推荐(0) 编辑
摘要:7.3.2的文档:https://github.com/electron/electron/blob/v7.3.2/docs/api/dialog.md 不同版本可以切换 一个是同步对话框,另外一个是异步。 同步: //will-prevent-unload这个事件只会在弹出框关闭时触发,比如ale 阅读全文
posted @ 2020-08-06 10:05 Bigben 阅读(2803) 评论(0) 推荐(0) 编辑
摘要:事件接入有二种方式, 一,通过属性设置:onclick()= function(){} EventTarget::SetAttributeEventListener 二,通过addEventListener,通过dom注册的js同调函数进入。AddEventListenerMethod 如果从doc 阅读全文
posted @ 2020-07-23 11:59 Bigben 阅读(420) 评论(0) 推荐(0) 编辑
摘要:基于Chromium的渲染进程轻量化隔离方法 阅读全文
posted @ 2020-07-21 15:56 Bigben 阅读(186) 评论(0) 推荐(0) 编辑
摘要:chrome chromium 启动 命令行 开关 参数 switches command line flags 阅读全文
posted @ 2020-07-21 15:40 Bigben 阅读(13929) 评论(0) 推荐(0) 编辑
摘要:转: Chromium的Render进程启动过程分析 chromium browser process 与 render process 间通信通道的建立 罗升阳 2015-08-24 01:06:51 24918 收藏 4分类专栏: 老罗的Android之旅版权 在配置多进程的情况下,Chromi 阅读全文
posted @ 2020-07-21 14:55 Bigben 阅读(1582) 评论(0) 推荐(0) 编辑
摘要:clipboard api参考: https://www.inovex.de/blog/clipboard-api/ https://w3c.github.io/clipboard-apis/ mdn的文档:https://developer.mozilla.org/en-US/docs/Web/A 阅读全文
posted @ 2020-07-16 14:31 Bigben 阅读(1107) 评论(0) 推荐(0) 编辑
摘要:在做Chromium浏览器定制化需求时常常需要扩展JS对象以增加js的功能. 在javascript这门编程语言的概念里,一切皆为对象,变量,函数等等一切皆为对象,没有类的概念,javascript是一门动态语言,它的主要特点是对象的类型和内容是在运行时决定的,是可以不断变化的. 在javascri 阅读全文
posted @ 2020-07-06 17:20 Bigben 阅读(952) 评论(0) 推荐(0) 编辑
摘要:Getting started with embedding V8 This document introduces some key V8 concepts and provides a “hello world” example to get you started with V8 code. 阅读全文
posted @ 2020-07-02 16:20 Bigben 阅读(429) 评论(0) 推荐(0) 编辑
摘要:chromium源码阅读--V8 Embbeding V8是google提供高性能JavaScript解释器,嵌入在chromium里执行JavaScript代码。 V8本身是C++实现的,所有嵌入本身毫无压力,一起编译即可,不过作为一个动态语言解释器,它的世界观肯定跟C++还是有区别的。 编程语言 阅读全文
posted @ 2020-06-30 13:46 Bigben 阅读(475) 评论(0) 推荐(0) 编辑
摘要:转自:Chromium 基础库使用说明 原文: Important Abstractions and Data Structures 基础howto介绍:chrome是如何调用启动的:https://www.chromium.org/developers/how-tos/getting-around 阅读全文
posted @ 2020-06-24 17:31 Bigben 阅读(4459) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示