зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 2db16a02d6d1 (bug 1411161)
This commit is contained in:
Родитель
556c69541d
Коммит
73c42c6cf7
|
@ -1,14 +0,0 @@
|
||||||
/* 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/. */
|
|
||||||
|
|
||||||
"use strict";
|
|
||||||
|
|
||||||
const { createEnum } = require("devtools/client/shared/enum");
|
|
||||||
|
|
||||||
createEnum([
|
|
||||||
|
|
||||||
// Update the entire events state with the new list of events.
|
|
||||||
"UPDATE_EVENTS",
|
|
||||||
|
|
||||||
], module.exports);
|
|
|
@ -1,9 +0,0 @@
|
||||||
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
||||||
# vim: set filetype=python:
|
|
||||||
# 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/.
|
|
||||||
|
|
||||||
DevToolsModules(
|
|
||||||
'index.js',
|
|
||||||
)
|
|
|
@ -1,27 +0,0 @@
|
||||||
/* 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/. */
|
|
||||||
|
|
||||||
"use strict";
|
|
||||||
|
|
||||||
const {
|
|
||||||
DOM: dom,
|
|
||||||
PureComponent,
|
|
||||||
} = require("devtools/client/shared/vendor/react");
|
|
||||||
const { connect } = require("devtools/client/shared/vendor/react-redux");
|
|
||||||
|
|
||||||
class EventsApp extends PureComponent {
|
|
||||||
static get propTypes() {
|
|
||||||
return {};
|
|
||||||
}
|
|
||||||
|
|
||||||
render() {
|
|
||||||
return dom.div(
|
|
||||||
{
|
|
||||||
id: "events-container",
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = connect(state => state)(EventsApp);
|
|
|
@ -1,9 +0,0 @@
|
||||||
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
||||||
# vim: set filetype=python:
|
|
||||||
# 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/.
|
|
||||||
|
|
||||||
DevToolsModules(
|
|
||||||
'EventsApp.js',
|
|
||||||
)
|
|
|
@ -1,52 +0,0 @@
|
||||||
/* 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/. */
|
|
||||||
|
|
||||||
"use strict";
|
|
||||||
|
|
||||||
const { createFactory, createElement } = require("devtools/client/shared/vendor/react");
|
|
||||||
const { Provider } = require("devtools/client/shared/vendor/react-redux");
|
|
||||||
|
|
||||||
const EventsApp = createFactory(require("./components/EventsApp"));
|
|
||||||
|
|
||||||
const { LocalizationHelper } = require("devtools/shared/l10n");
|
|
||||||
const INSPECTOR_L10N =
|
|
||||||
new LocalizationHelper("devtools/client/locales/inspector.properties");
|
|
||||||
|
|
||||||
class EventsView {
|
|
||||||
|
|
||||||
constructor(inspector, window) {
|
|
||||||
this.document = window.document;
|
|
||||||
this.inspector = inspector;
|
|
||||||
this.store = inspector.store;
|
|
||||||
|
|
||||||
this.init();
|
|
||||||
}
|
|
||||||
|
|
||||||
init() {
|
|
||||||
if (!this.inspector) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
let eventsApp = EventsApp({});
|
|
||||||
|
|
||||||
let provider = createElement(Provider, {
|
|
||||||
id: "eventsview",
|
|
||||||
key: "eventsview",
|
|
||||||
store: this.store,
|
|
||||||
title: INSPECTOR_L10N.getStr("inspector.sidebar.eventsViewTitle")
|
|
||||||
}, eventsApp);
|
|
||||||
|
|
||||||
// Expose the provider to let inspector.js use it in setupSidebar.
|
|
||||||
this.provider = provider;
|
|
||||||
}
|
|
||||||
|
|
||||||
destroy() {
|
|
||||||
this.document = null;
|
|
||||||
this.inspector = null;
|
|
||||||
this.store = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = EventsView;
|
|
|
@ -1,16 +0,0 @@
|
||||||
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
||||||
# vim: set filetype=python:
|
|
||||||
# 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/.
|
|
||||||
|
|
||||||
DIRS += [
|
|
||||||
'actions',
|
|
||||||
'components',
|
|
||||||
'reducers',
|
|
||||||
]
|
|
||||||
|
|
||||||
DevToolsModules(
|
|
||||||
'events.js',
|
|
||||||
'types.js',
|
|
||||||
)
|
|
|
@ -1,19 +0,0 @@
|
||||||
/* 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/. */
|
|
||||||
|
|
||||||
"use strict";
|
|
||||||
|
|
||||||
const INITIAL_EVENTS = [];
|
|
||||||
|
|
||||||
let reducers = {
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
module.exports = function (events = INITIAL_EVENTS, action) {
|
|
||||||
let reducer = reducers[action.type];
|
|
||||||
if (!reducer) {
|
|
||||||
return events;
|
|
||||||
}
|
|
||||||
return reducer(events, action);
|
|
||||||
};
|
|
|
@ -1,7 +0,0 @@
|
||||||
/* 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/. */
|
|
||||||
|
|
||||||
"use strict";
|
|
||||||
|
|
||||||
exports.events = require("./events");
|
|
|
@ -1,10 +0,0 @@
|
||||||
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
||||||
# vim: set filetype=python:
|
|
||||||
# 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/.
|
|
||||||
|
|
||||||
DevToolsModules(
|
|
||||||
'events.js',
|
|
||||||
'index.js',
|
|
||||||
)
|
|
|
@ -1,9 +0,0 @@
|
||||||
/* 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/. */
|
|
||||||
|
|
||||||
"use strict";
|
|
||||||
|
|
||||||
exports.changes = {
|
|
||||||
|
|
||||||
};
|
|
|
@ -678,32 +678,6 @@ Inspector.prototype = {
|
||||||
defaultTab == changesId);
|
defaultTab == changesId);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Services.prefs.getBoolPref("devtools.eventsview.enabled")) {
|
|
||||||
// Inject a lazy loaded react tab by exposing a fake React object
|
|
||||||
// with a lazy defined Tab thanks to `panel` being a function
|
|
||||||
let eventsId = "eventsview";
|
|
||||||
let eventsTitle = INSPECTOR_L10N.getStr("inspector.sidebar.eventsViewTitle");
|
|
||||||
this.sidebar.addTab(
|
|
||||||
eventsId,
|
|
||||||
eventsTitle,
|
|
||||||
{
|
|
||||||
props: {
|
|
||||||
id: eventsId,
|
|
||||||
title: eventsTitle
|
|
||||||
},
|
|
||||||
panel: () => {
|
|
||||||
if (!this.eventview) {
|
|
||||||
const EventsView =
|
|
||||||
this.browserRequire("devtools/client/inspector/events/events");
|
|
||||||
this.eventsview = new EventsView(this, this.panelWin);
|
|
||||||
}
|
|
||||||
|
|
||||||
return this.eventsview.provider;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
defaultTab == eventsId);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.target.form.animationsActor) {
|
if (this.target.form.animationsActor) {
|
||||||
this.sidebar.addFrameTab(
|
this.sidebar.addFrameTab(
|
||||||
"animationinspector",
|
"animationinspector",
|
||||||
|
|
|
@ -7,7 +7,6 @@ DIRS += [
|
||||||
'changes',
|
'changes',
|
||||||
'components',
|
'components',
|
||||||
'computed',
|
'computed',
|
||||||
'events',
|
|
||||||
'extensions',
|
'extensions',
|
||||||
'flexbox',
|
'flexbox',
|
||||||
'fonts',
|
'fonts',
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
|
|
||||||
exports.boxModel = require("devtools/client/inspector/boxmodel/reducers/box-model");
|
exports.boxModel = require("devtools/client/inspector/boxmodel/reducers/box-model");
|
||||||
exports.changes = require("devtools/client/inspector/changes/reducers/changes");
|
exports.changes = require("devtools/client/inspector/changes/reducers/changes");
|
||||||
exports.events = require("devtools/client/inspector/events/reducers/events");
|
|
||||||
exports.extensionsSidebar = require("devtools/client/inspector/extensions/reducers/sidebar");
|
exports.extensionsSidebar = require("devtools/client/inspector/extensions/reducers/sidebar");
|
||||||
exports.flexboxes = require("devtools/client/inspector/flexbox/reducers/flexboxes");
|
exports.flexboxes = require("devtools/client/inspector/flexbox/reducers/flexboxes");
|
||||||
exports.fontOptions = require("devtools/client/inspector/fonts/reducers/font-options");
|
exports.fontOptions = require("devtools/client/inspector/fonts/reducers/font-options");
|
||||||
|
|
|
@ -354,11 +354,6 @@ inspector.sidebar.newBadge=new!
|
||||||
# that corresponds to the tool displaying CSS changes.
|
# that corresponds to the tool displaying CSS changes.
|
||||||
inspector.sidebar.changesViewTitle=Changes
|
inspector.sidebar.changesViewTitle=Changes
|
||||||
|
|
||||||
# LOCALIZATION NOTE (inspector.sidebar.eventsViewTitle):
|
|
||||||
# This is the title shown in a tab in the side panel of the Inspector panel
|
|
||||||
# that corresponds to the tool displaying the list of event listeners used in the page.
|
|
||||||
inspector.sidebar.eventsViewTitle=Events
|
|
||||||
|
|
||||||
# LOCALIZATION NOTE (inspector.sidebar.animationInspectorTitle):
|
# LOCALIZATION NOTE (inspector.sidebar.animationInspectorTitle):
|
||||||
# This is the title shown in a tab in the side panel of the Inspector panel
|
# This is the title shown in a tab in the side panel of the Inspector panel
|
||||||
# that corresponds to the tool displaying animations defined in the page.
|
# that corresponds to the tool displaying animations defined in the page.
|
||||||
|
|
|
@ -62,8 +62,6 @@ pref("devtools.inspector.colorWidget.enabled", false);
|
||||||
pref("devtools.inspector.shapesHighlighter.enabled", true);
|
pref("devtools.inspector.shapesHighlighter.enabled", true);
|
||||||
// Enable the Changes View
|
// Enable the Changes View
|
||||||
pref("devtools.changesview.enabled", false);
|
pref("devtools.changesview.enabled", false);
|
||||||
// Enable the Events View
|
|
||||||
pref("devtools.eventsview.enabled", false);
|
|
||||||
// Enable the Flexbox Inspector
|
// Enable the Flexbox Inspector
|
||||||
pref("devtools.flexboxinspector.enabled", false);
|
pref("devtools.flexboxinspector.enabled", false);
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,6 @@ const BROWSER_BASED_DIRS = [
|
||||||
"resource://devtools/client/inspector/boxmodel",
|
"resource://devtools/client/inspector/boxmodel",
|
||||||
"resource://devtools/client/inspector/changes",
|
"resource://devtools/client/inspector/changes",
|
||||||
"resource://devtools/client/inspector/computed",
|
"resource://devtools/client/inspector/computed",
|
||||||
"resource://devtools/client/inspector/events",
|
|
||||||
"resource://devtools/client/inspector/flexbox",
|
"resource://devtools/client/inspector/flexbox",
|
||||||
"resource://devtools/client/inspector/fonts",
|
"resource://devtools/client/inspector/fonts",
|
||||||
"resource://devtools/client/inspector/grids",
|
"resource://devtools/client/inspector/grids",
|
||||||
|
|
Загрузка…
Ссылка в новой задаче