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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/source_frame/SourceFrame.js

Issue 2314503005: DevTools: remove UISourceCodeFrame from context when switching panels. (Closed)
Patch Set: Created 4 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
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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 }, 358 },
359 359
360 /** 360 /**
361 * @override 361 * @override
362 */ 362 */
363 editorFocused: function() 363 editorFocused: function()
364 { 364 {
365 this._resetCurrentSearchResultIndex(); 365 this._resetCurrentSearchResultIndex();
366 }, 366 },
367 367
368 /**
369 * @override
370 */
371 editorBlurred: function()
372 {
373 },
374
368 _resetCurrentSearchResultIndex: function() 375 _resetCurrentSearchResultIndex: function()
369 { 376 {
370 if (!this._searchResults.length) 377 if (!this._searchResults.length)
371 return; 378 return;
372 this._currentSearchResultIndex = -1; 379 this._currentSearchResultIndex = -1;
373 if (this._searchableView) 380 if (this._searchableView)
374 this._searchableView.updateCurrentMatchIndex(this._currentSearchResu ltIndex); 381 this._searchableView.updateCurrentMatchIndex(this._currentSearchResu ltIndex);
375 this._textEditor.highlightSearchResults(this._searchRegex, null); 382 this._textEditor.highlightSearchResults(this._searchRegex, null);
376 }, 383 },
377 384
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 _handleKeyDown: function(e) 651 _handleKeyDown: function(e)
645 { 652 {
646 var shortcutKey = WebInspector.KeyboardShortcut.makeKeyFromEvent(e); 653 var shortcutKey = WebInspector.KeyboardShortcut.makeKeyFromEvent(e);
647 var handler = this._shortcuts[shortcutKey]; 654 var handler = this._shortcuts[shortcutKey];
648 if (handler && handler()) 655 if (handler && handler())
649 e.consume(true); 656 e.consume(true);
650 }, 657 },
651 658
652 __proto__: WebInspector.SimpleView.prototype 659 __proto__: WebInspector.SimpleView.prototype
653 } 660 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698