| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 * @param {function()} callback | 104 * @param {function()} callback |
| 105 */ | 105 */ |
| 106 setIsDocked(isDocked, callback) { | 106 setIsDocked(isDocked, callback) { |
| 107 setTimeout(callback, 0); | 107 setTimeout(callback, 0); |
| 108 } | 108 } |
| 109 | 109 |
| 110 /** | 110 /** |
| 111 * Requests inspected page to be placed atop of the inspector frontend with sp
ecified bounds. | 111 * Requests inspected page to be placed atop of the inspector frontend with sp
ecified bounds. |
| 112 * @override | 112 * @override |
| 113 * @param {{x: number, y: number, width: number, height: number}} bounds | 113 * @param {{x: number, y: number, width: number, height: number}} bounds |
| 114 * @param {boolean=} force |
| 114 */ | 115 */ |
| 115 setInspectedPageBounds(bounds) { | 116 setInspectedPageBounds(bounds, force) { |
| 116 } | 117 } |
| 117 | 118 |
| 118 /** | 119 /** |
| 119 * @override | 120 * @override |
| 120 */ | 121 */ |
| 121 inspectElementCompleted() { | 122 inspectElementCompleted() { |
| 122 } | 123 } |
| 123 | 124 |
| 124 /** | 125 /** |
| 125 * @override | 126 * @override |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 * @return {boolean} | 542 * @return {boolean} |
| 542 */ | 543 */ |
| 543 Host.isUnderTest = function(prefs) { | 544 Host.isUnderTest = function(prefs) { |
| 544 if (InspectorFrontendHost.isUnderTest()) | 545 if (InspectorFrontendHost.isUnderTest()) |
| 545 return true; | 546 return true; |
| 546 | 547 |
| 547 if (prefs) | 548 if (prefs) |
| 548 return prefs['isUnderTest'] === 'true'; | 549 return prefs['isUnderTest'] === 'true'; |
| 549 return Common.settings.createSetting('isUnderTest', false).get(); | 550 return Common.settings.createSetting('isUnderTest', false).get(); |
| 550 }; | 551 }; |
| OLD | NEW |