firebreath

Create a Chrome plugin to get Computer Information

老子叫甜甜 提交于 2019-12-08 11:54:07
问题 I am writing a very specific web-app that will be deployed on many desktops within a retail environment and I am trying to figure out a way to implement a terminal-like license structure. Clients will purchase X terminal licenses and since the applications runs through Chrome I am looking for a way to generate a hash of the information local to the machine. I have had a look at a few options already: 1.) Evercookie. I'm not mad about it, it adds quite a delay when generating and loading and

Converting a cocoa application to a NPAPI plugin with the Firebreath framework

五迷三道 提交于 2019-12-08 10:23:01
问题 I found recently that webkit model will be unsupported by Apple in Lion and Safari last release and that everybody is migrating to Firebreath project in order to use NPAPI. I have a basic Cocoa Application which links with the following native frameworks: CoreGraphics CoreData IOKit PFEventTaps ( this is a 3 party framework by: Pfiddlesoft.com) I've never used PlugIns so this is a little new for me, I started with the MAC tutorial written by Richard bateman and after following the guidelines

How to fire c# COM events in c++?

家住魔仙堡 提交于 2019-12-08 05:13:53
问题 I have an Interface in c# in which i have declared event for example: [ComVisible(true)] [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] [Guid("3839C631-AEDE-4535-9A28-15F4BFCA0C5A")] public Interface Isample { event OnAdd(Isample sample); } [ClassInterface(ClassInterfaceType.None)] [Guid("E81B32A2-B98C-48C0-A235-17771EE001D6")] [ComVisible(true)] public class Sample:Isample { //''''''''''''''''''''' } I want to fire this event in c# and listen it into javascript through firebreath.

How to change boost path

对着背影说爱祢 提交于 2019-12-08 03:56:42
问题 I would like to recreate my build/ folder with prep2010.cmd and also set the boost folder to my own boost installation. I run: prep2010.cmd -D WITH_SYSTEM_BOOST=1 -D BOOST_ROOT="c:\boost" But when I open the plugin solution the boost include folder is still set to firebreath's one. Am I missing something? Thanks, Christian 回答1: try: prep2010.cmd "-DWITH_SYSTEM_BOOST=1" "-DBOOST_ROOT=C:\boost" The windows prep scripts are a little funny; we haven't been able to figure out why they act that way

CMake says c compiler is broken

旧街凉风 提交于 2019-12-06 14:06:56
I've just attempted to use Firebreath and have followed their video tutorial for Windows and come across the error that says: Check for working C compiler using Visual Studio 10 -- broken And then says: It fails with following output: Change Dir: And then lists the drive. This happens when running prep2010.cmd. I have found a post about it, but the forums won't let me log in and there is no answer. It's here: http://forum.firebreath.org/topic/274/?page=1#post-1117 and is exactly the same error, I believe. The last post talks about running prep2010 from inside the vs2010 command shell. What

A firebreath JSAPI will not be recognized in firefox

主宰稳场 提交于 2019-12-05 00:47:41
问题 First goes some background about what I am doing with Firebreath. I am developing a rendering viewer plugin in browser by using firebreath. I define two MIME type in my plugin, one is for the main viewer, and the other is for 2D plan view. In each page, only one main viewer is allowed, but can have multiple 2D plan view. And they all share the same model document opened in main viewer. So, after instantiating 2D plan view, I need to pass the document object (a firebreath JSAPI) to the 2d plan

A firebreath JSAPI will not be recognized in firefox

巧了我就是萌 提交于 2019-12-03 16:02:16
First goes some background about what I am doing with Firebreath. I am developing a rendering viewer plugin in browser by using firebreath. I define two MIME type in my plugin, one is for the main viewer, and the other is for 2D plan view. In each page, only one main viewer is allowed, but can have multiple 2D plan view. And they all share the same model document opened in main viewer. So, after instantiating 2D plan view, I need to pass the document object (a firebreath JSAPI) to the 2d plan view. Then, assume the main viewer and plan view are both loaded named as 'mainviewer' and 'planview',

How to open a file which includes in Chrome extension by C/C++?

风流意气都作罢 提交于 2019-12-01 14:02:26
I'm trying to open a file to parse, say "config.txt", in my Chrome extension. By Javascript it will be fairly easy. For example: chrome.extension.getURL('config.txt') will get something like chrome-extension://kfcphocilcidmjolfgicbchdfjjlfkmh/config.txt . However, in the C++(or C) code of the extension, open a file by this kind of URL is not available. Is there any way to open a file in extension in this case? There are two ways you could address this; the first is to simply use javascript to get the path and then pass it into the plugin in a method call. The second is to get the path to the

Embedding NPAPI plugin in background using just Firefox Addon SDK

99封情书 提交于 2019-12-01 12:12:40
I have recently developed a NPAPI plugin (using FireBreath) in combination with a Google Chrome Extension. I am embedding the plugin using the background.html page and access it from multiple extension pages. Thus, the plugin remains loaded in the background page (until the extension is unloaded or the browser is closed). I am now searching for the easiest way to port this extension to Firefox. Using the Addon SDK and it's API, i can reproduce the communication between the addon code and HTML user interface. As there is no such global background DOM as in the Chrome Extension, how would I load

How to automatically upgrade a Firebreath plugin

ⅰ亾dé卋堺 提交于 2019-12-01 11:20:21
问题 Recently, I wrote a cross-browser plugin using Firebreath, and I made one installer for all browsers. I searched in stackoverflow for automatic plugin installation, and find a bunch of good answers, FireBreath plugin automatic installation Deploying a Firebreath plugin on a webpage without manual installation Plugin Installation Deployment of NPAPI plugin with minimal user steps All answers points out that it needs users’ interaction to download and install the plugin. My question is that