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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/screencast/ScreencastView.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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 return context.createPattern(pattern, 'repeat'); 596 return context.createPattern(pattern, 'repeat');
597 } 597 }
598 598
599 _createNavigationBar() { 599 _createNavigationBar() {
600 this._navigationBar = this.element.createChild('div', 'screencast-navigation '); 600 this._navigationBar = this.element.createChild('div', 'screencast-navigation ');
601 this._navigationBack = this._navigationBar.createChild('button', 'back'); 601 this._navigationBack = this._navigationBar.createChild('button', 'back');
602 this._navigationBack.disabled = true; 602 this._navigationBack.disabled = true;
603 this._navigationForward = this._navigationBar.createChild('button', 'forward '); 603 this._navigationForward = this._navigationBar.createChild('button', 'forward ');
604 this._navigationForward.disabled = true; 604 this._navigationForward.disabled = true;
605 this._navigationReload = this._navigationBar.createChild('button', 'reload') ; 605 this._navigationReload = this._navigationBar.createChild('button', 'reload') ;
606 this._navigationUrl = this._navigationBar.createChild('input'); 606 this._navigationUrl = UI.createInput();
607 this._navigationBar.appendChild(this._navigationUrl);
607 this._navigationUrl.type = 'text'; 608 this._navigationUrl.type = 'text';
608 this._navigationProgressBar = new Screencast.ScreencastView.ProgressTracker( 609 this._navigationProgressBar = new Screencast.ScreencastView.ProgressTracker(
609 this._resourceTreeModel, this._networkManager, this._navigationBar.creat eChild('div', 'progress')); 610 this._resourceTreeModel, this._networkManager, this._navigationBar.creat eChild('div', 'progress'));
610 611
611 if (this._resourceTreeModel) { 612 if (this._resourceTreeModel) {
612 this._navigationBack.addEventListener('click', this._navigateToHistoryEntr y.bind(this, -1), false); 613 this._navigationBack.addEventListener('click', this._navigateToHistoryEntr y.bind(this, -1), false);
613 this._navigationForward.addEventListener('click', this._navigateToHistoryE ntry.bind(this, 1), false); 614 this._navigationForward.addEventListener('click', this._navigateToHistoryE ntry.bind(this, 1), false);
614 this._navigationReload.addEventListener('click', this._navigateReload.bind (this), false); 615 this._navigationReload.addEventListener('click', this._navigateReload.bind (this), false);
615 this._navigationUrl.addEventListener('keyup', this._navigationUrlKeyUp.bin d(this), true); 616 this._navigationUrl.addEventListener('keyup', this._navigationUrlKeyUp.bin d(this), true);
616 this._requestNavigationHistory(); 617 this._requestNavigationHistory();
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
758 if (this._maxDisplayedProgress >= progress) 759 if (this._maxDisplayedProgress >= progress)
759 return; 760 return;
760 this._maxDisplayedProgress = progress; 761 this._maxDisplayedProgress = progress;
761 this._displayProgress(progress); 762 this._displayProgress(progress);
762 } 763 }
763 764
764 _displayProgress(progress) { 765 _displayProgress(progress) {
765 this._element.style.width = (100 * progress) + '%'; 766 this._element.style.width = (100 * progress) + '%';
766 } 767 }
767 }; 768 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698