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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 namespace blink { | 54 namespace blink { |
55 | 55 |
56 class WebAudioBus; | 56 class WebAudioBus; |
57 class WebBlobRegistry; | 57 class WebBlobRegistry; |
58 class WebContentDecryptionModule; | 58 class WebContentDecryptionModule; |
59 class WebClipboard; | 59 class WebClipboard; |
60 class WebCompositorSupport; | 60 class WebCompositorSupport; |
61 class WebCookieJar; | 61 class WebCookieJar; |
62 class WebCrypto; | 62 class WebCrypto; |
63 class WebDatabaseObserver; | 63 class WebDatabaseObserver; |
| 64 class WebDeviceLightListener; |
64 class WebDeviceMotionListener; | 65 class WebDeviceMotionListener; |
65 class WebDeviceOrientationListener; | 66 class WebDeviceOrientationListener; |
66 class WebDiscardableMemory; | 67 class WebDiscardableMemory; |
67 class WebFallbackThemeEngine; | 68 class WebFallbackThemeEngine; |
68 class WebFileSystem; | 69 class WebFileSystem; |
69 class WebFileUtilities; | 70 class WebFileUtilities; |
70 class WebFlingAnimator; | 71 class WebFlingAnimator; |
71 class WebGestureCurveTarget; | 72 class WebGestureCurveTarget; |
72 class WebGestureCurve; | 73 class WebGestureCurve; |
73 class WebGraphicsContext3DProvider; | 74 class WebGraphicsContext3DProvider; |
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
596 | 597 |
597 virtual void didStartWorkerRunLoop(const WebWorkerRunLoop&) { } | 598 virtual void didStartWorkerRunLoop(const WebWorkerRunLoop&) { } |
598 virtual void didStopWorkerRunLoop(const WebWorkerRunLoop&) { } | 599 virtual void didStopWorkerRunLoop(const WebWorkerRunLoop&) { } |
599 | 600 |
600 | 601 |
601 // WebCrypto ---------------------------------------------------------- | 602 // WebCrypto ---------------------------------------------------------- |
602 | 603 |
603 virtual WebCrypto* crypto() { return 0; } | 604 virtual WebCrypto* crypto() { return 0; } |
604 | 605 |
605 | 606 |
606 // Device Motion / Orientation ---------------------------------------- | 607 // Device Motion / Orientation / Light -------------------------------------
--- |
607 | 608 |
608 // Sets a Listener to listen for device motion data updates. | 609 // Sets a Listener to listen for device motion data updates. |
609 // If null, the platform stops providing device motion data to the current l
istener. | 610 // If null, the platform stops providing device motion data to the current l
istener. |
610 virtual void setDeviceMotionListener(blink::WebDeviceMotionListener*) { } | 611 virtual void setDeviceMotionListener(blink::WebDeviceMotionListener*) { } |
611 | 612 |
612 // Sets a Listener to listen for device orientation data updates. | 613 // Sets a Listener to listen for device orientation data updates. |
613 // If null, the platform stops proving device orientation data to the curren
t listener. | 614 // If null, the platform stops providing device orientation data to the curr
ent listener. |
614 virtual void setDeviceOrientationListener(blink::WebDeviceOrientationListene
r*) { } | 615 virtual void setDeviceOrientationListener(blink::WebDeviceOrientationListene
r*) { } |
615 | 616 |
| 617 // Sets a Listener to listen for device light data updates. |
| 618 // If null, the platform stops providing device light data to the current li
stener. |
| 619 virtual void setDeviceLightListener(blink::WebDeviceLightListener*) { } |
| 620 |
| 621 |
616 // Screen Orientation ------------------------------------------------- | 622 // Screen Orientation ------------------------------------------------- |
617 | 623 |
618 virtual void setScreenOrientationListener(blink::WebScreenOrientationListene
r*) { } | 624 virtual void setScreenOrientationListener(blink::WebScreenOrientationListene
r*) { } |
619 virtual void lockOrientation(WebScreenOrientations) { } | 625 virtual void lockOrientation(WebScreenOrientations) { } |
620 virtual void unlockOrientation() { } | 626 virtual void unlockOrientation() { } |
621 | 627 |
622 | 628 |
623 // Quota ----------------------------------------------------------- | 629 // Quota ----------------------------------------------------------- |
624 | 630 |
625 // Queries the storage partition's storage usage and quota information. | 631 // Queries the storage partition's storage usage and quota information. |
(...skipping 12 matching lines...) Expand all Loading... |
638 virtual WebDatabaseObserver* databaseObserver() { return 0; } | 644 virtual WebDatabaseObserver* databaseObserver() { return 0; } |
639 | 645 |
640 | 646 |
641 protected: | 647 protected: |
642 virtual ~Platform() { } | 648 virtual ~Platform() { } |
643 }; | 649 }; |
644 | 650 |
645 } // namespace blink | 651 } // namespace blink |
646 | 652 |
647 #endif | 653 #endif |
OLD | NEW |