firebreath

HTML on top of NPAPI plugin

六月ゝ 毕业季﹏ 提交于 2019-12-01 09:01:05
After I finished writing my browser plugin using FireBreath and OpenGL, and embedded the plugin using an object tag, I tried to overlay various HTML elements on top of the plugin. Unfortunately, the tag and plugin graphics always stayed on top of any other HTML element on the page, no matter what I tried. As far as I know, the flash plugin allows HTML overlays as follows: <param name="wmode" value="transparent"> Is there a general way to enable HTML overlays on or tags? If not, is there a way to enable overlays on NPAPI/ActiveX plugins, or does FireBreath somehow support this feature?

HTML on top of NPAPI plugin

青春壹個敷衍的年華 提交于 2019-12-01 07:14:03
问题 After I finished writing my browser plugin using FireBreath and OpenGL, and embedded the plugin using an object tag, I tried to overlay various HTML elements on top of the plugin. Unfortunately, the tag and plugin graphics always stayed on top of any other HTML element on the page, no matter what I tried. As far as I know, the flash plugin allows HTML overlays as follows: <param name="wmode" value="transparent"> Is there a general way to enable HTML overlays on or tags? If not, is there a way

Get screen coordinates of DOM element

ε祈祈猫儿з 提交于 2019-11-30 13:07:47
Can I somehow get precise screen coordinates (relative to top left corner of the screen) of a DOM object. Through NPAPI\FireBreath or JavaScript. (Need this for plugin, that I'm writing with FireBreath) you move cursor to somewhere of the page ,and make a click event.(find the window,then GetWindowRect ,caculate a sutable position) then you can catch the event,record clientX and clientY. By this ,you build a bridge between two different coordinate system. Max Yari P.S.: I know I made this question long ago, but I want to summarize what I got at the end. element.offsetLeft\Top doesn't work

Directx control in browser plugin

一笑奈何 提交于 2019-11-29 18:10:31
I have to insert a directx control to a firebreath plug in for a browser. Can anyone post a sample how to do it? I have no knowledge in plugins... 10x I don't have an example that I can give you, but I can tell you roughly what you need to do. First, read this: http://colonelpanic.net/2010/11/firebreath-tips-drawing-on-windows/ That will give you an overview of how drawing works in FireBreath. First, you set everything up when handling AttachedEvent. Create a new thread to handle drawing (your DirectX drawing must not be on the main thread) Get the HWND from the PluginWindowWin object (cast

How do I add Objective C code to a FireBreath Project?

删除回忆录丶 提交于 2019-11-29 14:46:53
I am writing a browser plugin for Mac OS that will place a status bar icon in the status bar, which users can use to interface with the browser plugin. I've successfully built a FireBreath 1.6 project in XCode 4.4.1, and can install it in the browser. However, FireBreath uses C++, whereas a large majority of the existing libraries for Mac OS are written in Objective C. In the /Mac/projectDef.make file, I added the Cocoa Framework and Foundation Framework, as suggested here and in other resources I've found on the Internet: target_link_libraries(${PROJECT_NAME} ${PLUGIN_INTERNAL_DEPS} ${Cocoa

Get screen coordinates of DOM element

橙三吉。 提交于 2019-11-29 13:11:11
问题 Can I somehow get precise screen coordinates (relative to top left corner of the screen) of a DOM object. Through NPAPI\FireBreath or JavaScript. (Need this for plugin, that I'm writing with FireBreath) 回答1: you move cursor to somewhere of the page ,and make a click event.(find the window,then GetWindowRect ,caculate a sutable position) then you can catch the event,record clientX and clientY. By this ,you build a bridge between two different coordinate system. 回答2: P.S.: I know I made this

Using a plugin generated with Firebreath in a Firefox Extension?

你。 提交于 2019-11-29 12:25:10
Is it possible to use a .dll made with Firebreath in a Firefox extension? Currently, I am trying to port an extension I made for Google Chrome that uses javascript to get the HTML of the document, and then calls a function from the .dll and passes the HTML of the document as a parameter. The .dll then saves the file and launches a program. Is there a simple way to port this functionality over to Firefox? Or will I have to rewrite the code using XPCOM? Wladimir Palant XPCOM is too complicated for simple things which is why Firefox 4 and above has js-ctypes (see https://developer.mozilla.org/en

FireBreath plugin automatic installation

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-29 12:15:01
I wrote a plugin using FireBreath, VS2010, for Windows, all browsers. In FireBreath documentation I saw that I have to install WiX. I installed it. I created the project using the automatic fbgen tool so it autmatically created a WiX for me. I couldn't understand from the doc is waht to do now: Do I have to edit the generated WiX source file? If yes, what to change there? What to write in the object tag that will trigger the installation of the msi created? Or at least say to the user that installation is needed and link him to a download? 10x! pmont With the WiX Toolkit installed, re-run the

NPAPI for Python - Chrome Extension

≡放荡痞女 提交于 2019-11-29 07:57:06
I am trying to develop a chrome extension in which i have coded all my logic in 'python' . Now on browser action i want to pass parameters and execute that .py file and return results to popup which will open on browser action. To call a .py file from JavaScript i know i will need to code a NPAPI plugin. But am confused between which approach i should take. I have come across few options and am trying to choose the easiest way to do it .. Pyjamas Python Javascript Compiler : is a Python-to-Javascript compiler which works as a language translator but on FAQ's of there site last question suggest

Directx control in browser plugin

青春壹個敷衍的年華 提交于 2019-11-28 12:39:05
问题 I have to insert a directx control to a firebreath plug in for a browser. Can anyone post a sample how to do it? I have no knowledge in plugins... 10x 回答1: I don't have an example that I can give you, but I can tell you roughly what you need to do. First, read this: http://colonelpanic.net/2010/11/firebreath-tips-drawing-on-windows/ That will give you an overview of how drawing works in FireBreath. First, you set everything up when handling AttachedEvent. Create a new thread to handle drawing