| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 var deviceOrientation = WebInspector.OverridesSupport.DeviceOrientation.
parseSetting(WebInspector.settings.deviceOrientationOverride.get()); | 525 var deviceOrientation = WebInspector.OverridesSupport.DeviceOrientation.
parseSetting(WebInspector.settings.deviceOrientationOverride.get()); |
| 526 PageAgent.setDeviceOrientationOverride(deviceOrientation.alpha, deviceOr
ientation.beta, deviceOrientation.gamma); | 526 PageAgent.setDeviceOrientationOverride(deviceOrientation.alpha, deviceOr
ientation.beta, deviceOrientation.gamma); |
| 527 this.maybeHasActiveOverridesChanged(); | 527 this.maybeHasActiveOverridesChanged(); |
| 528 }, | 528 }, |
| 529 | 529 |
| 530 _emulateTouchEventsChanged: function() | 530 _emulateTouchEventsChanged: function() |
| 531 { | 531 { |
| 532 if (WebInspector.OverridesSupport.isInspectingDevice() && WebInspector.s
ettings.emulateTouchEvents.get()) | 532 if (WebInspector.OverridesSupport.isInspectingDevice() && WebInspector.s
ettings.emulateTouchEvents.get()) |
| 533 return; | 533 return; |
| 534 | 534 |
| 535 WebInspector.domAgent.emulateTouchEventObjects(WebInspector.settings.emu
lateTouchEvents.get()); | 535 WebInspector.domModel.emulateTouchEventObjects(WebInspector.settings.emu
lateTouchEvents.get()); |
| 536 this.maybeHasActiveOverridesChanged(); | 536 this.maybeHasActiveOverridesChanged(); |
| 537 }, | 537 }, |
| 538 | 538 |
| 539 _cssMediaChanged: function() | 539 _cssMediaChanged: function() |
| 540 { | 540 { |
| 541 PageAgent.setEmulatedMedia(WebInspector.settings.overrideCSSMedia.get()
? WebInspector.settings.emulatedCSSMedia.get() : ""); | 541 PageAgent.setEmulatedMedia(WebInspector.settings.overrideCSSMedia.get()
? WebInspector.settings.emulatedCSSMedia.get() : ""); |
| 542 WebInspector.cssModel.mediaQueryResultChanged(); | 542 WebInspector.cssModel.mediaQueryResultChanged(); |
| 543 this.maybeHasActiveOverridesChanged(); | 543 this.maybeHasActiveOverridesChanged(); |
| 544 }, | 544 }, |
| 545 | 545 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 }, | 595 }, |
| 596 | 596 |
| 597 __proto__: WebInspector.Object.prototype | 597 __proto__: WebInspector.Object.prototype |
| 598 } | 598 } |
| 599 | 599 |
| 600 | 600 |
| 601 /** | 601 /** |
| 602 * @type {!WebInspector.OverridesSupport} | 602 * @type {!WebInspector.OverridesSupport} |
| 603 */ | 603 */ |
| 604 WebInspector.overridesSupport; | 604 WebInspector.overridesSupport; |
| OLD | NEW |