svnno****@sourc*****
svnno****@sourc*****
2007年 8月 5日 (日) 23:29:01 JST
Revision: 189 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=bbs2ch&view=rev&rev=189 Author: flyson Date: 2007-08-05 23:29:01 +0900 (Sun, 05 Aug 2007) Log Message: ----------- SplitBrowser 連携機能の削除 Modified Paths: -------------- trunk/bbs2chreader/chrome/content/bbs2chreader/bbsmenu/page.js trunk/bbs2chreader/chrome/content/bbs2chreader/board/page.js Removed Paths: ------------- trunk/bbs2chreader/chrome/content/bbs2chreader/splitBrowserOverlay.xul Modified: trunk/bbs2chreader/chrome/content/bbs2chreader/bbsmenu/page.js =================================================================== --- trunk/bbs2chreader/chrome/content/bbs2chreader/bbsmenu/page.js 2007-08-05 12:53:11 UTC (rev 188) +++ trunk/bbs2chreader/chrome/content/bbs2chreader/bbsmenu/page.js 2007-08-05 14:29:01 UTC (rev 189) @@ -15,14 +15,6 @@ gBbsMenuXMLFile = gBbs2chService.getDataDir(); gBbsMenuXMLFile.appendRelativePath("bbsmenu.xml"); - // SplitBrowser 連携 - var windowMediator = Components.classes["@mozilla.org/appshell/window-mediator;1"] - .getService(Components.interfaces.nsIWindowMediator); - var browserWindow = windowMediator.getMostRecentWindow("navigator:browser"); - if(browserWindow && browserWindow["SplitBrowser"]){ - var overlayURL = "chrome://bbs2chreader/content/splitBrowserOverlay.xul"; - document.loadOverlay(overlayURL, null); - } // ツリーの偶数行に色をつける if(gBbs2chService.pref.getBoolPref("extensions.bbs2chreader.enable_tree_stripe2")) Modified: trunk/bbs2chreader/chrome/content/bbs2chreader/board/page.js =================================================================== --- trunk/bbs2chreader/chrome/content/bbs2chreader/board/page.js 2007-08-05 12:53:11 UTC (rev 188) +++ trunk/bbs2chreader/chrome/content/bbs2chreader/board/page.js 2007-08-05 14:29:01 UTC (rev 189) @@ -72,14 +72,6 @@ return; } - // SplitBrowser 連携 - var windowMediator = Components.classes["@mozilla.org/appshell/window-mediator;1"] - .getService(Components.interfaces.nsIWindowMediator); - var browserWindow = windowMediator.getMostRecentWindow("navigator:browser"); - if(browserWindow && browserWindow["SplitBrowser"]){ - var overlayURL = "chrome://bbs2chreader/content/splitBrowserOverlay.xul"; - document.loadOverlay(overlayURL, null); - } gTreeSubject = document.getElementById("treeSubject"); loadPersist(); Deleted: trunk/bbs2chreader/chrome/content/bbs2chreader/splitBrowserOverlay.xul =================================================================== --- trunk/bbs2chreader/chrome/content/bbs2chreader/splitBrowserOverlay.xul 2007-08-05 12:53:11 UTC (rev 188) +++ trunk/bbs2chreader/chrome/content/bbs2chreader/splitBrowserOverlay.xul 2007-08-05 14:29:01 UTC (rev 189) @@ -1,91 +0,0 @@ -<?xml version="1.0"?> -<?xml-stylesheet href="chrome://splitbrowser/skin/splitbrowser.css" type="text/css"?> - -<!DOCTYPE bindings SYSTEM "chrome://splitbrowser/locale/"> -<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" - xmlns:html="http://www.w3.org/1999/xhtml"> - -<script type="application/x-javascript"> -<![CDATA[ - -var b2rSplitBrowser = { - - get splitBrowser(){ - var windowMediator = Components.classes["@mozilla.org/appshell/window-mediator;1"] - .getService(Components.interfaces.nsIWindowMediator); - var browserWindow = windowMediator.getMostRecentWindow("navigator:browser"); - if(browserWindow && browserWindow["SplitBrowser"]){ - return browserWindow["SplitBrowser"]; - } - return null; - }, - - openSubBrowser: function(aURL, aPosition){ - var splitBrowser = this.splitBrowser; - if(!aURL){ return; } - - var position = splitBrowser.POSITION_LEFT; - switch(aPosition){ - case "LEFT": - position = splitBrowser.POSITION_LEFT; - break; - case "RIGHT": - position = splitBrowser.POSITION_RIGHT; - break; - case "TOP": - position = splitBrowser.POSITION_TOP; - break; - case "BOTTOM": - position = splitBrowser.POSITION_BOTTOM; - break; - } - splitBrowser.addSubBrowser(aURL, null, position); - } - -} - -]]> -</script> - -<popup id="popBbsMenuContext"> - <menu id="splitbrowser-context-item-link" class="menu-iconic" - label="&splitbrowser.link.add.label;"> - <menupopup onpopupshowing="event.stopPropagation()"> - <menuitem label="&splitbrowser.link.add.top.label;" - class="menuitem-iconic splitbrowser-menuitem-add-top" - oncommand="b2rSplitBrowser.openSubBrowser(getSelectedBoardURL(), 'TOP');"/> - <menuitem label="&splitbrowser.link.add.right.label;" - class="menuitem-iconic splitbrowser-menuitem-add-right" - oncommand="b2rSplitBrowser.openSubBrowser(getSelectedBoardURL(), 'RIGHT');"/> - <menuitem label="&splitbrowser.link.add.left.label;" - class="menuitem-iconic splitbrowser-menuitem-add-left" - oncommand="b2rSplitBrowser.openSubBrowser(getSelectedBoardURL(), 'LEFT');"/> - <menuitem label="&splitbrowser.link.add.bottom.label;" - class="menuitem-iconic splitbrowser-menuitem-add-bottom" - oncommand="b2rSplitBrowser.openSubBrowser(getSelectedBoardURL(), 'BOTTOM');"/> - </menupopup> - </menu> -</popup> - - -<popup id="popTreeSubjectContext"> - <menu id="splitbrowser-context-item-link" class="menu-iconic" - label="&splitbrowser.link.add.label;"> - <menupopup onpopupshowing="event.stopPropagation()"> - <menuitem label="&splitbrowser.link.add.top.label;" - class="menuitem-iconic splitbrowser-menuitem-add-top" - oncommand="b2rSplitBrowser.openSubBrowser(getSelectedThreadURL(), 'TOP');"/> - <menuitem label="&splitbrowser.link.add.right.label;" - class="menuitem-iconic splitbrowser-menuitem-add-right" - oncommand="b2rSplitBrowser.openSubBrowser(getSelectedThreadURL(), 'RIGHT');"/> - <menuitem label="&splitbrowser.link.add.left.label;" - class="menuitem-iconic splitbrowser-menuitem-add-left" - oncommand="b2rSplitBrowser.openSubBrowser(getSelectedThreadURL(), 'LEFT');"/> - <menuitem label="&splitbrowser.link.add.bottom.label;" - class="menuitem-iconic splitbrowser-menuitem-add-bottom" - oncommand="b2rSplitBrowser.openSubBrowser(getSelectedThreadURL(), 'BOTTOM');"/> - </menupopup> - </menu> -</popup> - -</overlay> \ No newline at end of file