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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js

Issue 2417083002: DevTools: introduce WI.UISourceCode.requestMetadata() (Closed)
Patch Set: normalize test + address nit Created 4 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
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 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 TitleChanged: Symbol("TitleChanged"), 68 TitleChanged: Symbol("TitleChanged"),
69 SourceMappingChanged: Symbol("SourceMappingChanged"), 69 SourceMappingChanged: Symbol("SourceMappingChanged"),
70 MessageAdded: Symbol("MessageAdded"), 70 MessageAdded: Symbol("MessageAdded"),
71 MessageRemoved: Symbol("MessageRemoved"), 71 MessageRemoved: Symbol("MessageRemoved"),
72 LineDecorationAdded: Symbol("LineDecorationAdded"), 72 LineDecorationAdded: Symbol("LineDecorationAdded"),
73 LineDecorationRemoved: Symbol("LineDecorationRemoved") 73 LineDecorationRemoved: Symbol("LineDecorationRemoved")
74 } 74 }
75 75
76 WebInspector.UISourceCode.prototype = { 76 WebInspector.UISourceCode.prototype = {
77 /** 77 /**
78 * @return {!Promise<?WebInspector.UISourceCodeMetadata>}
79 */
80 requestMetadata: function()
81 {
82 return this._project.requestMetadata(this);
83 },
84
85 /**
78 * @return {string} 86 * @return {string}
79 */ 87 */
80 name: function() 88 name: function()
81 { 89 {
82 return this._name; 90 return this._name;
83 }, 91 },
84 92
85 /** 93 /**
86 * @return {string} 94 * @return {string}
87 */ 95 */
(...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after
956 }, 964 },
957 965
958 /** 966 /**
959 * @return {*} 967 * @return {*}
960 */ 968 */
961 data: function() 969 data: function()
962 { 970 {
963 return this._data; 971 return this._data;
964 } 972 }
965 } 973 }
974
975 /**
976 * @constructor
977 * @param {?Date} modificationTime
978 * @param {?number} contentSize
979 */
980 WebInspector.UISourceCodeMetadata = function(modificationTime, contentSize)
981 {
982 this.modificationTime = modificationTime;
983 this.contentSize = contentSize;
984 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698