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

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

Issue 1264133002: Devtools: [WIP] Implement enhanced devtools extension language APIs Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Modify override dropdown to apply to console completions & transpile Created 5 years, 4 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 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 isDirty: function() 513 isDirty: function()
514 { 514 {
515 return typeof this._workingCopy !== "undefined" || typeof this._workingC opyGetter !== "undefined"; 515 return typeof this._workingCopy !== "undefined" || typeof this._workingC opyGetter !== "undefined";
516 }, 516 },
517 517
518 /** 518 /**
519 * @return {string} 519 * @return {string}
520 */ 520 */
521 extension: function() 521 extension: function()
522 { 522 {
523 var lastIndexOfDot = this._name.lastIndexOf("."); 523 return WebInspector.TextUtils.extension(this._name);
524 var extension = lastIndexOfDot !== -1 ? this._name.substr(lastIndexOfDot + 1) : "";
525 var indexOfQuestionMark = extension.indexOf("?");
526 if (indexOfQuestionMark !== -1)
527 extension = extension.substr(0, indexOfQuestionMark);
528 return extension;
529 }, 524 },
530 525
531 /** 526 /**
532 * @return {?string} 527 * @return {?string}
533 */ 528 */
534 content: function() 529 content: function()
535 { 530 {
536 return this._content; 531 return this._content;
537 }, 532 },
538 533
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 * @param {string} query 714 * @param {string} query
720 * @param {boolean} caseSensitive 715 * @param {boolean} caseSensitive
721 * @param {boolean} isRegex 716 * @param {boolean} isRegex
722 * @param {function(!Array.<!WebInspector.ContentProvider.SearchMatch>)} cal lback 717 * @param {function(!Array.<!WebInspector.ContentProvider.SearchMatch>)} cal lback
723 */ 718 */
724 searchInContent: function(query, caseSensitive, isRegex, callback) 719 searchInContent: function(query, caseSensitive, isRegex, callback)
725 { 720 {
726 callback([]); 721 callback([]);
727 } 722 }
728 } 723 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698