PPAPI
好壮状
努力不一定成功,不努力等于放弃成功!
展开
-
Chrome浏览器扩展开发系列之二:Google Chrome浏览器扩展的调试
1) 查看扩展程序的详细信息和ID通过Chrome 浏览器的“ 工具->更多工具->扩展程序”,打开chrome://extensions页面,选中右上角的“开发者模式”,可以查看扩展程序的详细信息(如名称、概述、占用空间大小、版本和权限等)和ID。2) 查看扩展程序的popup页面通过Chrome 浏览器的“工具 ->更多工具->扩展程序”,打开chr转载 2016-11-24 09:06:10 · 3135 阅读 · 0 评论 -
Native Client - Development Cycle Running
IntroductionThis document describes how to run Native Client applications during development.The workflow for PNaCl applications is straightfoward and will only be discussed briefly. For NaCl转载 2016-11-25 09:49:51 · 457 阅读 · 0 评论 -
Native Client - Development Cycle - Debugging with Visual Studio
Whether you’re porting an existing project or starting from scratch, the Native Client Visual Studio add-in makes it easier to set up, build, run and debug your Native Client app by integrating the Na转载 2016-11-25 09:51:20 · 1293 阅读 · 0 评论 -
Native Client - Development Cycle - Dynamic Linking and Loading with glibc
Portable Native Client currently only supports static linking, and the only C library available for it is newlib. This page is only valid for Native Client, though PNaCl will eventually support some f转载 2016-11-25 09:52:34 · 558 阅读 · 0 评论 -
Native Client - Application - Application Structure
This section of the Developer’s Guide describes the general structure of a Native Client application. The section assumes you are familiar with the material presented in the Technical Overview.The转载 2016-11-25 09:54:31 · 328 阅读 · 0 评论 -
Native Client - Application - Native Client Modules
This document describes the classes and functions that you need to implement in a Native Client module in order for Chrome to load, initialize, and run it. The requirements are the same regardless of转载 2016-11-25 10:01:37 · 306 阅读 · 0 评论 -
Native Client - Application - File I/O
IntroductionThis section describes how to use the FileIO API to read and write files using a local secure data store.You might use the File IO API with the URL Loading APIs to create an overal转载 2016-11-25 10:03:51 · 747 阅读 · 0 评论 -
Native Client - Application - The nacl_io Library
Introductionnacl_io is a utility library that provides implementations of standard C APIs such as POSIX I/O (stdio.h) and BSD sockets (sys/socket.h). Its primary function is to allow code that u转载 2016-11-25 10:04:51 · 288 阅读 · 0 评论 -
Native Client - Application - Messaging System
Messaging SystemThis section describes the messaging system used to communicate between the JavaScript code and the Native Client module’s C or C++ code in a Native Client application. It introduc转载 2016-11-25 10:06:04 · 444 阅读 · 0 评论 -
Native Client - Application - Progress Events
Progress EventsThere are five types of events that developers can respond to in Native Client: progress, message, view change, focus, and input events (each described in the glossary below). This转载 2016-11-25 10:06:51 · 473 阅读 · 0 评论 -
Native Client - Application - URL Loading
URL LoadingIntroductionThis section describes how to use the URLLoader API to load resources such as images and sound files from a server into your application.The example discussed in t转载 2016-11-25 10:07:38 · 403 阅读 · 0 评论 -
Native Client - Application - View Change, Focus, and Input Events
View Change, Focus, and Input EventsThis section describes view change, focus, and input event handling for a Native Client module. The section assumes you are familiar with the material presented转载 2016-11-25 10:08:21 · 534 阅读 · 0 评论 -
Native Client - Distributing Your Application
This document describes how to distribute Portable Native Client applications on the web, and Native Client applications through the Chrome Web Store(CWS).Portable Native ClientPortable Native转载 2016-11-25 10:09:07 · 577 阅读 · 0 评论 -
Native Client - Development Cycle Building
IntroductionThis document describes how to build Native Client modules. It is intended for developers who have experience writing, compiling, and linking C and C++ code. If you haven’t read the Na转载 2016-11-25 09:48:44 · 929 阅读 · 0 评论 -
Chrome浏览器扩展开发系列之十九:扩展开发示例
翻译总结了这么多的官网内容,下面以一款博主开发的“沪深股票价格变化实时追踪提醒”软件为例,介绍Chrome浏览器扩展程序的开发,开发环境为Eclipse IDE+Chrome Browser。“沪深股票价格变化实时追踪提醒”软件能够实时获取用户指定的股票的价格等参数,并根据用户设置的价格区间进行越界提醒。该软件目前只实现了两部分,一个是options页面,用以配置用户要监听的股票及股票的价转载 2016-11-24 09:40:52 · 1446 阅读 · 0 评论 -
Chrome浏览器扩展开发系列之七:override页面
Chrome浏览器通常提供了一些默认页面,如标签管理器页面chrome://bookmarks、浏览历史记录页面chrome://history或新建Tab页面chrome://newtab等。Chrome浏览器扩展中的override页面,顾名思义就是重写的页面,可以替换上述默认页面。不过,一个Chrome浏览器扩展只能替换一种默认页面。Chrome浏览器扩展可替换的默认页面如下:转载 2016-11-24 09:12:20 · 1663 阅读 · 0 评论 -
Chrome浏览器扩展开发系列之八:Chrome扩展的数据存储
Google Chrome浏览器扩展可以使用如下任何一种存储机制:HTML5的localStorage API实现的本地存储(此处略)Google的chrome.storage.* API实现的浏览器存储Google的chrome.cookies.* API实现的cookie存储 1) chrome.storage API实现的浏览器存储Chrome浏览器扩展通过c转载 2016-11-24 09:12:57 · 4925 阅读 · 0 评论 -
Chrome浏览器扩展开发系列之九:Chrome浏览器的chrome.alarms.* API
Chrome浏览器扩展程序通过chrome.alarms.* API,可以制定计划周期性地执行代码,或在指定时间执行代码。要使用chrome.alarms.* API,首先需要在manifest.json文件中声明alarms授权如下:{"permissions": ["alarms"],}chrome.alarms.Alarm对象的属性如下转载 2016-11-24 09:13:47 · 942 阅读 · 0 评论 -
Chrome浏览器扩展开发系列之十:桌面通知Notification
Desktop Notification也称为Web Notification,是在Web页面之外,以弹出桌面对话框的形式通知用户发生了某事件。Web Notification于2015.9.10成为W3C推荐标准,网址https://www.w3.org/TR/notifications/。每个通知对话框都包括title, direction, language和origin。通知对话框还可以有转载 2016-11-24 09:14:54 · 6576 阅读 · 2 评论 -
Chrome浏览器扩展开发系列之十一:NPAPI插件的使用
在Chrome浏览器扩展中使用HTML和JavaScript非常容易,但是如何重用已有的非JavaScript遗留系统代码呢?答案是将NPAPI插件绑定到Chrome浏览器扩展,从而实现在Chrome浏览器扩展中通过JavaScript调用遗留系统代码。注意,出于安全性的考虑,NPAPI已经于2015年开始被Chrome浏览器全面禁用。请使用PPAPI(Pepper Plugin API)转载 2016-11-24 09:16:08 · 2041 阅读 · 0 评论 -
Chrome浏览器扩展开发系列之十二:Content Scripts
Content Scripts是运行在Web页面的上下文的JavaScript文件。通过标准的DOM,Content Scripts可以操作(读取并修改)浏览器当前访问的Web页面的内容。Content Scripts通常用于如下场景:找到Web页面中的无效链接并修复增大字体以突出显示查找并处理DOM中的microformatContent Scripts的使用限制转载 2016-11-24 09:33:14 · 3578 阅读 · 0 评论 -
Chrome浏览器扩展开发系列之十三:消息传递Message
由于content scripts运行在Web页面的上下文中,属于Web页面的组成部分,而不是Google Chrome扩展程序。但是content scripts又往往需要与Google Chrome扩展程序的其他部分通信以共享数据。这可以通过消息传递实现,通过彼此互相的消息的监听与反馈进行通信。一个消息可以包含任何有效的JSON对象,如null,boolean,number,strin转载 2016-11-24 09:34:45 · 6415 阅读 · 0 评论 -
Chrome浏览器扩展开发系列之十四:本地消息机制Native messaging
通过将浏览器所在客户端的本地应用注册为Chrome浏览器扩展的“本地消息主机(native messaging host)”,Chrome浏览器扩展还可以与客户端本地应用之间收发消息。客户端的本地应用注册为Chrome浏览器扩展的“本地消息主机”之后,Chrome浏览器会在独立的进程中启动该本地应用,并通过标准输入/输出流(stdin/stdout)进行消息通信。1) 本转载 2016-11-24 09:36:46 · 6280 阅读 · 0 评论 -
Chrome浏览器扩展开发系列之十五:跨域访问的XMLHttpRequest对象
XMLHttpRequest对象是W3C的标准API,用于访问服务器资源。XMLHttpRequest对象支持多种文本格式,如XML和JSON等。XMLHttpRequest对象可以通过HTTP和HTTPS发送请求。通常出于安全的考虑,Web页面的XMLHttpRequest对象不能访问其他域的服务器。但是Chrome浏览器扩展没有这个限制,只要设置了跨域访问的权限,Chrome浏览器扩展转载 2016-11-24 09:37:21 · 2980 阅读 · 0 评论 -
Chrome浏览器扩展开发系列之十六:扩展中可用的Chrome浏览器API
除了Chrome浏览器支持的chrome.* API之外,Chrome浏览器扩展还可以使用Chrome浏览器为Web页面或Chrome app提供的APIs。对于Chrome浏览器2支持的API,还可以绑定第三方API库到Chrome浏览器扩展程序。Chrome浏览器扩展程序可以使用的API包括:标准JavaScript API,即Web应用中常用的JavaScript核心API和转载 2016-11-24 09:38:07 · 10257 阅读 · 0 评论 -
Chrome浏览器扩展开发系列之十七:扩展中可用的chrome.events API
chrome.events中定义了一些常见的事件类型,可以供Chrome浏览器扩展程序发出对应的事件对象。对于关注的事件,首先要通过addListener()在对应的事件上注册监听器,示例如下:1 chrome.alarms.onAlarm.addListener(function(alarm) {2 appendToLog('alarms.onAlarm --'转载 2016-11-24 09:38:59 · 2082 阅读 · 0 评论 -
Chrome浏览器扩展开发系列之十八:扩展的软件国际化chrome.i18n API
i18n是internationalization 的简写,这里将讨论软件国际化的问题。熟悉软件国际化的朋友应该知道,软件国际化要求,页面中所有用户可见的字符串都必须置于资源属性文件中。资源属性文件中的资源是形如“key=value”的键值对,一行一个。其中key为资源的标识符,用于HTML页面中,根据当前页面的Locale确定要使用的资源。value是资源的值,不同的Locale对应的资源值不同转载 2016-11-24 09:39:39 · 1722 阅读 · 0 评论 -
Chromium插件(Plugin)制简要介绍和学习计划
Chromium插件(Plugin)机制简要介绍和学习计划07net01.com 发布于 2016-10-28 19:57:54分类:IT技术阅读(184)评论 在Chromium中,除了可以使用Extension增强浏览器功能,还可以使用Plugin。两者最大区别是前者用JS开发,后者用C/C++开发。这意味着Plugin以Native Code运行,在性能上转载 2016-11-25 16:47:37 · 2533 阅读 · 0 评论