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

Side by Side Diff: Source/devtools/front_end/screencast/ScreencastView.js

Issue 1311783003: Devtools[LayoutEditor]: Rework layout-editor workflow (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@resize
Patch Set: Created 5 years, 4 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 661 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 const gutterSize = 30; 672 const gutterSize = 30;
673 const bordersSize = WebInspector.ScreencastView._bordersSize; 673 const bordersSize = WebInspector.ScreencastView._bordersSize;
674 var width = this.element.offsetWidth - bordersSize - gutterSize; 674 var width = this.element.offsetWidth - bordersSize - gutterSize;
675 var height = this.element.offsetHeight - bordersSize - gutterSize - WebI nspector.ScreencastView._navBarHeight; 675 var height = this.element.offsetHeight - bordersSize - gutterSize - WebI nspector.ScreencastView._navBarHeight;
676 return { width: width, height: height }; 676 return { width: width, height: height };
677 }, 677 },
678 678
679 /** 679 /**
680 * @override 680 * @override
681 * @param {boolean} enabled 681 * @param {boolean} enabled
682 * @param {boolean} inspectUAShadowDOM 682 * @param {?string} mode
683 * @param {!DOMAgent.HighlightConfig} config 683 * @param {!DOMAgent.HighlightConfig} config
684 * @param {function(?Protocol.Error)=} callback 684 * @param {function(?Protocol.Error)=} callback
685 */ 685 */
686 setInspectModeEnabled: function(enabled, inspectUAShadowDOM, config, callbac k) 686 setInspectModeEnabled: function(enabled, mode, config, callback)
687 { 687 {
688 this._inspectModeConfig = enabled ? config : null; 688 this._inspectModeConfig = enabled ? config : null;
689 if (callback) 689 if (callback)
690 callback(null); 690 callback(null);
691 }, 691 },
692 692
693 /** 693 /**
694 * @override 694 * @override
695 * @param {!PageAgent.FrameId} frameId 695 * @param {!PageAgent.FrameId} frameId
696 */ 696 */
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
878 return; 878 return;
879 this._maxDisplayedProgress = progress; 879 this._maxDisplayedProgress = progress;
880 this._displayProgress(progress); 880 this._displayProgress(progress);
881 }, 881 },
882 882
883 _displayProgress: function(progress) 883 _displayProgress: function(progress)
884 { 884 {
885 this._element.style.width = (100 * progress) + "%"; 885 this._element.style.width = (100 * progress) + "%";
886 } 886 }
887 }; 887 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698