function canEmulateCallback(error, canEmulate)
        {
            this._target = target;
            this._targetCanEmulate = !error && canEmulate;
            this._initialized = true;

            if (this.canEmulate()) {
                target.resourceTreeModel.addEventListener(WebInspector.ResourceTreeModel.EventTypes.MainFrameNavigated, this._onMainFrameNavigated, this);
                var domModel = WebInspector.DOMModel.fromTarget(this._target);
                if (domModel)
                    domModel.addEventListener(WebInspector.DOMModel.Events.InspectModeWillBeToggled, this._inspectModeWillBeToggled, this);
                this._applyInitialOverrides();
            }

            this.dispatchEventToListeners(WebInspector.OverridesSupport.Events.EmulationStateChanged);

            callback();
        }
@param {?Protocol.Error} error
@param {boolean} canEmulate
@this {WebInspector.OverridesSupport}