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

Side by Side Diff: Source/devtools/front_end/AdvancedSearchController.js

Issue 23484056: [DevTools] Renaming Scripts panel to Sources panel (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Modified missed files Created 7 years, 3 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
« no previous file with comments | « Source/devtools/devtools.gyp ('k') | Source/devtools/front_end/CPUProfileView.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 WebInspector.AdvancedSearchController.prototype = { 53 WebInspector.AdvancedSearchController.prototype = {
54 /** 54 /**
55 * @param {KeyboardEvent} event 55 * @param {KeyboardEvent} event
56 * @return {boolean} 56 * @return {boolean}
57 */ 57 */
58 handleShortcut: function(event) 58 handleShortcut: function(event)
59 { 59 {
60 if (WebInspector.KeyboardShortcut.makeKeyFromEvent(event) === this._shor tcut.key) { 60 if (WebInspector.KeyboardShortcut.makeKeyFromEvent(event) === this._shor tcut.key) {
61 if (!this._searchView || !this._searchView.isShowing() || this._sear chView._search !== document.activeElement) { 61 if (!this._searchView || !this._searchView.isShowing() || this._sear chView._search !== document.activeElement) {
62 WebInspector.showPanel("scripts"); 62 WebInspector.showPanel("sources");
63 this.show(); 63 this.show();
64 } else 64 } else
65 this.close(); 65 this.close();
66 event.consume(true); 66 event.consume(true);
67 return true; 67 return true;
68 } 68 }
69 return false; 69 return false;
70 }, 70 },
71 71
72 _frameNavigated: function() 72 _frameNavigated: function()
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 WebInspector.FileBasedSearchResultsPane.prototype = { 550 WebInspector.FileBasedSearchResultsPane.prototype = {
551 /** 551 /**
552 * @param {WebInspector.UISourceCode} uiSourceCode 552 * @param {WebInspector.UISourceCode} uiSourceCode
553 * @param {number} lineNumber 553 * @param {number} lineNumber
554 * @param {number} columnNumber 554 * @param {number} columnNumber
555 * @return {Element} 555 * @return {Element}
556 */ 556 */
557 _createAnchor: function(uiSourceCode, lineNumber, columnNumber) 557 _createAnchor: function(uiSourceCode, lineNumber, columnNumber)
558 { 558 {
559 var anchor = document.createElement("a"); 559 var anchor = document.createElement("a");
560 anchor.preferredPanel = "scripts"; 560 anchor.preferredPanel = "sources";
561 anchor.href = sanitizeHref(uiSourceCode.originURL()); 561 anchor.href = sanitizeHref(uiSourceCode.originURL());
562 anchor.uiSourceCode = uiSourceCode; 562 anchor.uiSourceCode = uiSourceCode;
563 anchor.lineNumber = lineNumber; 563 anchor.lineNumber = lineNumber;
564 return anchor; 564 return anchor;
565 }, 565 },
566 566
567 /** 567 /**
568 * @param {WebInspector.FileBasedSearchResultsPane.SearchResult} searchResul t 568 * @param {WebInspector.FileBasedSearchResultsPane.SearchResult} searchResul t
569 */ 569 */
570 addSearchResult: function(searchResult) 570 addSearchResult: function(searchResult)
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 */ 739 */
740 WebInspector.FileBasedSearchResultsPane.SearchResult = function(uiSourceCode, se archMatches) { 740 WebInspector.FileBasedSearchResultsPane.SearchResult = function(uiSourceCode, se archMatches) {
741 this.uiSourceCode = uiSourceCode; 741 this.uiSourceCode = uiSourceCode;
742 this.searchMatches = searchMatches; 742 this.searchMatches = searchMatches;
743 } 743 }
744 744
745 /** 745 /**
746 * @type {WebInspector.AdvancedSearchController} 746 * @type {WebInspector.AdvancedSearchController}
747 */ 747 */
748 WebInspector.advancedSearchController = null; 748 WebInspector.advancedSearchController = null;
OLDNEW
« no previous file with comments | « Source/devtools/devtools.gyp ('k') | Source/devtools/front_end/CPUProfileView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698