mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 04:41:11 +00:00
Bug 1848708 - Move Glean and GleanPings to plain webidl r=nika,janerik,perry.mcmanis
Since we're exposing Glean types in not-chrome-only contexts like privileged "about:" pages, we can't live in chrome-webidl/ any longer. Differential Revision: https://phabricator.services.mozilla.com/D186266
This commit is contained in:
parent
5963e68624
commit
ce9f11eb18
@ -28,9 +28,6 @@ with Files("MatchPattern.webidl"):
|
||||
with Files("WebExtension*.webidl"):
|
||||
BUG_COMPONENT = ("WebExtensions", "General")
|
||||
|
||||
with Files("Glean*.webidl"):
|
||||
BUG_COMPONENT = ("Toolkit", "Telemetry")
|
||||
|
||||
with Files("IOUtils.webidl"):
|
||||
BUG_COMPONENT = ("Toolkit", "IOUtils and PathUtils")
|
||||
|
||||
@ -109,8 +106,3 @@ if CONFIG["MOZ_PLACES"]:
|
||||
"PlacesEvent.webidl",
|
||||
"PlacesObservers.webidl",
|
||||
]
|
||||
|
||||
WEBIDL_FILES += [
|
||||
"Glean.webidl",
|
||||
"GleanPings.webidl",
|
||||
]
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
interface nsISupports;
|
||||
|
||||
[ChromeOnly, Exposed=Window]
|
||||
[Func="nsGlobalWindowInner::IsGleanNeeded", Exposed=Window]
|
||||
interface GleanCategory {
|
||||
/**
|
||||
* Get a metric by name.
|
||||
@ -17,7 +17,7 @@ interface GleanCategory {
|
||||
getter nsISupports (DOMString identifier);
|
||||
};
|
||||
|
||||
[ChromeOnly, Exposed=Window]
|
||||
[Func="nsGlobalWindowInner::IsGleanNeeded", Exposed=Window]
|
||||
interface GleanImpl {
|
||||
/**
|
||||
* Get a metric category by name.
|
||||
@ -27,7 +27,7 @@ interface GleanImpl {
|
||||
getter GleanCategory (DOMString identifier);
|
||||
};
|
||||
|
||||
[ChromeOnly, Exposed=Window]
|
||||
[Func="nsGlobalWindowInner::IsGleanNeeded", Exposed=Window]
|
||||
interface GleanLabeled {
|
||||
/**
|
||||
* Get a specific metric for a given label.
|
@ -6,7 +6,7 @@
|
||||
|
||||
interface nsIGleanPing;
|
||||
|
||||
[ChromeOnly, Exposed=Window]
|
||||
[Func="nsGlobalWindowInner::IsGleanNeeded", Exposed=Window]
|
||||
interface GleanPingsImpl {
|
||||
/**
|
||||
* Get a ping by name.
|
@ -139,6 +139,9 @@ with Files("GeometryUtils.webidl"):
|
||||
with Files("GetUserMediaRequest.webidl"):
|
||||
BUG_COMPONENT = ("Core", "WebRTC")
|
||||
|
||||
with Files("Glean*.webidl"):
|
||||
BUG_COMPONENT = ("Toolkit", "Telemetry")
|
||||
|
||||
with Files("Grid.webidl"):
|
||||
BUG_COMPONENT = ("Core", "CSS Parsing and Computation")
|
||||
|
||||
@ -583,6 +586,8 @@ WEBIDL_FILES = [
|
||||
"GeolocationPositionError.webidl",
|
||||
"GeometryUtils.webidl",
|
||||
"GetUserMediaRequest.webidl",
|
||||
"Glean.webidl",
|
||||
"GleanPings.webidl",
|
||||
"Grid.webidl",
|
||||
"Headers.webidl",
|
||||
"Highlight.webidl",
|
||||
|
@ -8,6 +8,7 @@
|
||||
#define mozilla_glean_Glean_h
|
||||
|
||||
#include "js/TypeDecls.h"
|
||||
#include "nsGlobalWindowInner.h"
|
||||
#include "nsISupports.h"
|
||||
#include "nsTArrayForwardDeclare.h"
|
||||
#include "nsWrapperCache.h"
|
||||
|
Loading…
Reference in New Issue
Block a user