| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 /** | 4 /** |
| 5 * @unrestricted | 5 * @unrestricted |
| 6 */ | 6 */ |
| 7 WebInspector.DeviceOrientation = class { | 7 WebInspector.DeviceOrientation = class { |
| 8 /** | 8 /** |
| 9 * @param {number} alpha | 9 * @param {number} alpha |
| 10 * @param {number} beta | 10 * @param {number} beta |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 apply() { | 66 apply() { |
| 67 for (var target of WebInspector.targetManager.targets(WebInspector.Target.Ca
pability.Browser)) | 67 for (var target of WebInspector.targetManager.targets(WebInspector.Target.Ca
pability.Browser)) |
| 68 target.deviceOrientationAgent().setDeviceOrientationOverride(this.alpha, t
his.beta, this.gamma); | 68 target.deviceOrientationAgent().setDeviceOrientationOverride(this.alpha, t
his.beta, this.gamma); |
| 69 } | 69 } |
| 70 | 70 |
| 71 clear() { | 71 clear() { |
| 72 for (var target of WebInspector.targetManager.targets(WebInspector.Target.Ca
pability.Browser)) | 72 for (var target of WebInspector.targetManager.targets(WebInspector.Target.Ca
pability.Browser)) |
| 73 target.deviceOrientationAgent().clearDeviceOrientationOverride(); | 73 target.deviceOrientationAgent().clearDeviceOrientationOverride(); |
| 74 } | 74 } |
| 75 }; | 75 }; |
| 76 | |
| 77 | |
| OLD | NEW |