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 24 matching lines...) Expand all Loading... |
35 #include <windows.h> | 35 #include <windows.h> |
36 #endif | 36 #endif |
37 | 37 |
38 #include "WebAudioDevice.h" | 38 #include "WebAudioDevice.h" |
39 #include "WebCommon.h" | 39 #include "WebCommon.h" |
40 #include "WebData.h" | 40 #include "WebData.h" |
41 #include "WebGamepadListener.h" | 41 #include "WebGamepadListener.h" |
42 #include "WebGamepads.h" | 42 #include "WebGamepads.h" |
43 #include "WebGraphicsContext3D.h" | 43 #include "WebGraphicsContext3D.h" |
44 #include "WebLocalizedString.h" | 44 #include "WebLocalizedString.h" |
| 45 // FIXME: WebScreenOrientation.h is only needed because Chrome assumes it is the
re. |
45 #include "WebScreenOrientation.h" | 46 #include "WebScreenOrientation.h" |
| 47 #include "WebScreenOrientationLockType.h" |
46 #include "WebSpeechSynthesizer.h" | 48 #include "WebSpeechSynthesizer.h" |
47 #include "WebStorageQuotaCallbacks.h" | 49 #include "WebStorageQuotaCallbacks.h" |
48 #include "WebStorageQuotaType.h" | 50 #include "WebStorageQuotaType.h" |
49 #include "WebString.h" | 51 #include "WebString.h" |
50 #include "WebURLError.h" | 52 #include "WebURLError.h" |
51 #include "WebVector.h" | 53 #include "WebVector.h" |
52 | 54 |
53 class GrContext; | 55 class GrContext; |
54 | 56 |
55 namespace blink { | 57 namespace blink { |
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
603 // If null, the platform stops providing device motion data to the current l
istener. | 605 // If null, the platform stops providing device motion data to the current l
istener. |
604 virtual void setDeviceMotionListener(blink::WebDeviceMotionListener*) { } | 606 virtual void setDeviceMotionListener(blink::WebDeviceMotionListener*) { } |
605 | 607 |
606 // Sets a Listener to listen for device orientation data updates. | 608 // 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. | 609 // If null, the platform stops proving device orientation data to the curren
t listener. |
608 virtual void setDeviceOrientationListener(blink::WebDeviceOrientationListene
r*) { } | 610 virtual void setDeviceOrientationListener(blink::WebDeviceOrientationListene
r*) { } |
609 | 611 |
610 // Screen Orientation ------------------------------------------------- | 612 // Screen Orientation ------------------------------------------------- |
611 | 613 |
612 virtual void setScreenOrientationListener(blink::WebScreenOrientationListene
r*) { } | 614 virtual void setScreenOrientationListener(blink::WebScreenOrientationListene
r*) { } |
613 virtual void lockOrientation(WebScreenOrientations) { } | 615 virtual void lockOrientation(WebScreenOrientationLockType) { } |
614 virtual void unlockOrientation() { } | 616 virtual void unlockOrientation() { } |
615 | 617 |
616 | 618 |
617 // Quota ----------------------------------------------------------- | 619 // Quota ----------------------------------------------------------- |
618 | 620 |
619 // Queries the storage partition's storage usage and quota information. | 621 // Queries the storage partition's storage usage and quota information. |
620 // WebStorageQuotaCallbacks::didQueryStorageUsageAndQuota will be called | 622 // WebStorageQuotaCallbacks::didQueryStorageUsageAndQuota will be called |
621 // with the current usage and quota information for the partition. When | 623 // with the current usage and quota information for the partition. When |
622 // an error occurs WebStorageQuotaCallbacks::didFail is called with an | 624 // an error occurs WebStorageQuotaCallbacks::didFail is called with an |
623 // error code. | 625 // error code. |
624 virtual void queryStorageUsageAndQuota( | 626 virtual void queryStorageUsageAndQuota( |
625 const WebURL& storagePartition, | 627 const WebURL& storagePartition, |
626 WebStorageQuotaType, | 628 WebStorageQuotaType, |
627 WebStorageQuotaCallbacks) { } | 629 WebStorageQuotaCallbacks) { } |
628 | 630 |
629 | 631 |
630 // WebDatabase -------------------------------------------------------- | 632 // WebDatabase -------------------------------------------------------- |
631 | 633 |
632 virtual WebDatabaseObserver* databaseObserver() { return 0; } | 634 virtual WebDatabaseObserver* databaseObserver() { return 0; } |
633 | 635 |
634 | 636 |
635 protected: | 637 protected: |
636 virtual ~Platform() { } | 638 virtual ~Platform() { } |
637 }; | 639 }; |
638 | 640 |
639 } // namespace blink | 641 } // namespace blink |
640 | 642 |
641 #endif | 643 #endif |
OLD | NEW |