From 40a15e993ee7fd887ac2bbe2980e4bc227077726 Mon Sep 17 00:00:00 2001 From: "beng%bengoodger.com" Date: Thu, 10 Nov 2005 23:31:08 +0000 Subject: [PATCH] 315940 - unified 'places' view... checking in some stub files so we can start building out the components. NOT PART OF BUILD. --- browser/components/places/content/places.js | 59 ++++++++++++++++++ browser/components/places/content/places.xml | 36 +++++++++++ browser/components/places/content/places.xul | 62 +++++++++++++++++++ browser/components/places/jar.mn | 8 +++ browser/components/places/skin-win/README | 1 + browser/components/places/skin-win/places.css | 25 ++++++++ 6 files changed, 191 insertions(+) create mode 100755 browser/components/places/content/places.js create mode 100755 browser/components/places/content/places.xml create mode 100755 browser/components/places/content/places.xul create mode 100755 browser/components/places/jar.mn create mode 100755 browser/components/places/skin-win/README create mode 100755 browser/components/places/skin-win/places.css diff --git a/browser/components/places/content/places.js b/browser/components/places/content/places.js new file mode 100755 index 000000000000..3a91cdde725f --- /dev/null +++ b/browser/components/places/content/places.js @@ -0,0 +1,59 @@ +//* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is Mozilla History System + * + * The Initial Developer of the Original Code is Google Inc. + * Portions created by the Initial Developer are Copyright (C) 2005 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * Ben Goodger + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 2 or later (the "GPL"), or + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the MPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** */ + +const Cc = Components.classes; +const Ci = Components.interfaces; +const Cr = Components.results; + +var gPlaces = { + + init: function() { + var wm = + Cc["@mozilla.org/appshell/window-mediator;1"]. + getService(Ci.nsIWindowMediator); + var topWindow = wm.getMostRecentWindow("navigator:browser"); + var tabbrowser = topWindow.getBrowser(); + tabbrowser.setAttribute("places", "true"); + + var statusbar = topWindow.document.getElementById("status-bar"); + statusbar.hidden = true; + + + dump("*** browser = "+ tabbrowser + "\n"); + }, + +} diff --git a/browser/components/places/content/places.xml b/browser/components/places/content/places.xml new file mode 100755 index 000000000000..26a9b203b9d4 --- /dev/null +++ b/browser/components/places/content/places.xml @@ -0,0 +1,36 @@ +//* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is Mozilla History System + * + * The Initial Developer of the Original Code is Google Inc. + * Portions created by the Initial Developer are Copyright (C) 2005 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * Ben Goodger + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 2 or later (the "GPL"), or + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the MPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** */ diff --git a/browser/components/places/content/places.xul b/browser/components/places/content/places.xul new file mode 100755 index 000000000000..41e5e8f224cc --- /dev/null +++ b/browser/components/places/content/places.xul @@ -0,0 +1,62 @@ + + + + + + + +