Chromium Code Reviews| 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 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 636 // Sets a Listener to listen for device orientation data updates. | 636 // Sets a Listener to listen for device orientation data updates. |
| 637 // If null, the platform stops providing device orientation data to the curr ent listener. | 637 // If null, the platform stops providing device orientation data to the curr ent listener. |
| 638 virtual void setDeviceOrientationListener(blink::WebDeviceOrientationListene r*) { } | 638 virtual void setDeviceOrientationListener(blink::WebDeviceOrientationListene r*) { } |
| 639 | 639 |
| 640 // Sets a Listener to listen for device light data updates. | 640 // Sets a Listener to listen for device light data updates. |
| 641 // If null, the platform stops providing device light data to the current li stener. | 641 // If null, the platform stops providing device light data to the current li stener. |
| 642 virtual void setDeviceLightListener(blink::WebDeviceLightListener*) { } | 642 virtual void setDeviceLightListener(blink::WebDeviceLightListener*) { } |
| 643 | 643 |
| 644 | 644 |
| 645 // Screen Orientation ------------------------------------------------- | 645 // Screen Orientation ------------------------------------------------- |
| 646 // FIXME: this is meant to be removed when the content layer will be updated . | |
| 646 | 647 |
| 647 virtual void setScreenOrientationListener(blink::WebScreenOrientationListene r*) { } | |
|
Inactive
2014/06/03 18:04:53
So this is no longer overridden on Chromium side?
mlamouri (slow - plz ping)
2014/06/03 19:49:30
It is. But it is no longer used. My content/ patch
| |
| 648 virtual void lockOrientation(WebScreenOrientationLockType) { } | 648 virtual void lockOrientation(WebScreenOrientationLockType) { } |
| 649 // Request a screen orientation lock and pass a |callback| object to be used | 649 // Request a screen orientation lock and pass a |callback| object to be used |
| 650 // to notify of success/failure. The |callback| parameter is expected to be | 650 // to notify of success/failure. The |callback| parameter is expected to be |
| 651 // owned by the implementation. | 651 // owned by the implementation. |
| 652 virtual void lockOrientation(WebScreenOrientationLockType orientation, WebLo ckOrientationCallback* callback) | 652 virtual void lockOrientation(WebScreenOrientationLockType orientation, WebLo ckOrientationCallback* callback) |
| 653 { | 653 { |
| 654 // FIXME: remove this when | 654 // FIXME: remove this when |
| 655 // lockOrientation(orientation, callback) will be handled in Chromium. | 655 // lockOrientation(orientation, callback) will be handled in Chromium. |
| 656 lockOrientation(orientation); | 656 lockOrientation(orientation); |
| 657 | 657 |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 678 virtual WebDatabaseObserver* databaseObserver() { return 0; } | 678 virtual WebDatabaseObserver* databaseObserver() { return 0; } |
| 679 | 679 |
| 680 | 680 |
| 681 protected: | 681 protected: |
| 682 virtual ~Platform() { } | 682 virtual ~Platform() { } |
| 683 }; | 683 }; |
| 684 | 684 |
| 685 } // namespace blink | 685 } // namespace blink |
| 686 | 686 |
| 687 #endif | 687 #endif |
| OLD | NEW |