From 95a6500a6b929e34a14c45be5be9e0a86600354b Mon Sep 17 00:00:00 2001 From: "myk%mozilla.org" Date: Mon, 10 Apr 2006 20:56:37 +0000 Subject: [PATCH] makes the bookmarks toolbar display bookmark titles generated by the microsummary service or extensions and stored in the bookmarks/generatedTitle annotation bug=333052 r=annie.sullivan@gmail.com sr=ben@mozilla.org git-svn-id: svn://10.0.0.236/trunk@194042 18797224-902f-48f8-a5cc-f745e15eee43 --- .../components/places/content/toolbar.xml | 163 +++++++++++++++++- 1 file changed, 157 insertions(+), 6 deletions(-) diff --git a/mozilla/browser/components/places/content/toolbar.xml b/mozilla/browser/components/places/content/toolbar.xml index 24a0cfeff8c..28147cb4ae9 100755 --- a/mozilla/browser/components/places/content/toolbar.xml +++ b/mozilla/browser/components/places/content/toolbar.xml @@ -61,6 +61,9 @@ @@ -71,13 +74,20 @@ this._bms = Cc["@mozilla.org/browser/nav-bookmarks-service;1"]. getService(Ci.nsINavBookmarksService); + this._anno = + Cc["@mozilla.org/browser/annotation-service;1"]. + getService(Ci.nsIAnnotationService); this._bms.addObserver(this._observer, false); var t = this; window.addEventListener("resize", function f(e) { t.updateChevron(e); }, false); - + + this._anno.addObserver(this.genericAnnoObserver); + this.genericAnnoObserver.addObserver("bookmarks/generatedTitle", + this._generatedTitleAnnoObserver); + if (this.hasAttribute("place")) { // Do the initial build. this.place = this.place; @@ -94,6 +104,37 @@ null + + null + + + null + + + + + + + + + +