/* automatically generated by JSCoverage - do not edit */
try {
  if (typeof top === 'object' && top !== null && typeof top.opener === 'object' && top.opener !== null) {
    // this is a browser window that was opened from another window

    if (! top.opener._$jscoverage) {
      top.opener._$jscoverage = {};
    }
  }
}
catch (e) {}

try {
  if (typeof top === 'object' && top !== null) {
    // this is a browser window

    try {
      if (typeof top.opener === 'object' && top.opener !== null && top.opener._$jscoverage) {
        top._$jscoverage = top.opener._$jscoverage;
      }
    }
    catch (e) {}

    if (! top._$jscoverage) {
      top._$jscoverage = {};
    }
  }
}
catch (e) {}

try {
  if (typeof top === 'object' && top !== null && top._$jscoverage) {
    _$jscoverage = top._$jscoverage;
  }
}
catch (e) {}
if (typeof _$jscoverage !== 'object') {
  _$jscoverage = {};
}
if (! _$jscoverage['ui/mask.js']) {
  _$jscoverage['ui/mask.js'] = [];
  _$jscoverage['ui/mask.js'][3] = 0;
  _$jscoverage['ui/mask.js'][4] = 0;
  _$jscoverage['ui/mask.js'][9] = 0;
  _$jscoverage['ui/mask.js'][10] = 0;
  _$jscoverage['ui/mask.js'][11] = 0;
  _$jscoverage['ui/mask.js'][13] = 0;
  _$jscoverage['ui/mask.js'][15] = 0;
  _$jscoverage['ui/mask.js'][18] = 0;
  _$jscoverage['ui/mask.js'][19] = 0;
  _$jscoverage['ui/mask.js'][20] = 0;
  _$jscoverage['ui/mask.js'][21] = 0;
  _$jscoverage['ui/mask.js'][22] = 0;
  _$jscoverage['ui/mask.js'][28] = 0;
  _$jscoverage['ui/mask.js'][29] = 0;
  _$jscoverage['ui/mask.js'][30] = 0;
  _$jscoverage['ui/mask.js'][33] = 0;
  _$jscoverage['ui/mask.js'][34] = 0;
  _$jscoverage['ui/mask.js'][37] = 0;
  _$jscoverage['ui/mask.js'][40] = 0;
  _$jscoverage['ui/mask.js'][43] = 0;
  _$jscoverage['ui/mask.js'][44] = 0;
  _$jscoverage['ui/mask.js'][45] = 0;
  _$jscoverage['ui/mask.js'][46] = 0;
  _$jscoverage['ui/mask.js'][49] = 0;
}
_$jscoverage['ui/mask.js'].source = ["<span class=\"c\">///import core</span>","<span class=\"c\">///import uicore</span>","<span class=\"k\">(</span><span class=\"k\">function</span> <span class=\"k\">()</span><span class=\"k\">{</span>","    <span class=\"k\">var</span> utils <span class=\"k\">=</span> baidu<span class=\"k\">.</span>editor<span class=\"k\">.</span>utils<span class=\"k\">,</span>","        domUtils <span class=\"k\">=</span> baidu<span class=\"k\">.</span>editor<span class=\"k\">.</span>dom<span class=\"k\">.</span>domUtils<span class=\"k\">,</span>","        UIBase <span class=\"k\">=</span> baidu<span class=\"k\">.</span>editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>UIBase<span class=\"k\">,</span>","        uiUtils <span class=\"k\">=</span> baidu<span class=\"k\">.</span>editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>uiUtils<span class=\"k\">;</span>","    ","    <span class=\"k\">var</span> Mask <span class=\"k\">=</span> baidu<span class=\"k\">.</span>editor<span class=\"k\">.</span>ui<span class=\"k\">.</span>Mask <span class=\"k\">=</span> <span class=\"k\">function</span> <span class=\"k\">(</span>options<span class=\"k\">)</span><span class=\"k\">{</span>","        <span class=\"k\">this</span><span class=\"k\">.</span>initOptions<span class=\"k\">(</span>options<span class=\"k\">);</span>","        <span class=\"k\">this</span><span class=\"k\">.</span>initUIBase<span class=\"k\">();</span>","    <span class=\"k\">}</span><span class=\"k\">;</span>","    Mask<span class=\"k\">.</span>prototype <span class=\"k\">=</span> <span class=\"k\">{</span>","        getHtmlTpl<span class=\"k\">:</span> <span class=\"k\">function</span> <span class=\"k\">()</span><span class=\"k\">{</span>","            <span class=\"k\">return</span> <span class=\"s\">'&lt;div id=\"##\" class=\"edui-mask %%\" onmousedown=\"return $$._onMouseDown(event, this);\"&gt;&lt;/div&gt;'</span><span class=\"k\">;</span>","        <span class=\"k\">}</span><span class=\"k\">,</span>","        postRender<span class=\"k\">:</span> <span class=\"k\">function</span> <span class=\"k\">()</span><span class=\"k\">{</span>","            <span class=\"k\">var</span> me <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">;</span>","            domUtils<span class=\"k\">.</span>on<span class=\"k\">(</span>window<span class=\"k\">,</span> <span class=\"s\">'resize'</span><span class=\"k\">,</span> <span class=\"k\">function</span> <span class=\"k\">()</span><span class=\"k\">{</span>","                setTimeout<span class=\"k\">(</span><span class=\"k\">function</span> <span class=\"k\">()</span><span class=\"k\">{</span>","                    <span class=\"k\">if</span> <span class=\"k\">(!</span>me<span class=\"k\">.</span>isHidden<span class=\"k\">())</span> <span class=\"k\">{</span>","                        me<span class=\"k\">.</span>_fill<span class=\"k\">();</span>","                    <span class=\"k\">}</span>","                <span class=\"k\">}</span><span class=\"k\">);</span>","            <span class=\"k\">}</span><span class=\"k\">);</span>","        <span class=\"k\">}</span><span class=\"k\">,</span>","        show<span class=\"k\">:</span> <span class=\"k\">function</span> <span class=\"k\">(</span>zIndex<span class=\"k\">)</span><span class=\"k\">{</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>_fill<span class=\"k\">();</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">().</span>style<span class=\"k\">.</span>display <span class=\"k\">=</span> <span class=\"s\">''</span><span class=\"k\">;</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">().</span>style<span class=\"k\">.</span>zIndex <span class=\"k\">=</span> zIndex<span class=\"k\">;</span>","        <span class=\"k\">}</span><span class=\"k\">,</span>","        hide<span class=\"k\">:</span> <span class=\"k\">function</span> <span class=\"k\">()</span><span class=\"k\">{</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">().</span>style<span class=\"k\">.</span>display <span class=\"k\">=</span> <span class=\"s\">'none'</span><span class=\"k\">;</span>","            <span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">().</span>style<span class=\"k\">.</span>zIndex <span class=\"k\">=</span> <span class=\"s\">''</span><span class=\"k\">;</span>","        <span class=\"k\">}</span><span class=\"k\">,</span>","        isHidden<span class=\"k\">:</span> <span class=\"k\">function</span> <span class=\"k\">()</span><span class=\"k\">{</span>","            <span class=\"k\">return</span> <span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">().</span>style<span class=\"k\">.</span>display <span class=\"k\">==</span> <span class=\"s\">'none'</span><span class=\"k\">;</span>","        <span class=\"k\">}</span><span class=\"k\">,</span>","        _onMouseDown<span class=\"k\">:</span> <span class=\"k\">function</span> <span class=\"k\">()</span><span class=\"k\">{</span>","            <span class=\"k\">return</span> <span class=\"k\">false</span><span class=\"k\">;</span>","        <span class=\"k\">}</span><span class=\"k\">,</span>","        _fill<span class=\"k\">:</span> <span class=\"k\">function</span> <span class=\"k\">()</span><span class=\"k\">{</span>","            <span class=\"k\">var</span> el <span class=\"k\">=</span> <span class=\"k\">this</span><span class=\"k\">.</span>getDom<span class=\"k\">();</span>","            <span class=\"k\">var</span> vpRect <span class=\"k\">=</span> uiUtils<span class=\"k\">.</span>getViewportRect<span class=\"k\">();</span>","            el<span class=\"k\">.</span>style<span class=\"k\">.</span>width <span class=\"k\">=</span> vpRect<span class=\"k\">.</span>width <span class=\"k\">+</span> <span class=\"s\">'px'</span><span class=\"k\">;</span>","            el<span class=\"k\">.</span>style<span class=\"k\">.</span>height <span class=\"k\">=</span> vpRect<span class=\"k\">.</span>height <span class=\"k\">+</span> <span class=\"s\">'px'</span><span class=\"k\">;</span>","        <span class=\"k\">}</span>","    <span class=\"k\">}</span><span class=\"k\">;</span>","    utils<span class=\"k\">.</span>inherits<span class=\"k\">(</span>Mask<span class=\"k\">,</span> UIBase<span class=\"k\">);</span>","<span class=\"k\">}</span><span class=\"k\">)();</span>"];
_$jscoverage['ui/mask.js'][3]++;
(function () {
  _$jscoverage['ui/mask.js'][4]++;
  var utils = baidu.editor.utils, domUtils = baidu.editor.dom.domUtils, UIBase = baidu.editor.ui.UIBase, uiUtils = baidu.editor.ui.uiUtils;
  _$jscoverage['ui/mask.js'][9]++;
  var Mask = (baidu.editor.ui.Mask = (function (options) {
  _$jscoverage['ui/mask.js'][10]++;
  this.initOptions(options);
  _$jscoverage['ui/mask.js'][11]++;
  this.initUIBase();
}));
  _$jscoverage['ui/mask.js'][13]++;
  Mask.prototype = {getHtmlTpl: (function () {
  _$jscoverage['ui/mask.js'][15]++;
  return "<div id=\"##\" class=\"edui-mask %%\" onmousedown=\"return $$._onMouseDown(event, this);\"></div>";
}), postRender: (function () {
  _$jscoverage['ui/mask.js'][18]++;
  var me = this;
  _$jscoverage['ui/mask.js'][19]++;
  domUtils.on(window, "resize", (function () {
  _$jscoverage['ui/mask.js'][20]++;
  setTimeout((function () {
  _$jscoverage['ui/mask.js'][21]++;
  if ((! me.isHidden())) {
    _$jscoverage['ui/mask.js'][22]++;
    me._fill();
  }
}));
}));
}), show: (function (zIndex) {
  _$jscoverage['ui/mask.js'][28]++;
  this._fill();
  _$jscoverage['ui/mask.js'][29]++;
  this.getDom().style.display = "";
  _$jscoverage['ui/mask.js'][30]++;
  this.getDom().style.zIndex = zIndex;
}), hide: (function () {
  _$jscoverage['ui/mask.js'][33]++;
  this.getDom().style.display = "none";
  _$jscoverage['ui/mask.js'][34]++;
  this.getDom().style.zIndex = "";
}), isHidden: (function () {
  _$jscoverage['ui/mask.js'][37]++;
  return (this.getDom().style.display == "none");
}), _onMouseDown: (function () {
  _$jscoverage['ui/mask.js'][40]++;
  return false;
}), _fill: (function () {
  _$jscoverage['ui/mask.js'][43]++;
  var el = this.getDom();
  _$jscoverage['ui/mask.js'][44]++;
  var vpRect = uiUtils.getViewportRect();
  _$jscoverage['ui/mask.js'][45]++;
  el.style.width = (vpRect.width + "px");
  _$jscoverage['ui/mask.js'][46]++;
  el.style.height = (vpRect.height + "px");
})};
  _$jscoverage['ui/mask.js'][49]++;
  utils.inherits(Mask, UIBase);
})();
