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

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

Issue 2889013002: DevTools: introduce uiSourceCode.mimeType() method (Closed)
Patch Set: address comments Created 3 years, 7 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 /** 87 /**
88 * @return {string} 88 * @return {string}
89 */ 89 */
90 name() { 90 name() {
91 return this._name; 91 return this._name;
92 } 92 }
93 93
94 /** 94 /**
95 * @return {string} 95 * @return {string}
96 */ 96 */
97 mimeType() {
98 return this._project.mimeType(this);
99 }
100
101 /**
102 * @return {string}
103 */
97 url() { 104 url() {
98 return this._url; 105 return this._url;
99 } 106 }
100 107
101 /** 108 /**
102 * @return {string} 109 * @return {string}
103 */ 110 */
104 parentURL() { 111 parentURL() {
105 return this._parentURL; 112 return this._parentURL;
106 } 113 }
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after
927 Workspace.UISourceCodeMetadata = class { 934 Workspace.UISourceCodeMetadata = class {
928 /** 935 /**
929 * @param {?Date} modificationTime 936 * @param {?Date} modificationTime
930 * @param {?number} contentSize 937 * @param {?number} contentSize
931 */ 938 */
932 constructor(modificationTime, contentSize) { 939 constructor(modificationTime, contentSize) {
933 this.modificationTime = modificationTime; 940 this.modificationTime = modificationTime;
934 this.contentSize = contentSize; 941 this.contentSize = contentSize;
935 } 942 }
936 }; 943 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698