Changes

Jump to: navigation, search

Add an Infobar style warning for window resize/move

1,037 bytes added, 23:03, 1 October 2008
Project Details
== Project Details ==
'''10/01/2008''' -
Okay, I believe here are the steps i need to do before I start coding an observer.
One: I need to code a function to send an event call from C++ from [http://mxr.mozilla.org/mozilla-central/source/dom/src/base/nsGlobalWindow.cpp#3136 | nsGlobalWindow] much like the link shows. <br />
This event will probably be named something like "DOMWindowResized". <br />
In other words the following function is required:<br /><br />
FireBlockedWindowResize();
 
Similar to the pop-up blocked, it will fire an event which will be caught by the window object.
In order to hook that event up though, I will need this line: <br />
 
''gBrowser.addEventListener("DOMWindowResized", gResizedWindowObserver.onWindowResized, false);''
 
Then code gResizedWindowObserver to contain onWindowResized() which will initiate a notification window, along with all its required texts and menu options.
 
Now I need to know how to get the menu items to run a function to open preferences.
But for release 0.1, I think the above should suffice.
 
'''09/28/2008''' -
*Correction to below... browser.xul is the user interface. It runs functions found in the browser.js file, which then grabs strings from the bundle_browser object in order to display the lines of text.
1
edit

Navigation menu