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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/SourcesNavigator.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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 10 *
(...skipping 26 matching lines...) Expand all
37 }; 37 };
38 38
39 WebInspector.SourcesNavigatorView.prototype = { 39 WebInspector.SourcesNavigatorView.prototype = {
40 /** 40 /**
41 * @override 41 * @override
42 * @param {!WebInspector.UISourceCode} uiSourceCode 42 * @param {!WebInspector.UISourceCode} uiSourceCode
43 * @return {boolean} 43 * @return {boolean}
44 */ 44 */
45 accept: function(uiSourceCode) 45 accept: function(uiSourceCode)
46 { 46 {
47 if (!WebInspector.NavigatorView.prototype.accept(uiSourceCode)) 47 if (!super.accept(uiSourceCode))
48 return false; 48 return false;
49 return uiSourceCode.project().type() !== WebInspector.projectTypes.Conte ntScripts && uiSourceCode.project().type() !== WebInspector.projectTypes.Snippet s; 49 return uiSourceCode.project().type() !== WebInspector.projectTypes.Conte ntScripts && uiSourceCode.project().type() !== WebInspector.projectTypes.Snippet s;
50 }, 50 },
51 51
52 /** 52 /**
53 * @param {!WebInspector.Event} event 53 * @param {!WebInspector.Event} event
54 */ 54 */
55 _inspectedURLChanged: function(event) 55 _inspectedURLChanged: function(event)
56 { 56 {
57 var mainTarget = WebInspector.targetManager.mainTarget(); 57 var mainTarget = WebInspector.targetManager.mainTarget();
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 /** 301 /**
302 * @override 302 * @override
303 */ 303 */
304 sourceDeleted: function(uiSourceCode) 304 sourceDeleted: function(uiSourceCode)
305 { 305 {
306 this._handleRemoveSnippet(uiSourceCode); 306 this._handleRemoveSnippet(uiSourceCode);
307 }, 307 },
308 308
309 __proto__: WebInspector.NavigatorView.prototype 309 __proto__: WebInspector.NavigatorView.prototype
310 }; 310 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698