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 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 virtual void setDeviceMotionListener(blink::WebDeviceMotionListener*) { } | 610 virtual void setDeviceMotionListener(blink::WebDeviceMotionListener*) { } |
609 | 611 |
610 // Sets a Listener to listen for device orientation data updates. | 612 // Sets a Listener to listen for device orientation data updates. |
611 // If null, the platform stops proving device orientation data to the curren
t listener. | 613 // If null, the platform stops proving device orientation data to the curren
t listener. |
612 virtual void setDeviceOrientationListener(blink::WebDeviceOrientationListene
r*) { } | 614 virtual void setDeviceOrientationListener(blink::WebDeviceOrientationListene
r*) { } |
613 | 615 |
614 // Screen Orientation ------------------------------------------------- | 616 // Screen Orientation ------------------------------------------------- |
615 | 617 |
616 virtual void setScreenOrientationListener(blink::WebScreenOrientationListene
r*) { } | 618 virtual void setScreenOrientationListener(blink::WebScreenOrientationListene
r*) { } |
617 virtual void lockOrientation(WebScreenOrientations) { } | 619 virtual void lockOrientation(WebScreenOrientations) { } |
| 620 virtual void lockOrientation(WebScreenOrientationLockType) { } |
618 virtual void unlockOrientation() { } | 621 virtual void unlockOrientation() { } |
619 | 622 |
620 | 623 |
621 // Quota ----------------------------------------------------------- | 624 // Quota ----------------------------------------------------------- |
622 | 625 |
623 // Queries the storage partition's storage usage and quota information. | 626 // Queries the storage partition's storage usage and quota information. |
624 // WebStorageQuotaCallbacks::didQueryStorageUsageAndQuota will be called | 627 // WebStorageQuotaCallbacks::didQueryStorageUsageAndQuota will be called |
625 // with the current usage and quota information for the partition. When | 628 // with the current usage and quota information for the partition. When |
626 // an error occurs WebStorageQuotaCallbacks::didFail is called with an | 629 // an error occurs WebStorageQuotaCallbacks::didFail is called with an |
627 // error code. | 630 // error code. |
628 virtual void queryStorageUsageAndQuota( | 631 virtual void queryStorageUsageAndQuota( |
629 const WebURL& storagePartition, | 632 const WebURL& storagePartition, |
630 WebStorageQuotaType, | 633 WebStorageQuotaType, |
631 WebStorageQuotaCallbacks) { } | 634 WebStorageQuotaCallbacks) { } |
632 | 635 |
633 | 636 |
634 // WebDatabase -------------------------------------------------------- | 637 // WebDatabase -------------------------------------------------------- |
635 | 638 |
636 virtual WebDatabaseObserver* databaseObserver() { return 0; } | 639 virtual WebDatabaseObserver* databaseObserver() { return 0; } |
637 | 640 |
638 | 641 |
639 protected: | 642 protected: |
640 virtual ~Platform() { } | 643 virtual ~Platform() { } |
641 }; | 644 }; |
642 | 645 |
643 } // namespace blink | 646 } // namespace blink |
644 | 647 |
645 #endif | 648 #endif |
OLD | NEW |