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

Unified Diff: chrome/common/extensions/docs/examples/extensions/storage_api_devtools/scripts/panels.js

Issue 12760009: Write a devtools extension to inspect chrome.storage data Base URL: https://src.chromium.org/svn/trunk/src/
Patch Set: small fixes Created 7 years, 8 months 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/common/extensions/docs/examples/extensions/storage_api_devtools/scripts/panels.js
===================================================================
--- chrome/common/extensions/docs/examples/extensions/storage_api_devtools/scripts/panels.js (revision 0)
+++ chrome/common/extensions/docs/examples/extensions/storage_api_devtools/scripts/panels.js (revision 0)
@@ -0,0 +1,23 @@
+// Copyright 2013 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 PANELS = [
+ {
+ id: 'storage',
+ title_i18n: 'panels_storage_title',
+ icon: '',
+ page: '/storage/panel.html',
+ supportedContexts: ['extensions', 'contentScripts'],
+ detectScript: '/storage/inspectedWindow/detectStorage.js'
+ }
+];
+
+function isValidPanelId(id) {
+ var valid = false;
+ PANELS.forEach(function(panel) {
+ if (panel.id == id)
+ valid = true;
+ });
+ return valid;
+}
Property changes on: chrome/common/extensions/docs/examples/extensions/storage_api_devtools/scripts/panels.js
___________________________________________________________________
Added: svn:eol-style
+ LF
Added: svn:mime-type
+ text/javascript

Powered by Google App Engine
This is Rietveld 408576698