Prism

Prism 是以 XULRunner 為基礎的極簡化瀏覽器,可以讓網際應用程式不必透過一般瀏覽器介面就能直接執行。Prism 的主要概念是「特定網站專用瀏覽器」,就好比為某個網際應用程式量身訂做的瀏覽器一樣,無需選單、工具列及其他傳統瀏覽器的元件。這類專屬瀏覽器能為其網際應用程式提供與作業系統更緊密的整合,所以能同時擁有一般單機程式與網際應用程式雙方面的好處。

好處

  • 分隔運作程序 Web apps can hog memory or processor cycles or even bring down the whole browser in extreme cases. By running each app in its own process, we minimize the impact of any mishaps. We can also benefit from operating system tools that less us view the memory/CPU consumption of a specific application.
  • 使用介面極簡化: A general-purpose browser UI is not necessary or appropriate for most web apps. It is more efficient to provide a UI that is specific to the application. This also cuts down on UI clutter (hence the term distraction-free browser).
  • 與作業系統整合: Support of desktop features can make using the app more natural and convenient for end users. This includes the ability to create desktop shortcuts, to place the application icon in the tray or dock and to display pop-up notifications.
  • 專屬自訂方式: Apps can be run using a shared browser runtime and customized using client-side script (similar to Greasemonkey). Custom stylesheets can be used to tweak the UI.

架構概觀

Prism 是個 XULRunner 軟體,其中除了 XULRunner 內建的瀏覽器引擎外還包括:

  • 網際軟體包管理: Code for creating new web app bundles and loading existing bundles.
  • 捷徑建立介面: A dialog box lets the user specify attributes of the web app (name, URI, icon, shortcut locations).
  • JavaScript API: An API that can be used by scripts inside the bundle to customize the application. We are refining this approach to make the API applicable in as many environments as possible (e.g. it might be useful even for applications running in a normal browser). It should be possible for developers to include Prism-style extension direclty in their web app. We would like to harmonize our API with those of similar projects such as Adobe AIR and Google Gears.
  • 作業系統整合功能: Binary components provided access to OS-specific features like shortcut creation and dock/tray icons. We intend to propose these extensions for inclusion in future versions of XULRunner.
  • Firefox 擴充套件:: A Firefox extension, code-named "Refractor", can be used to spin out new Prism apps from inside the web browser. Refractor adds a new menu item to call up the shortcut creation dialog for inside Firefox. Web apps can also point to a complete web app bundle or some elements of a web app (like higher resolution icons). Refractor automatically takes this information into account.

文件

常見問題集
 
軟體包
將網際應用程式的設定、圖示及其他專屬自訂檔「包」在 ZIP 壓縮檔內方便使用。
設定
A webapp bundle should contain a webapp.ini configuration file. The configuration file is a simple, INI-style text file that specifies some parameters about a web application.
樣式
One of Prism's goals is to make web applications feel more like desktop applications. One way to make the illusion seem more real is to use styling (or theming). Prism supports a simple styling system that allows the user to add CSS files to the webapp bundle.
主視窗
Prism provides a simple, scaled down browser window for running web applications. Using configuration files and webapp scripting, the host window can be modified.
安裝程式
安裝 Prism。

全部列出…

社群

其他東西

一起搞吧!

相關主題

XULRunner

 

 

 

文件標籤與貢獻者

標籤: 
 此頁面的貢獻者: teoli, Mgjbot, BobChao
 最近更新: teoli,