Chromium Code Reviews| 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 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 609 // based on the value defined in ui/events/keycodes/dom4/keycode_converter_d ata.h. | 609 // based on the value defined in ui/events/keycodes/dom4/keycode_converter_d ata.h. |
| 610 // Returns null string, if DOM code value is not found. | 610 // Returns null string, if DOM code value is not found. |
| 611 virtual WebString domCodeStringFromEnum(int domCode) { return WebString(); } | 611 virtual WebString domCodeStringFromEnum(int domCode) { return WebString(); } |
| 612 | 612 |
| 613 // This method converts from the suppled DOM code value to the | 613 // This method converts from the suppled DOM code value to the |
| 614 // embedder's DOM code enum for the key pressed. |codeString| is defined in | 614 // embedder's DOM code enum for the key pressed. |codeString| is defined in |
| 615 // ui/events/keycodes/dom4/keycode_converter_data.h. | 615 // ui/events/keycodes/dom4/keycode_converter_data.h. |
| 616 // Returns 0, if DOM code enum is not found. | 616 // Returns 0, if DOM code enum is not found. |
| 617 virtual int domEnumFromCodeString(const WebString& codeString) { return 0; } | 617 virtual int domEnumFromCodeString(const WebString& codeString) { return 0; } |
| 618 | 618 |
| 619 // This method converts from the supplied DOM |key| enum to the | |
| 620 // corresponding DOM |key| string value for the key pressed. |domKey| values are | |
| 621 // based on the value defined in ui/events/keycodes/dom3/dom_key_data.h. | |
| 622 // Returns empty string, if DOM key value is not found. | |
| 623 virtual WebString domKeyStringFromEnum(int domKey) { return WebString(); } | |
|
Rick Byers
2015/04/20 19:49:46
Since this feature is 'experimental' I assume it's
Habib Virji
2015/04/29 16:00:50
Yes Rick, i will be working this week to push all
| |
| 624 | |
| 625 // This method converts from the suppled DOM |key| value to the | |
| 626 // embedder's DOM |key| enum for the key pressed. |keyString| is defined in | |
| 627 // ui/events/keycodes/dom3/dom_key_data.h. | |
| 628 // Returns 0 if DOM key enum is not found. | |
| 629 virtual int domKeyEnumFromString(const WebString& keyString) { return 0; } | |
| 630 | |
| 619 // Quota ----------------------------------------------------------- | 631 // Quota ----------------------------------------------------------- |
| 620 | 632 |
| 621 // Queries the storage partition's storage usage and quota information. | 633 // Queries the storage partition's storage usage and quota information. |
| 622 // WebStorageQuotaCallbacks::didQueryStorageUsageAndQuota will be called | 634 // WebStorageQuotaCallbacks::didQueryStorageUsageAndQuota will be called |
| 623 // with the current usage and quota information for the partition. When | 635 // with the current usage and quota information for the partition. When |
| 624 // an error occurs WebStorageQuotaCallbacks::didFail is called with an | 636 // an error occurs WebStorageQuotaCallbacks::didFail is called with an |
| 625 // error code. | 637 // error code. |
| 626 virtual void queryStorageUsageAndQuota( | 638 virtual void queryStorageUsageAndQuota( |
| 627 const WebURL& storagePartition, | 639 const WebURL& storagePartition, |
| 628 WebStorageQuotaType, | 640 WebStorageQuotaType, |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 662 protected: | 674 protected: |
| 663 BLINK_PLATFORM_EXPORT Platform(); | 675 BLINK_PLATFORM_EXPORT Platform(); |
| 664 virtual ~Platform() { } | 676 virtual ~Platform() { } |
| 665 | 677 |
| 666 WebThread* m_mainThread; | 678 WebThread* m_mainThread; |
| 667 }; | 679 }; |
| 668 | 680 |
| 669 } // namespace blink | 681 } // namespace blink |
| 670 | 682 |
| 671 #endif | 683 #endif |
| OLD | NEW |