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