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

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

Issue 244103002: DevTools: handle search view shortcuts before editor shortcuts (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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) 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com).
4 * Copyright (C) 2009 Joseph Pecoraro 4 * Copyright (C) 2009 Joseph Pecoraro
5 * Copyright (C) 2011 Google Inc. All rights reserved. 5 * Copyright (C) 2011 Google Inc. All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 10 *
(...skipping 21 matching lines...) Expand all
32 /** 32 /**
33 * @constructor 33 * @constructor
34 * @extends {WebInspector.VBox} 34 * @extends {WebInspector.VBox}
35 * @param {!WebInspector.Searchable} searchable 35 * @param {!WebInspector.Searchable} searchable
36 */ 36 */
37 WebInspector.SearchableView = function(searchable) 37 WebInspector.SearchableView = function(searchable)
38 { 38 {
39 WebInspector.VBox.call(this); 39 WebInspector.VBox.call(this);
40 40
41 this._searchProvider = searchable; 41 this._searchProvider = searchable;
42 this.element.addEventListener("keydown", this._onKeyDown.bind(this), false); 42 this.element.addEventListener("keydown", this._onKeyDown.bind(this), true);
43 43
44 this._footerElementContainer = this.element.createChild("div", "search-bar s tatus-bar hidden"); 44 this._footerElementContainer = this.element.createChild("div", "search-bar s tatus-bar hidden");
45 this._footerElementContainer.style.order = 100; 45 this._footerElementContainer.style.order = 100;
46 46
47 this._footerElement = this._footerElementContainer.createChild("table", "too lbar-search"); 47 this._footerElement = this._footerElementContainer.createChild("table", "too lbar-search");
48 this._footerElement.cellSpacing = 0; 48 this._footerElement.cellSpacing = 0;
49 49
50 this._firstRowElement = this._footerElement.createChild("tr"); 50 this._firstRowElement = this._footerElement.createChild("tr");
51 this._secondRowElement = this._footerElement.createChild("tr", "hidden"); 51 this._secondRowElement = this._footerElement.createChild("tr", "hidden");
52 52
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 * @param {string} text 569 * @param {string} text
570 */ 570 */
571 replaceSelectionWith: function(text) { }, 571 replaceSelectionWith: function(text) { },
572 572
573 /** 573 /**
574 * @param {string} query 574 * @param {string} query
575 * @param {string} replacement 575 * @param {string} replacement
576 */ 576 */
577 replaceAllWith: function(query, replacement) { } 577 replaceAllWith: function(query, replacement) { }
578 } 578 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698