Commit Graph

43 Commits

Author SHA1 Message Date
Jim Blandy
4d6a633bba Bug 914753: Make Emacs file variable header lines correct, or at least consistent. DONTBUILD r=ehsan
The -*- file variable lines -*- establish per-file settings that Emacs will
pick up. This patch makes the following changes to those lines (and touches
nothing else):

 - Never set the buffer's mode.

   Years ago, Emacs did not have a good JavaScript mode, so it made sense
   to use Java or C++ mode in .js files. However, Emacs has had js-mode for
   years now; it's perfectly serviceable, and is available and enabled by
   default in all major Emacs packagings.

   Selecting a mode in the -*- file variable line -*- is almost always the
   wrong thing to do anyway. It overrides Emacs's default choice, which is
   (now) reasonable; and even worse, it overrides settings the user might
   have made in their '.emacs' file for that file extension. It's only
   useful when there's something specific about that particular file that
   makes a particular mode appropriate.

 - Correctly propagate settings that establish the correct indentation
   level for this file: c-basic-offset and js2-basic-offset should be
   js-indent-level. Whatever value they're given should be preserved;
   different parts of our tree use different indentation styles.

 - We don't use tabs in Mozilla JS code. Always set indent-tabs-mode: nil.
   Remove tab-width: settings, at least in files that don't contain tab
   characters.

 - Remove js2-mode settings that belong in the user's .emacs file, like
   js2-skip-preprocessor-directives.
