Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Unified Diff: chrome/browser/resources/gpu_internals.js

Issue 8511046: deprecate webui.css (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: undo mistake in downloads Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/gpu_internals.js
diff --git a/chrome/browser/resources/gpu_internals.js b/chrome/browser/resources/gpu_internals.js
deleted file mode 100644
index 022372db3caab04517cd783b565014e15b9e8099..0000000000000000000000000000000000000000
--- a/chrome/browser/resources/gpu_internals.js
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) 2011 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.
-
-<include src="gpu_internals/browser_bridge.js"/>
-<include src="gpu_internals/info_view.js"/>
-
-var browserBridge;
-
-/**
- * Main entry point. called once the page has loaded.
- */
-function onLoad() {
- browserBridge = new gpu.BrowserBridge();
-
- // Create the views.
- cr.ui.decorate('#info-view', gpu.InfoView);
-
- // Create the main tab control
- var tabs = $('main-tabs');
- cr.ui.decorate(tabs, cr.ui.TabBox);
-
- // Sync the main-tabs selectedTabs in-sync with the location.
- tabs.addEventListener('selectedChange', function() {
- if (tabs.selectedTab.id) {
- history.pushState('', '', '#' + tabs.selectedTab.id);
- }
- });
- window.onhashchange = function() {
- var cur = window.location.hash;
- if (cur == '#' || cur == '') {
- tabs.selectedTab = $('info-view');
- } else {
- var tab = $(window.location.hash.substr(1));
- if (tab)
- tabs.selectedTab = tab;
- }
- };
- window.onhashchange();
-}
-
-document.addEventListener('DOMContentLoaded', onLoad);

Powered by Google App Engine
This is Rietveld 408576698