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