define(["apphost","paper-icon-button-light"],function(apphost){"use strict";var div;(div=document.createElement("div")).innerHTML='<button is="paper-icon-button-light" class="controlBoxButton minimizeButton autoSize" tabindex="-1"><i class="md-icon controlBoxButtonIcon">remove</i></button><button is="paper-icon-button-light" class="controlBoxButton maximizeButton autoSize" tabindex="-1"><i class="md-icon controlBoxButtonIcon">crop_square</i></button><button is="paper-icon-button-light" class="controlBoxButton appExitButton autoSize" tabindex="-1"><i class="md-icon controlBoxButtonIcon">close</i></button>',div.classList.add("controlBox"),div.classList.add("hide"),document.querySelector(".windowDragRegion").appendChild(div),document.querySelector(".appExitButton").addEventListener("click",function(){apphost.exit()}),document.querySelector(".minimizeButton").addEventListener("click",function(){apphost.setWindowState("Minimized")}),document.querySelector(".maximizeButton").addEventListener("click",function(){"Normal"===apphost.getWindowState()?apphost.setWindowState("Maximized"):apphost.setWindowState("Normal")}),document.querySelector(".controlBox").classList.remove("hide")});