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

Side by Side Diff: Source/devtools/front_end/resources/ApplicationCacheItemsView.js

Issue 662793002: [DevTools] Replace usages of document with custom functions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2010 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 23 matching lines...) Expand all
34 this._model = model; 34 this._model = model;
35 35
36 this.element.classList.add("storage-view"); 36 this.element.classList.add("storage-view");
37 this.element.classList.add("table"); 37 this.element.classList.add("table");
38 38
39 // FIXME: Needs better tooltip. (Localized) 39 // FIXME: Needs better tooltip. (Localized)
40 this.deleteButton = new WebInspector.StatusBarButton(WebInspector.UIString(" Delete"), "delete-storage-status-bar-item"); 40 this.deleteButton = new WebInspector.StatusBarButton(WebInspector.UIString(" Delete"), "delete-storage-status-bar-item");
41 this.deleteButton.visible = false; 41 this.deleteButton.visible = false;
42 this.deleteButton.addEventListener("click", this._deleteButtonClicked, this) ; 42 this.deleteButton.addEventListener("click", this._deleteButtonClicked, this) ;
43 43
44 this.connectivityIcon = document.createElement("div"); 44 this.connectivityIcon = createElement("div");
45 this.connectivityMessage = document.createElement("span"); 45 this.connectivityMessage = createElement("span");
46 this.connectivityMessage.className = "storage-application-cache-connectivity "; 46 this.connectivityMessage.className = "storage-application-cache-connectivity ";
47 this.connectivityMessage.textContent = ""; 47 this.connectivityMessage.textContent = "";
48 48
49 this.divider = document.createElement("span"); 49 this.divider = createElement("span");
50 this.divider.className = "status-bar-item status-bar-divider"; 50 this.divider.className = "status-bar-item status-bar-divider";
51 51
52 this.statusIcon = document.createElement("div"); 52 this.statusIcon = createElement("div");
53 this.statusMessage = document.createElement("span"); 53 this.statusMessage = createElement("span");
54 this.statusMessage.className = "storage-application-cache-status"; 54 this.statusMessage.className = "storage-application-cache-status";
55 this.statusMessage.textContent = ""; 55 this.statusMessage.textContent = "";
56 56
57 this._frameId = frameId; 57 this._frameId = frameId;
58 58
59 this._emptyView = new WebInspector.EmptyView(WebInspector.UIString("No Appli cation Cache information available.")); 59 this._emptyView = new WebInspector.EmptyView(WebInspector.UIString("No Appli cation Cache information available."));
60 this._emptyView.show(this.element); 60 this._emptyView.show(this.element);
61 61
62 this._markDirty(); 62 this._markDirty();
63 63
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 _deleteCallback: function(node) 260 _deleteCallback: function(node)
261 { 261 {
262 // FIXME: Should we delete a single (selected) resource or all resources ? 262 // FIXME: Should we delete a single (selected) resource or all resources ?
263 // InspectorBackend.deleteCachedResource(...) 263 // InspectorBackend.deleteCachedResource(...)
264 // this._update(); 264 // this._update();
265 }, 265 },
266 266
267 __proto__: WebInspector.VBox.prototype 267 __proto__: WebInspector.VBox.prototype
268 } 268 }
269 269
OLDNEW
« no previous file with comments | « Source/devtools/front_end/promises/PromisesPanel.js ('k') | Source/devtools/front_end/resources/DatabaseQueryView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698