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

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

Issue 2466123002: DevTools: reformat front-end code to match chromium style. (Closed)
Patch Set: Created 4 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 unified diff | Download patch
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 syncToolbarItems: function() 68 syncToolbarItems: function()
69 { 69 {
70 return [ 70 return [
71 this._deleteButton, 71 this._deleteButton,
72 new WebInspector.ToolbarItem(this._connectivityIcon), 72 new WebInspector.ToolbarItem(this._connectivityIcon),
73 new WebInspector.ToolbarSeparator(), 73 new WebInspector.ToolbarSeparator(),
74 new WebInspector.ToolbarItem(this._statusIcon) 74 new WebInspector.ToolbarItem(this._statusIcon)
75 ]; 75 ];
76 }, 76 },
77 77
78 /**
79 * @override
80 */
78 wasShown: function() 81 wasShown: function()
79 { 82 {
80 this._maybeUpdate(); 83 this._maybeUpdate();
81 }, 84 },
82 85
86 /**
87 * @override
88 */
83 willHide: function() 89 willHide: function()
84 { 90 {
85 this._deleteButton.setVisible(false); 91 this._deleteButton.setVisible(false);
86 }, 92 },
87 93
88 _maybeUpdate: function() 94 _maybeUpdate: function()
89 { 95 {
90 if (!this.isShowing() || !this._viewDirty) 96 if (!this.isShowing() || !this._viewDirty)
91 return; 97 return;
92 98
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 _deleteCallback: function(node) 260 _deleteCallback: function(node)
255 { 261 {
256 // FIXME: Should we delete a single (selected) resource or all resources ? 262 // FIXME: Should we delete a single (selected) resource or all resources ?
257 // InspectorBackend.deleteCachedResource(...) 263 // InspectorBackend.deleteCachedResource(...)
258 // this._update(); 264 // this._update();
259 }, 265 },
260 266
261 __proto__: WebInspector.SimpleView.prototype 267 __proto__: WebInspector.SimpleView.prototype
262 }; 268 };
263 269
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698