2014-06-24 22:12:07 -07:00
Josh Dover
82f9072526 Bug 997328 - Update SharedPreferences.jsm to use scopes and mirror GeckoSharedPrefs. r=nalexander 2014-05-10 08:39:53 -07:00
Margaret Leibovic
aee1d41501 Bug 1002567 - Support weighted snippets. r=bnicholson 2014-04-30 14:38:02 -07:00
Margaret Leibovic
932043db16 Bug 996669 - Assert panel exists in oninstall/onuninstall listeners. r=jdover 2014-04-25 16:57:56 -07:00
Josh Dover
9f8bb41f99 Bug 970707 - Pass refresh to JS callback. r=lucas 2014-04-15 15:51:00 +02:00
Josh Dover
81ebbbeb97 Bug 970707 - Add refreshEnabled to ViewConfig. r=margaret 2014-04-15 15:48:00 +02:00
Margaret Leibovic
067e737e19 Bug 993666 - Keep track of whether or not to send banner message to Java when a banner is added. r=bnicholson 2014-04-15 10:03:03 -07:00
Margaret Leibovic
5b6f0cc5fa Bug 991190 - Rename Home.panels.authHandler API to Home.panels.auth. r=liuche 2014-04-04 15:55:06 -07:00
Margaret Leibovic
1c7a7bbc3d Bug 978991 - Add hooks to let an add-on know when a panel is installed/uninstalled. r=liuche 2014-04-04 15:55:03 -07:00
Margaret Leibovic
13c487d13b Bug 942281 - Create a PanelAuthCache to keep track of whether or not panel is authenciated (r=lucasr) 2014-03-27 09:25:04 -07:00
Margaret Leibovic
55e4fb900f Bug 942281 - Add a view for authentication UI to DynamicPanel (r=lucasr) 2014-03-27 09:25:04 -07:00
Margaret Leibovic
d73f686e9e Bug 942281 - Create AuthConfig and add authHandler option to Home.panels.register API (r=lucasr) 2014-03-27 09:25:03 -07:00
Margaret Leibovic
37bd9547f7 Bug 942281 - Move panel validation into Panel constructor (r=lucasr) 2014-03-03 14:23:06 -08:00
Margaret Leibovic
875eb9015a Bug 975239 - (Part 1) Choose a banner message at random instead of rotating through a queue. r=bnicholson 2014-03-07 11:23:26 -08:00
Josh Dover
092e204a01 Bug 974723 - Send shown event when banner message is displayed. r=margaret 2014-02-20 12:38:27 -08:00
Lucas Rocha
3a6d5d8092 Bug 967286 - Default to Layout.FRAME if layout type isn't specified (r=margaret) 2014-02-25 17:40:50 +00:00
Lucas Rocha
f21dd40b40 Bug 974139 - Redefine registration logic to return panel options dynamically (r=margaret) 2014-02-25 17:29:49 +00:00
Lucas Rocha
17c32c4c4b Bug 976122 - Fix HomePanels:Get handling in Home.jsm (r=margaret) 2014-02-25 11:28:58 +00:00
Lucas Rocha
f89892cf8c Bug 974926 - Rename _panels to _registeredPanels in Home.jsm (r=margaret) 2014-02-24 10:17:05 +00:00
Margaret Leibovic
8dbb364c79 Bug 975217 - Don't try to remove a banner message that doesn't exist. r=mcomella 2014-02-22 09:41:31 -08:00
Lucas Rocha
680bda0873 Bug 972306 - Restructure the Home.panels API for clarity (r=margaret) 2014-02-21 10:33:59 +00:00
Lucas Rocha
a306724a9e Bug 972306 - Change HomePanels:Uninstall to take an id (r=margaret) 2014-02-21 10:33:59 +00:00
Lucas Rocha
af4e0d32af Bug 972306 - Rename HomePanels:Remove to HomePanels:Uninstall (r=margaret) 2014-02-21 10:33:58 +00:00
Lucas Rocha
ec54e04730 Bug 966022 - Introduce ItemType into HomeConfig/Home.jsm (r=margaret) 2014-02-19 17:36:59 +00:00
Margaret Leibovic
ffcbc96f17 Bug 963561 - Notify Home.banner consumers when a message is dismissed. r=wesj 2014-02-14 16:51:43 -08:00
Peiyong Lin
09db18aac6 Bug 968378 - Hide private members in Home.jsm using closures. r=mcomella 2014-02-14 11:52:14 -05:00
Wes Johnston
8de37ce524 Bug 946344 - Remove GeckoEventResponder. r=mfinkle,blassey,kats
--HG--
rename : mobile/android/base/util/EventDispatcher.java => mobile/android/base/EventDispatcher.java
2014-02-11 09:16:00 -08:00
Lucas Rocha
76119bb860 Bug 968573 - Introduce ItemHandler into HomeConfig/Home.jsm (r=margaret) 2014-02-13 18:42:33 +00:00
Lucas Rocha
ec8f86e09c Bug 968188 - Introduce 'action' option in Home.panels.add() API (r=margaret) 2014-02-13 11:19:57 +00:00
Peiyong Lin
d636ef5eaa Bug 965023 - Use Object.freeze on exports of Home.jsm. r=mcomella 2014-02-08 21:02:27 -05:00
Lucas Rocha
36bd00248d Bug 949174/964375/952311 - Send panel JSON instead of just id in HomePanels:Remove (r=margaret) 2014-02-05 14:14:52 +00:00
Lucas Rocha
55cb0ce6d0 Bug 949174/964375/952311 - Add requestPanelsById() to PanelManager (r=margaret) 2014-02-05 14:14:52 +00:00
Lucas Rocha
e84f5313a8 Bug 949174/964375/952311 - Send HomePanels:Install when autoInstall option is set (r=margaret) 2014-02-05 14:14:51 +00:00
Lucas Rocha
f05db88449 Bug 949174/964375/952311 - Factor out method to transform Panel into JSON (r=margaret) 2014-02-05 14:14:51 +00:00
Sola Ogunsakin
323bb0ed1d Bug 965070 - Add GRID constant to Home.jsm. r=lucasr 2014-01-30 09:51:32 -08:00
Michael Comella
dd7cd2c8ed Bug 964454 - Correct ReferenceError 'panel' in Home.jsm. r=margaret 2014-01-28 10:36:11 -08:00
Margaret Leibovic
9867d5f742 Bug 959862 - Expand Home.panels API to specify contents of panels. r=lucasr 2014-01-17 09:27:07 -08:00
Margaret Leibovic
80b44e380a Bug 958192 - Use gecko messages to request current set of available panels from JS. r=lucasr 2014-01-14 15:08:10 -08:00
Margaret Leibovic
bc06e9130b Bug 958179 - Rename Home.lists API to Home.panels. r=liuche 2014-01-10 12:57:23 -08:00
Margaret Leibovic
f00554bdfa Bug 862805 - API to allow add-ons to register custom lists on about:home. r=wesj 2013-12-19 14:51:10 -08:00
Margaret Leibovic
297211d8e0 Bug 932830 - Add an "onshown" option to Home.banner options. r=wesj 2013-11-04 14:39:00 -08:00
Margaret Leibovic
d368834d5d Bug 921265 - Send "HomeBanner:Data" message when first message is added. r=wesj 2013-09-26 16:53:09 -07:00
Margaret Leibovic
872e35892f Bug 905262 - Create a JS add-on API for adding content to the promotional banner. r=wesj 2013-08-19 17:22:47 -07:00