From e73ca10db7e5ca666483bb4374b70935cd7e8225 Mon Sep 17 00:00:00 2001 From: "cbiesinger%web.de" Date: Mon, 29 Mar 2004 19:45:32 +0000 Subject: [PATCH] removing unused files, not part of build. bug 238841 r=bsmedberg git-svn-id: svn://10.0.0.236/trunk@154369 18797224-902f-48f8-a5cc-f745e15eee43 --- .../browser/resources/content/contentframe.js | 70 ---- .../resources/content/navigator-commands.rdf | 75 ----- .../browser/resources/content/toolbarTest.rdf | 129 -------- .../browser/resources/content/toolbarTest.xul | 298 ------------------ 4 files changed, 572 deletions(-) delete mode 100644 mozilla/xpfe/browser/resources/content/contentframe.js delete mode 100644 mozilla/xpfe/browser/resources/content/navigator-commands.rdf delete mode 100644 mozilla/xpfe/browser/resources/content/toolbarTest.rdf delete mode 100644 mozilla/xpfe/browser/resources/content/toolbarTest.xul diff --git a/mozilla/xpfe/browser/resources/content/contentframe.js b/mozilla/xpfe/browser/resources/content/contentframe.js deleted file mode 100644 index 687cf887dda..00000000000 --- a/mozilla/xpfe/browser/resources/content/contentframe.js +++ /dev/null @@ -1,70 +0,0 @@ -// -*- Mode: Java -*- - -var sidebar_name = ''; // Name for preferences (e.g. 'sidebar..foo') -var sidebar_uri = ''; // Content to load in sidebar frame -var sidebar_width = 0; // Desired width of sidebar -var sidebar_pref = ''; // Base for preferences (e.g. 'sidebar.browser') -var is_sidebar_open = false; -var prefs = null; // Handle to preference interface - -function init_sidebar(name, uri, width) { - sidebar_name = name; - sidebar_uri = uri; - sidebar_width = width; - sidebar_pref = 'sidebar.' + name; - - // Open/close sidebar based on saved pref. - // This may be replaced by another system by hyatt. - prefs = Components.classes["@mozilla.org/preferences-service;1"] - .getService(Components.interfaces.nsIPrefBranch); - if (prefs) { - // The sidebar is closed by default, so open it only if the - // preference is set to true. - try { - if (prefs.getBoolPref(sidebar_pref + '.open')) { - toggle_open_close(); - } - } - catch (ex) { - dump("failed to get sidebar_pref\n"); - } - } -} - -function toggle_open_close() { - - var sidebar = document.getElementById('sidebarframe'); - var grippy = document.getElementById('grippy'); - - if (is_sidebar_open) - { - // Close it - sidebar.setAttribute('style','visibility: hidden; width: 1px'); - sidebar.setAttribute('src','about:blank'); - - grippy.setAttribute('open',''); - - is_sidebar_open = false; - } - else - { - dump("Open it\n"); - - sidebar.setAttribute('style', 'visibility: visible;width:' + sidebar_width + 'px'); - sidebar.setAttribute('src', sidebar_uri); - - grippy.setAttribute('open','true'); - - is_sidebar_open = true; - } - - try { - // Save new open/close state in prefs - if (prefs) { - prefs.setBoolPref(sidebar_pref + '.open', is_sidebar_open); - } - } - catch (ex) { - dump("failed to set the sidebar pref\n"); - } -} diff --git a/mozilla/xpfe/browser/resources/content/navigator-commands.rdf b/mozilla/xpfe/browser/resources/content/navigator-commands.rdf deleted file mode 100644 index 6f8df01aae5..00000000000 --- a/mozilla/xpfe/browser/resources/content/navigator-commands.rdf +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - Back - back-button - button-toolbar-1 - button - - - - Forward - forward-button - button-toolbar-1 - button - - - - Reload - reload-button - button-toolbar-1 - button - - - - Stop - stop-button - button-toolbar-1 - button - - - - Location Field - location-field - location-field - box - - - - Throbber - throbber-button - - - - Home - home-button - button-toolbar bookmarkitem - - - diff --git a/mozilla/xpfe/browser/resources/content/toolbarTest.rdf b/mozilla/xpfe/browser/resources/content/toolbarTest.rdf deleted file mode 100644 index 7b40ad581ca..00000000000 --- a/mozilla/xpfe/browser/resources/content/toolbarTest.rdf +++ /dev/null @@ -1,129 +0,0 @@ - - - - - - - - -
  • -
  • -
  • -
  • -
  • - - - - - - toolbar - Navigation Toolbar - toolbar-primary - - -
  • -
  • -
  • -
  • -
  • - - - - - - toolbar - Personal Toolbar - - -
  • - - - - - - - toolbar - Installed Skins - - - - - toolbar - Sidebar Panels - - - - - - - toolbar - Windows Toolbar - - - - - Back - back-button - chrome://navigator/skin/back.gif - button-toolbar-1 - button - - - - Forward - forward-button - chrome://navigator/skin/forward.gif - button-toolbar-1 - button - - - - Reload - reload-button - chrome://navigator/skin/reload.gif - button-toolbar-1 - button - - - - Stop - stop-button - chrome://navigator/skin/stop.gif - button-toolbar-1 - button - - - - Throbber - throbber-button - chrome://global/skin/animthrob_single.gif - - - - Home - home-button - button-toolbar bookmarkitem - - \ No newline at end of file diff --git a/mozilla/xpfe/browser/resources/content/toolbarTest.xul b/mozilla/xpfe/browser/resources/content/toolbarTest.xul deleted file mode 100644 index 44cf5de6fd8..00000000000 --- a/mozilla/xpfe/browser/resources/content/toolbarTest.xul +++ /dev/null @@ -1,298 +0,0 @@ - - - - - - - - - - - - - - - - - - -