mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 1422465 - Remove the nsIDOMXULPopupElement interface and [implements] attribute on the "popup-base" and "panel" bindings;r=bz,surkov
MozReview-Commit-ID: EvzuohEgFSh --HG-- extra : rebase_source : 838cd68dda56778e6815c7c75a6ca158902c8f29
This commit is contained in:
parent
a443d0e5d4
commit
9c9c6b777b
@ -29,7 +29,6 @@
|
||||
#include "nsIDOMXULDocument.h"
|
||||
#include "nsIDOMMutationEvent.h"
|
||||
#include "nsPIDOMWindow.h"
|
||||
#include "nsIDOMXULPopupElement.h"
|
||||
#include "nsIEditingSession.h"
|
||||
#include "nsIFrame.h"
|
||||
#include "nsIInterfaceRequestorUtils.h"
|
||||
|
@ -18,7 +18,6 @@
|
||||
#include "nsIDOMXULMenuListElement.h"
|
||||
#include "nsIDOMXULMultSelectCntrlEl.h"
|
||||
#include "nsIDOMNodeList.h"
|
||||
#include "nsIDOMXULPopupElement.h"
|
||||
#include "nsIDOMXULSelectCntrlItemEl.h"
|
||||
#include "nsIMutableArray.h"
|
||||
#include "nsIPersistentProperties2.h"
|
||||
@ -157,9 +156,7 @@ XULListboxAccessible::NativeRole()
|
||||
{
|
||||
// A richlistbox is used with the new autocomplete URL bar, and has a parent
|
||||
// popup <panel>.
|
||||
nsCOMPtr<nsIDOMXULPopupElement> xulPopup =
|
||||
do_QueryInterface(mContent->GetParent());
|
||||
if (xulPopup)
|
||||
if (mContent->GetParent()->IsXULElement(nsGkAtoms::panel))
|
||||
return roles::COMBOBOX_LIST;
|
||||
|
||||
return IsMulticolumn() ? roles::TABLE : roles::LISTBOX;
|
||||
|
@ -63,7 +63,6 @@
|
||||
#include "nsError.h"
|
||||
#include "nsIDOMXULButtonElement.h"
|
||||
#include "nsIDOMXULCheckboxElement.h"
|
||||
#include "nsIDOMXULPopupElement.h"
|
||||
|
||||
// Event related includes
|
||||
#include "nsIDOMEventTarget.h"
|
||||
@ -194,8 +193,6 @@ static nsDOMClassInfoData sClassInfoData[] = {
|
||||
DOM_DEFAULT_SCRIPTABLE_FLAGS)
|
||||
NS_DEFINE_CHROME_XBL_CLASSINFO_DATA(XULCheckboxElement, nsDOMGenericSH,
|
||||
DOM_DEFAULT_SCRIPTABLE_FLAGS)
|
||||
NS_DEFINE_CHROME_XBL_CLASSINFO_DATA(XULPopupElement, nsDOMGenericSH,
|
||||
DOM_DEFAULT_SCRIPTABLE_FLAGS)
|
||||
};
|
||||
|
||||
nsIXPConnect *nsDOMClassInfo::sXPConnect = nullptr;
|
||||
@ -475,10 +472,6 @@ nsDOMClassInfo::Init()
|
||||
DOM_CLASSINFO_MAP_ENTRY(nsIDOMXULCheckboxElement)
|
||||
DOM_CLASSINFO_MAP_END
|
||||
|
||||
DOM_CLASSINFO_MAP_BEGIN_NO_CLASS_IF(XULPopupElement, nsIDOMXULPopupElement)
|
||||
DOM_CLASSINFO_MAP_ENTRY(nsIDOMXULPopupElement)
|
||||
DOM_CLASSINFO_MAP_END
|
||||
|
||||
static_assert(MOZ_ARRAY_LENGTH(sClassInfoData) == eDOMClassInfoIDCount,
|
||||
"The number of items in sClassInfoData doesn't match the "
|
||||
"number of nsIDOMClassInfo ID's, this is bad! Fix it!");
|
||||
|
@ -28,7 +28,6 @@ enum nsDOMClassInfoID
|
||||
eDOMClassInfo_XULLabeledControlElement_id,
|
||||
eDOMClassInfo_XULButtonElement_id,
|
||||
eDOMClassInfo_XULCheckboxElement_id,
|
||||
eDOMClassInfo_XULPopupElement_id,
|
||||
|
||||
// This one better be the last one in this list
|
||||
eDOMClassInfoIDCount
|
||||
|
@ -21,7 +21,6 @@ XPIDL_SOURCES += [
|
||||
'nsIDOMXULLabelElement.idl',
|
||||
'nsIDOMXULMenuListElement.idl',
|
||||
'nsIDOMXULMultSelectCntrlEl.idl',
|
||||
'nsIDOMXULPopupElement.idl',
|
||||
'nsIDOMXULRelatedElement.idl',
|
||||
'nsIDOMXULSelectCntrlEl.idl',
|
||||
'nsIDOMXULSelectCntrlItemEl.idl',
|
||||
|
@ -1,30 +0,0 @@
|
||||
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsIDOMElement.idl"
|
||||
#include "nsIDOMXULElement.idl"
|
||||
|
||||
[scriptable, uuid(cb7eaa79-45d5-4ea3-ae17-b65fdcfe5e30)]
|
||||
interface nsIDOMXULPopupElement : nsISupports {
|
||||
const unsigned short BEFORE_START = 1;
|
||||
const unsigned short BEFORE_END = 2;
|
||||
const unsigned short AFTER_START = 3;
|
||||
const unsigned short AFTER_END = 4;
|
||||
const unsigned short START_BEFORE = 5;
|
||||
const unsigned short START_AFTER = 6;
|
||||
const unsigned short END_BEFORE = 7;
|
||||
const unsigned short END_AFTER = 8;
|
||||
const unsigned short OVERLAP = 9;
|
||||
const unsigned short AT_POINTER = 10;
|
||||
const unsigned short AFTER_POINTER = 11;
|
||||
|
||||
attribute DOMString position;
|
||||
|
||||
void showPopup(in unsigned short alignment,
|
||||
in nsIDOMElement target,
|
||||
in nsIDOMElement anchor);
|
||||
void hidePopup();
|
||||
};
|
||||
|
@ -1278,8 +1278,6 @@ var interfaceNamesInGlobalScope =
|
||||
{name: "XULElement", xbl: true},
|
||||
// IMPORTANT: Do not change this list without review from a DOM peer!
|
||||
{name: "XULLabeledControlElement", xbl: true},
|
||||
// IMPORTANT: Do not change this list without review from a DOM peer!
|
||||
{name: "XULPopupElement", xbl: true},
|
||||
// IMPORTANT: Do not change this list without review from a DOM peer!
|
||||
{name: "XULTemplateBuilder", xbl: true},
|
||||
// IMPORTANT: Do not change this list without review from a DOM peer!
|
||||
|
@ -16,7 +16,7 @@
|
||||
<stylesheet src="chrome://global/skin/popup.css"/>
|
||||
</resources>
|
||||
|
||||
<implementation implements="nsIDOMXULPopupElement">
|
||||
<implementation>
|
||||
<property name="label" onget="return this.getAttribute('label');"
|
||||
onset="this.setAttribute('label', val); return val;"/>
|
||||
<property name="position" onget="return this.getAttribute('position');"
|
||||
@ -291,7 +291,7 @@
|
||||
|
||||
<binding id="panel" role="xul:panel"
|
||||
extends="chrome://global/content/bindings/popup.xml#popup-base">
|
||||
<implementation implements="nsIDOMXULPopupElement">
|
||||
<implementation>
|
||||
<field name="_prevFocus">0</field>
|
||||
<field name="_dragBindingAlive">true</field>
|
||||
<constructor>
|
||||
|
Loading…
Reference in New Issue
Block a user