From 0e53ba491607dbfd7d93195b1746a496540f9c7f Mon Sep 17 00:00:00 2001 From: piro Date: Mon, 13 Sep 2010 17:52:07 +0000 Subject: [PATCH] =?UTF-8?q?Minefield=E3=81=A7=E3=82=B9=E3=83=97=E3=83=AA?= =?UTF-8?q?=E3=83=83=E3=82=BF=E4=B8=8A=E3=81=AEgrippy=E3=81=AE=E3=82=AF?= =?UTF-8?q?=E3=83=AA=E3=83=83=E3=82=AF=E3=81=8C=E6=9C=9F=E5=BE=85=E9=80=9A?= =?UTF-8?q?=E3=82=8A=E3=81=AB=E6=A9=9F=E8=83=BD=E3=81=97=E3=81=A6=E3=81=84?= =?UTF-8?q?=E3=81=AA=E3=81=8B=E3=81=A3=E3=81=9F=EF=BC=9A=E3=82=B3=E3=83=9F?= =?UTF-8?q?=E3=83=83=E3=83=88=E5=BF=98=E3=82=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@7192 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- modules/utils.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/utils.js b/modules/utils.js index 1a4ee1f2..6a5e0de5 100644 --- a/modules/utils.js +++ b/modules/utils.js @@ -852,6 +852,15 @@ var TreeStyleTabUtils = { ).singleNodeValue; }, + isEventFiredOnGrippy : function TSTUtils_isEventFiredOnGrippy(aEvent) + { + return this.evaluateXPath( + 'ancestor-or-self::xul:grippy', + aEvent.originalTarget, + Ci.nsIDOMXPathResult.BOOLEAN_TYPE + ).booleanValue; + }, + getTabFromFrame : function TSTUtils_getTabFromFrame(aFrame, aTabBrowser) { var b = aTabBrowser || this.browser;