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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js

Issue 2875193002: DevTools: update text inputs to new style (Closed)
Patch Set: ac Created 3 years, 6 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 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 } 618 }
619 619
620 _createConditionElement(lineNumber) { 620 _createConditionElement(lineNumber) {
621 var conditionElement = createElementWithClass('div', 'source-frame-breakpoin t-condition'); 621 var conditionElement = createElementWithClass('div', 'source-frame-breakpoin t-condition');
622 622
623 var labelElement = conditionElement.createChild('label', 'source-frame-break point-message'); 623 var labelElement = conditionElement.createChild('label', 'source-frame-break point-message');
624 labelElement.htmlFor = 'source-frame-breakpoint-condition'; 624 labelElement.htmlFor = 'source-frame-breakpoint-condition';
625 labelElement.createTextChild( 625 labelElement.createTextChild(
626 Common.UIString('The breakpoint on line %d will stop only if this expres sion is true:', lineNumber + 1)); 626 Common.UIString('The breakpoint on line %d will stop only if this expres sion is true:', lineNumber + 1));
627 627
628 var editorElement = conditionElement.createChild('input', 'monospace'); 628 var editorElement = UI.createInput('monospace', 'text');
629 conditionElement.appendChild(editorElement);
629 editorElement.id = 'source-frame-breakpoint-condition'; 630 editorElement.id = 'source-frame-breakpoint-condition';
630 editorElement.type = 'text';
631 this._conditionEditorElement = editorElement; 631 this._conditionEditorElement = editorElement;
632 632
633 return conditionElement; 633 return conditionElement;
634 } 634 }
635 635
636 /** 636 /**
637 * @param {!Workspace.UILocation} uiLocation 637 * @param {!Workspace.UILocation} uiLocation
638 */ 638 */
639 setExecutionLocation(uiLocation) { 639 setExecutionLocation(uiLocation) {
640 this._executionLocation = uiLocation; 640 this._executionLocation = uiLocation;
(...skipping 1050 matching lines...) Expand 10 before | Expand all | Expand 10 after
1691 return; 1691 return;
1692 this.bookmark.clear(); 1692 this.bookmark.clear();
1693 this.bookmark = null; 1693 this.bookmark = null;
1694 } 1694 }
1695 }; 1695 };
1696 1696
1697 Sources.JavaScriptSourceFrame.BreakpointDecoration.bookmarkSymbol = Symbol('book mark'); 1697 Sources.JavaScriptSourceFrame.BreakpointDecoration.bookmarkSymbol = Symbol('book mark');
1698 Sources.JavaScriptSourceFrame.BreakpointDecoration._elementSymbolForTest = Symbo l('element'); 1698 Sources.JavaScriptSourceFrame.BreakpointDecoration._elementSymbolForTest = Symbo l('element');
1699 1699
1700 Sources.JavaScriptSourceFrame.continueToLocationDecorationSymbol = Symbol('bookm ark'); 1700 Sources.JavaScriptSourceFrame.continueToLocationDecorationSymbol = Symbol('bookm ark');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698