mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 903844 - Add/update include-what-you-use annotations for various files; r=ehsan+khuey
This commit is contained in:
parent
badb581ba0
commit
584215995c
@ -1,6 +1,7 @@
|
||||
/* 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/. */
|
||||
// IWYU pragma: private, include "nsIDocument.h"
|
||||
|
||||
/*
|
||||
* This file contains the list of deprecated DOM operations. It is
|
||||
|
@ -2,7 +2,6 @@
|
||||
/* 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/. */
|
||||
|
||||
// IWYU pragma: private, include "nsGkAtoms.h"
|
||||
|
||||
/*
|
||||
|
@ -3,6 +3,7 @@
|
||||
/* 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/. */
|
||||
// IWYU pragma: private, include "nsGUIEvent.h"
|
||||
|
||||
/**
|
||||
* This header file defines all DOM keys which are defined in nsIDOMKeyEvent.
|
||||
|
@ -541,7 +541,7 @@ HTMLBodyElement::IsEventAttributeName(nsIAtom *aName)
|
||||
WINDOW_EVENT_HELPER(name_, EventHandlerNonNull)
|
||||
#define BEFOREUNLOAD_EVENT(name_, id_, type_, struct_) \
|
||||
WINDOW_EVENT_HELPER(name_, BeforeUnloadEventHandlerNonNull)
|
||||
#include "nsEventNameList.h"
|
||||
#include "nsEventNameList.h" // IWYU pragma: keep
|
||||
#undef BEFOREUNLOAD_EVENT
|
||||
#undef WINDOW_EVENT
|
||||
#undef WINDOW_EVENT_HELPER
|
||||
|
@ -65,7 +65,7 @@ public:
|
||||
WINDOW_EVENT_HELPER(name_, EventHandlerNonNull)
|
||||
#define BEFOREUNLOAD_EVENT(name_, id_, type_, struct_) \
|
||||
WINDOW_EVENT_HELPER(name_, BeforeUnloadEventHandlerNonNull)
|
||||
#include "nsEventNameList.h"
|
||||
#include "nsEventNameList.h" // IWYU pragma: keep
|
||||
#undef BEFOREUNLOAD_EVENT
|
||||
#undef WINDOW_EVENT
|
||||
#undef WINDOW_EVENT_HELPER
|
||||
|
@ -400,7 +400,7 @@ HTMLFrameSetElement::IsEventAttributeName(nsIAtom *aName)
|
||||
WINDOW_EVENT_HELPER(name_, EventHandlerNonNull)
|
||||
#define BEFOREUNLOAD_EVENT(name_, id_, type_, struct_) \
|
||||
WINDOW_EVENT_HELPER(name_, BeforeUnloadEventHandlerNonNull)
|
||||
#include "nsEventNameList.h"
|
||||
#include "nsEventNameList.h" // IWYU pragma: keep
|
||||
#undef BEFOREUNLOAD_EVENT
|
||||
#undef WINDOW_EVENT
|
||||
#undef WINDOW_EVENT_HELPER
|
||||
|
@ -95,7 +95,7 @@ public:
|
||||
WINDOW_EVENT_HELPER(name_, EventHandlerNonNull)
|
||||
#define BEFOREUNLOAD_EVENT(name_, id_, type_, struct_) \
|
||||
WINDOW_EVENT_HELPER(name_, BeforeUnloadEventHandlerNonNull)
|
||||
#include "nsEventNameList.h"
|
||||
#include "nsEventNameList.h" // IWYU pragma: keep
|
||||
#undef BEFOREUNLOAD_EVENT
|
||||
#undef WINDOW_EVENT
|
||||
#undef WINDOW_EVENT_HELPER
|
||||
|
@ -820,7 +820,7 @@ nsGenericHTMLElement::GetEventListenerManagerForAttr(nsIAtom* aAttrName,
|
||||
#define FORWARDED_EVENT(name_, id_, type_, struct_) \
|
||||
|| nsGkAtoms::on##name_ == aAttrName
|
||||
#define WINDOW_EVENT FORWARDED_EVENT
|
||||
#include "nsEventNameList.h"
|
||||
#include "nsEventNameList.h" // IWYU pragma: keep
|
||||
#undef WINDOW_EVENT
|
||||
#undef FORWARDED_EVENT
|
||||
#undef EVENT
|
||||
@ -928,7 +928,7 @@ nsGenericHTMLElement::SetOn##name_(EventHandlerNonNull* handler, \
|
||||
\
|
||||
return nsINode::SetOn##name_(handler, error); \
|
||||
}
|
||||
#include "nsEventNameList.h"
|
||||
#include "nsEventNameList.h" // IWYU pragma: keep
|
||||
#undef ERROR_EVENT
|
||||
#undef FORWARDED_EVENT
|
||||
#undef EVENT
|
||||
|
@ -247,7 +247,7 @@ public:
|
||||
already_AddRefed<mozilla::dom::EventHandlerNonNull> GetOn##name_(); \
|
||||
void SetOn##name_(mozilla::dom::EventHandlerNonNull* handler, \
|
||||
mozilla::ErrorResult& error);
|
||||
#include "nsEventNameList.h"
|
||||
#include "nsEventNameList.h" // IWYU pragma: keep
|
||||
#undef ERROR_EVENT
|
||||
#undef FORWARDED_EVENT
|
||||
#undef EVENT
|
||||
|
@ -2,6 +2,7 @@
|
||||
/* 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/. */
|
||||
// IWYU pragma: private, include "nsDOMClassInfoID.h"
|
||||
|
||||
DOMCI_CLASS(Window)
|
||||
DOMCI_CLASS(Location)
|
||||
|
@ -2,6 +2,7 @@
|
||||
/* 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/. */
|
||||
// IWYU pragma: private, include "GeckoProfiler.h"
|
||||
|
||||
#ifndef TOOLS_SPS_SAMPLER_H_
|
||||
#define TOOLS_SPS_SAMPLER_H_
|
||||
|
@ -1,3 +1,4 @@
|
||||
// IWYU pragma: private, include "nsError.h"
|
||||
/* Helper file for nsError.h, via preprocessor magic */
|
||||
/* Standard "it worked" return value */
|
||||
ERROR(NS_OK, 0),
|
||||
|
@ -43,7 +43,8 @@ LOCAL_INCLUDES += \
|
||||
# suppresses printing the pattern space, and the p at the end prints it anyway,
|
||||
# so we don't print lines that don't match the pattern to start with.
|
||||
ErrorListCxxDefines.h: ErrorList.h Makefile
|
||||
sed -n 's/.*ERROR(\([A-Z_0-9]*\).*/#define \1 nsresult::\1/p' < $< > $@
|
||||
echo '// IWYU pragma: private, include "nsError.h"' > $@
|
||||
sed -n 's/.*ERROR(\([A-Z_0-9]*\).*/#define \1 nsresult::\1/p' < $< >> $@
|
||||
|
||||
ErrorListCDefines.h: ErrorList.h Makefile
|
||||
sed 's/.*ERROR(\([A-Z_0-9]*\),\( *\)\(.*\))[^)]*/#define \1 \2((nsresult)(\3))/' < $< > $@
|
||||
|
@ -1,6 +1,7 @@
|
||||
/* 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/. */
|
||||
// IWYU pragma: private, include "nsISupports.h"
|
||||
|
||||
#ifndef nsISupportsBase_h__
|
||||
#define nsISupportsBase_h__
|
||||
|
@ -1,7 +1,6 @@
|
||||
/* 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/. */
|
||||
|
||||
// IWYU pragma: private, include "mozilla/Services.h"
|
||||
|
||||
#ifdef ACCESSIBILITY
|
||||
|
@ -2,6 +2,7 @@
|
||||
/* 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/. */
|
||||
// IWYU pragma: private, include "nsISupports.h"
|
||||
|
||||
|
||||
#ifndef nsISupportsImpl_h__
|
||||
|
@ -3,6 +3,7 @@
|
||||
/* 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/. */
|
||||
// IWYU pragma: private, include "nsStringGlue.h"
|
||||
|
||||
#ifndef nsAString_h___
|
||||
#define nsAString_h___
|
||||
|
@ -2,6 +2,7 @@
|
||||
/* 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/. */
|
||||
// IWYU pragma: private, include "nsStringGlue.h"
|
||||
|
||||
#ifndef nsReadableUtils_h___
|
||||
#define nsReadableUtils_h___
|
||||
|
@ -3,6 +3,7 @@
|
||||
/* 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/. */
|
||||
// IWYU pragma: private, include "nsStringGlue.h"
|
||||
|
||||
#ifndef nsString_h___
|
||||
#define nsString_h___
|
||||
|
@ -3,8 +3,7 @@
|
||||
/* 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/. */
|
||||
|
||||
// IWYU pragma: private, include "nsDependentSubstring.h"
|
||||
// IWYU pragma: private, include "nsStringGlue.h"
|
||||
|
||||
/**
|
||||
* nsTDependentSubstring_CharT
|
||||
|
@ -3,8 +3,7 @@
|
||||
/* 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/. */
|
||||
|
||||
// IWYU pragma: private, include "nsString.h"
|
||||
// IWYU pragma: private, include "nsStringGlue.h"
|
||||
|
||||
/**
|
||||
* This is the canonical null-terminated string class. All subclasses
|
||||
|
@ -3,8 +3,7 @@
|
||||
/* 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/. */
|
||||
|
||||
// IWYU pragma: private, include "nsAString.h"
|
||||
// IWYU pragma: private, include "nsStringGlue.h"
|
||||
|
||||
#include "mozilla/MemoryReporting.h"
|
||||
|
||||
|
@ -3,8 +3,7 @@
|
||||
/* 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/. */
|
||||
|
||||
// IWYU pragma: private, include "nsSubstringTuple.h"
|
||||
// IWYU pragma: private, include "nsStringGlue.h"
|
||||
|
||||
/**
|
||||
* nsTSubstringTuple_CharT
|
||||
|
@ -3,8 +3,7 @@
|
||||
/* 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/. */
|
||||
|
||||
// IWYU pragma: private, include "nsString.h"
|
||||
// IWYU pragma: private, include "nsStringGlue.h"
|
||||
|
||||
#define CharT char
|
||||
#define CharT_is_char 1
|
||||
|
@ -3,8 +3,7 @@
|
||||
/* 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/. */
|
||||
|
||||
// IWYU pragma: private, include "nsString.h"
|
||||
// IWYU pragma: private, include "nsStringGlue.h"
|
||||
|
||||
#define CharT PRUnichar
|
||||
#define CharT_is_PRUnichar 1
|
||||
|
@ -3,6 +3,7 @@
|
||||
/* 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/. */
|
||||
// IWYU pragma: private, include "nsStringGlue.h"
|
||||
|
||||
#undef CharT
|
||||
#undef CharT_is_PRUnichar
|
||||
|
Loading…
Reference in New Issue
Block a user