chrome 100 percent

chrome 100 percent


DisciplinaPedagogia116.260 materiais669.589 seguidores
Pré-visualização50 páginas
width: 100%;
 flex-direction: column;
}
.icon {
 max-height: 100%;
 max-width: 100%;
 opacity: .3;
}
@media (orientation: landscape) and (min-height: 2em) and (min-width: 14em) {
 #outer {
 flex-direction: row;
 }
 .icon {
 max-height: 100%;
 max-width: 50%;
 }
 h1 {
 display: block;
 }
}
@media (min-height: 7em) and (min-width: 6em) {
 #outer {
 flex-direction: column;
 }
 .icon {
 max-height: 50%;
 max-width: 100%;
 }
 h1 {
 display: block;
 }
}
</style>
<style>
#outer {
 border: none;
 flex-direction: row;
 cursor: pointer;
}
#shielding {
 background-color: rgba(0, 0, 0, 0.5);
 height: 100%;
 left: 0px;
 position: absolute;
 top: 0px;
 width: 100%;
 z-index: 2;
}
#plugin-icon {
 opacity: 0.8;
 max-height: 100%;
 max-width: 100%;
 min-width: 0;
 min-height: 0;
}
#plugin-icon:hover {
 opacity: 0.95;
}
#poster {
 height: 100%;
 object-fit: contain;
 width: 100%;
 z-index: 1;
}
#inner-container {
 align-items: center;
 display: flex;
 height: 100%;
 justify-content: center;
 left: 0px;
 max-height: 100%;
 max-width: 100%;
 position: absolute;
 top: 0px;
 width: 100%;
 z-index: 2;
}
</style>
<base i18n-values=&quot;href:baseurl&quot;>
</head>
<body>
 <div i18n-values=&quot;title:name&quot; id=&quot;outer&quot;>
 <img id=&quot;poster&quot; i18n-values=&quot;srcset:poster&quot;>
 <div id=&quot;shielding&quot;></div>
 <div id=&quot;inner-container&quot;
 i18n-values=&quot;.style.width:visibleWidth;.style.height:visibleHeight&quot;>
 <img id=&quot;plugin-icon&quot; src=&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAAA8dJREFUaAXdWs9vEkEUZkvZQloNxJoY40kxJsDNo9GDif+Bf4CHpjEmJPoPeMce1F408dYjQePBgycv3vRG4GBMPREPLSlpCUWggN+3nc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7B2MQmE6RAHCucUoEXC8JBj00mEEdvNplAHIbaZMxCoXDTzwMg6lJ9PG2TCcQPAzYZXv/7XzicZALxU41M6Fz85jR02uNEOOc9NzN4dMz1ObMsX9uPZ38BvwZw6z92PI4AAAAASUVORK5CYII=&quot; />
 </div>
 </div>
 
 document.getElementById('poster').onerror = function() {
 this.hidden = true;
 };
 document.getElementById('outer').onclick = function() {
 plugin.load();
 };
 window.resizePoster = function(marginLeft, marginTop, width, height) {
 var container = document.getElementById('inner-container');
 container.style.marginLeft = marginLeft;
 container.style.marginTop = marginTop;
 container.style.width = width;
 container.style.height = height;
 if (plugin.didFinishIconRepositionForTesting) {
 // Defer until reflow complete.
 window.setTimeout(function() {
 plugin.didFinishIconRepositionForTesting();
 });
 }
 };
 
</body>
</html>
// Copyright 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
var chrome;
if (!chrome)
 chrome = {};
if (!chrome.embeddedSearch) {
 chrome.embeddedSearch = new function() {
 this.searchBox = new function() {
 // =======================================================================
 // Private functions
 // =======================================================================
 native function GetRightToLeft();
 native function IsFocused();
 native function IsKeyCaptureEnabled();
 native function Paste();
 native function StartCapturingKeyStrokes();
 native function StopCapturingKeyStrokes();
 // =======================================================================
 // Exported functions
 // =======================================================================
 Object.defineProperty(this, 'rtl', { get: GetRightToLeft });
 this.__defineGetter__('isFocused', IsFocused);
 this.__defineGetter__('isKeyCaptureEnabled', IsKeyCaptureEnabled);
 this.paste = function(value) {
 Paste(value);
 };
 this.startCapturingKeyStrokes = function() {
 StartCapturingKeyStrokes();
 };
 this.stopCapturingKeyStrokes = function() {
 StopCapturingKeyStrokes();
 };
 this.onfocuschange = null;
 this.onkeycapturechange = null;
 };
 this.newTabPage = new function() {
 // =======================================================================
 // Private functions
 // =======================================================================
 native function CheckIsUserSignedInToChromeAs();
 native function CheckIsUserSyncingHistory();
 native function DeleteMostVisitedItem();
 native function GetMostVisitedItemData();
 native function GetMostVisitedItems();
 native function GetThemeBackgroundInfo();
 native function IsInputInProgress();
 native function LogEvent();
 native function LogMostVisitedImpression();
 native function LogMostVisitedNavigation();
 native function UndoAllMostVisitedDeletions();
 native function UndoMostVisitedDeletion();
 function GetMostVisitedItemsWrapper() {
 var mostVisitedItems = GetMostVisitedItems();
 for (var i = 0, item; item = mostVisitedItems[i]; ++i) {
 item.faviconUrl = GenerateFaviconURL(item.renderViewId, item.rid);
 // These properties are private data and should not be returned to
 // the page. They are only accessible via getMostVisitedItemData().
 delete item.url;
 delete item.title;
 delete item.domain;
 delete item.direction;
 delete item.renderViewId;
 }
 return mostVisitedItems;
 }
 function GenerateFaviconURL(renderViewId, rid) {
 return &quot;chrome-search://favicon/size/16@&quot; +
 window.devicePixelRatio + &quot;x/&quot; +
 renderViewId + &quot;/&quot; + rid;
 }
 // =======================================================================
 // Exported functions
 // =======================================================================
 this.__defineGetter__('isInputInProgress', IsInputInProgress);
 this.__defineGetter__('mostVisited', GetMostVisitedItemsWrapper);
 this.__defineGetter__('themeBackgroundInfo', GetThemeBackgroundInfo);
 this.checkIsUserSignedIntoChromeAs = function(identity) {
 CheckIsUserSignedInToChromeAs(identity);
 };
 this.checkIsUserSyncingHistory = function() {
 CheckIsUserSyncingHistory();
 };
 this.deleteMostVisitedItem = function(restrictedId) {
 DeleteMostVisitedItem(restrictedId);
 };
 // This method is restricted to chrome-search://most-visited pages by
 // checking the invoking context's origin in searchbox_extension.cc.
 this.getMostVisitedItemData = function(restrictedId)