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 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
633 | 633 |
634 // WebDatabase -------------------------------------------------------- | 634 // WebDatabase -------------------------------------------------------- |
635 | 635 |
636 virtual WebDatabaseObserver* databaseObserver() { return 0; } | 636 virtual WebDatabaseObserver* databaseObserver() { return 0; } |
637 | 637 |
638 | 638 |
639 // Web Notifications -------------------------------------------------- | 639 // Web Notifications -------------------------------------------------- |
640 | 640 |
641 virtual WebNotificationPresenter* notificationPresenter() { return 0; } | 641 virtual WebNotificationPresenter* notificationPresenter() { return 0; } |
642 | 642 |
643 // Screen Orientation ------------------------------------------------- | |
644 | |
645 // Informs the platform that if it requires a specific observer to run in | |
646 // order to know the screen orientation accurately, it should be started. | |
647 // This call is expected to happen as soon as a WebFrame starts using the | |
648 // Screen Orientation API. | |
649 // Most implementations are expected to do nothing. | |
650 virtual void startScreenOrientationListening() { } | |
651 | |
652 // Informs the platform that if it requires a specific observer to run in | |
653 // order to know the screen orientation, it can be stopped. | |
654 // This call is expected to happen as soon as a WebFrame using the Screen | |
655 // Orientation no longer uses it. It is up to the platform to make sure that | |
656 // no other consumers are still expecting accurate values. | |
657 // Most implementations are expected to do nothing. | |
658 virtual void stopScreenOrientationListening() { } | |
659 | |
abarth-chromium
2014/07/16 17:12:17
The way we've done this for other APIs is to set a
| |
643 | 660 |
644 protected: | 661 protected: |
645 virtual ~Platform() { } | 662 virtual ~Platform() { } |
646 }; | 663 }; |
647 | 664 |
648 } // namespace blink | 665 } // namespace blink |
649 | 666 |
650 #endif | 667 #endif |
OLD | NEW |