| Index: chrome/tools/test/reference_build/chrome_linux/resources/inspector/inspector_controller.js
|
| diff --git a/chrome/tools/test/reference_build/chrome_linux/resources/inspector/inspector_controller.js b/chrome/tools/test/reference_build/chrome_linux/resources/inspector/inspector_controller.js
|
| index dd4193c69bdd75ac25bcdfced4ec779d7da255db..a2816480134594110462304c39943195de9f20eb 100644
|
| --- a/chrome/tools/test/reference_build/chrome_linux/resources/inspector/inspector_controller.js
|
| +++ b/chrome/tools/test/reference_build/chrome_linux/resources/inspector/inspector_controller.js
|
| @@ -16,12 +16,12 @@ goog.provide('devtools.InspectorController');
|
| * Creates inspector controller stub instance.
|
| * @constructor.
|
| */
|
| -devtools.InspectorController = function() {
|
| +devtools.InspectorController = function() {
|
| /**
|
| * @type {boolean}
|
| */
|
| this.searchingForNode_ = false;
|
| -
|
| +
|
| /**
|
| * @type {boolean}
|
| */
|
| @@ -41,6 +41,11 @@ devtools.InspectorController = function() {
|
| * @type {boolean}
|
| */
|
| this.profilerEnabled_ = true;
|
| +
|
| + /**
|
| + * @type {boolean}
|
| + */
|
| + this.resourceTrackingEnabled_ = false;
|
| };
|
|
|
|
|
| @@ -66,8 +71,8 @@ devtools.InspectorController.prototype.isWindowVisible = function() {
|
| /**
|
| * @return {string} Platform identifier.
|
| */
|
| -devtools.InspectorController.prototype.platform = function() {
|
| - return 'windows';
|
| +devtools.InspectorController.prototype.platform = function() {
|
| + return 'windows';
|
| };
|
|
|
|
|
| @@ -94,6 +99,14 @@ devtools.InspectorController.prototype.detach = function() {
|
|
|
|
|
| /**
|
| + * Tell host that the active panel has changed.
|
| + * @param {string} panel Panel name that was last active.
|
| + */
|
| +devtools.InspectorController.prototype.storeLastActivePanel = function(panel) {
|
| +};
|
| +
|
| +
|
| +/**
|
| * Clears console message log in the backend.
|
| */
|
| devtools.InspectorController.prototype.clearMessages = function() {
|
| @@ -152,7 +165,6 @@ devtools.InspectorController.prototype.moveByUnrestricted = function(x, y) {
|
| */
|
| devtools.InspectorController.prototype.addResourceSourceToFrame =
|
| function(identifier, element) {
|
| - return false;
|
| };
|
|
|
|
|
| @@ -215,7 +227,7 @@ devtools.InspectorController.prototype.loaded = function() {
|
| * @return {string} Url of the i18n-ed strings map.
|
| */
|
| devtools.InspectorController.prototype.localizedStringsURL = function() {
|
| - return undefined;
|
| + return undefined;
|
| };
|
|
|
|
|
| @@ -238,12 +250,38 @@ devtools.InspectorController.prototype.hiddenPanels = function() {
|
| /**
|
| * @return {boolean} True iff debugger is enabled.
|
| */
|
| -devtools.InspectorController.prototype.debuggerEnabled = function() {
|
| +devtools.InspectorController.prototype.debuggerEnabled = function() {
|
| return this.debuggerEnabled_;
|
| };
|
|
|
|
|
| /**
|
| + * Enables resource tracking.
|
| + */
|
| +devtools.InspectorController.prototype.enableResourceTracking = function() {
|
| + this.resourceTrackingEnabled_ = true;
|
| + WebInspector.resourceTrackingWasEnabled();
|
| +};
|
| +
|
| +
|
| +/**
|
| + * Disables resource tracking.
|
| + */
|
| +devtools.InspectorController.prototype.disableResourceTracking = function() {
|
| + this.resourceTrackingEnabled_ = false;
|
| + WebInspector.resourceTrackingWasDisabled();
|
| +};
|
| +
|
| +
|
| +/**
|
| + * @return {boolean} True iff resource tracking is enabled.
|
| + */
|
| +devtools.InspectorController.prototype.resourceTrackingEnabled = function() {
|
| + return this.resourceTrackingEnabled_;
|
| +};
|
| +
|
| +
|
| +/**
|
| * Enables debugger.
|
| */
|
| devtools.InspectorController.prototype.enableDebugger = function() {
|
| @@ -291,7 +329,7 @@ devtools.InspectorController.prototype.pauseInDebugger = function() {
|
| * @return {boolean} True iff the debugger will pause execution on the
|
| * exceptions.
|
| */
|
| -devtools.InspectorController.prototype.pauseOnExceptions = function() {
|
| +devtools.InspectorController.prototype.pauseOnExceptions = function() {
|
| // Does nothing in stub.
|
| return false;
|
| };
|
| @@ -316,8 +354,8 @@ devtools.InspectorController.prototype.resumeDebugger = function() {
|
| /**
|
| * @return {boolean} True iff profiler is enabled.
|
| */
|
| -devtools.InspectorController.prototype.profilerEnabled = function() {
|
| - return true;
|
| +devtools.InspectorController.prototype.profilerEnabled = function() {
|
| + return true;
|
| };
|
|
|
|
|
| @@ -363,8 +401,8 @@ devtools.InspectorController.prototype.stopProfiling = function() {
|
| /**
|
| * @return {Array.<Object>} Profile snapshots array.
|
| */
|
| -devtools.InspectorController.prototype.profiles = function() {
|
| - return [];
|
| +devtools.InspectorController.prototype.profiles = function() {
|
| + return [];
|
| };
|
|
|
|
|
| @@ -398,3 +436,5 @@ devtools.InspectorController.prototype.stepOutOfFunctionInDebugger =
|
| devtools.InspectorController.prototype.stepOverStatementInDebugger =
|
| function() {
|
| };
|
| +
|
| +var InspectorController = new devtools.InspectorController();
|
|
|