- 博客(15)
- 资源 (19)
- 收藏
- 关注
原创 mediawiki nginx配置
准备环境安装mediawiki的步骤,如果使用nginx,首先卸载apache、php,然后安装依赖。sudo apt-get remove --puege apache* php*sudo apt-get install build-essential gcc g++ make cmake automake autoconf re2c cron bzip2 libzip-dev libc6-dev
2017-03-31 14:44:44
3328
原创 disk_cache of chromium in android4.4
disk_cache 的存储有三种实现方式:CACHE_BACKEND_BLOCKFILE(Windows默认)CACHE_BACKEND_SIMPLE(专门针对移动设备实现)CACHE_BACKEND_DEFAULT在Android上的实现比较简单,一个资源的存储分为两部分: index, entry。index即资源名的hash值,存储在“the-real-inde
2014-02-20 09:59:42
953
原创 android 4.4 WebView
刚下载完android4.4的代码,发现Browser的改动很大,特别是framework层和lib库。android4.4的WebView剔除了原来的WebKit,改用chromium的核。在创建WebView时用了java的反射机制,由WebViewChromiumFactoryProvider生成WebViewChromium。具体代码如下:public final class
2013-11-08 13:59:48
4608
1
原创 chromium content shell for android
chromium for android大部分核心代码开源,除了app层的设置,tab管理,gsm相关部分,不过我们可以利用这些核心代码来定制自己的浏览器。为了方便在eclipse下开发、调试chromium for android,基于chromium r197479(28.0.1494),将所需的lib库,jar包编译好,放在libs下,让后将base,chrome,content,com
2013-10-23 13:10:30
1545
原创 chromium android 的事件响应机制
最近研究了一下Chromium在android平台下的事件响应,总结一下。事件分为:MouseEvent, MouseWheelEvent,KeyboardEvent,GestureEvent,TouchEvent。从app层传到WebCore,经历三个阶段:(1) app层将用户输入事件封装为WebInputEvent,传递给WebKit。例如点击事件的调用过程:WebViewCor
2013-10-15 18:40:16
1508
原创 tiles in android webkit
最近整理了一下自己的工作内容,对以前的内容又加深了一些理解。在android的webkit中,分为DomTree,RenderTree,RenderTree又被划分为RenderLayerTree,GraphicsLayerTree(逻辑上的概念),考虑在刷新网页时的效率,比如一个RenderLayer可能比较大,又将RenderLayer划分为Tile,这篇文章主要介绍在android上we
2013-09-24 18:11:49
1574
原创 随机化快速排序算法
最近看了一些算法的视频,觉得算法真是博大精深的一门课,刚看到快速排序,下面是实现:#include #include using namespace std;int partion(int* a, int p, int q) { int pivot = a[p]; int i = p; for (int j = p + 1; j
2013-09-22 17:38:23
800
原创 mac os X 下编译 chromium
最近买了一个mac笔记本,本来想装win7,可是有人说mac装win7会使笔记本发热的很厉害,就试着用mac来调试chromium。之前没用过Xcode,搜了一下在Xcode中编译chromium的中文文档,非常少,就自己写一篇吧。1. prerequisites (1) 我的 OS 版本 10.8。(2)下载xcode4.x,我用的是4.6,讲Xcode.app拖进A
2013-09-20 17:17:24
4689
原创 out of memory logs in android app
In android system, the memory maybe insufferent, then there maybe following logs occur:[1] am_low_memory, this is the log printed from system, it report the memory is low.[2] ActivityManager will
2013-09-05 14:49:41
2056
原创 chromium_testshell 的初始化工作
1. init CommandLine从/data/local/chrome-command-line文件中读取命令行。2. ResourceExtractor解压资源文件: *.pak。这些资源文件由GTIR产生,包含本地化的字符串资源和图片。包含:"chrome.pak","en-US.pak","resources.pak","chrome_100_percent.pak
2013-08-17 15:19:06
1622
原创 profile-dependencies in chrome
generated a profile-dependencies.dot base on chromium r197479(28.0.1494):digraph { /* Dependencies */ ProfileSyncService -> AboutSigninInternals; AboutSigninInternals -> SigninManager; I
2013-08-10 21:11:44
867
Professional Android 2 Application Development
2010-08-01
Beginning Android 2
2010-08-01
一些Android的中文文档
2010-08-01
《Android应用开发揭秘》源码-3
2010-08-01
《Android应用开发揭秘》源码-2
2010-08-01
《Android应用开发揭秘》源码-1
2010-08-01
深入浅出Google Android源码
2010-08-01
Google Android揭秘
2010-08-01
Android OPhone开发完全讲义源码-5(end)
2010-08-01
Android OPhone开发完全讲义源码-4
2010-08-01
Android OPhone开发完全讲义源码-3
2010-08-01
Android OPhone开发完全讲义源码-2
2010-08-01
Android OPhone开发完全讲义源码-1
2010-08-01
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人