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 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
619 // are based on the value defined in ui/events/keycodes/dom3/dom_key_data.h. | 619 // are based on the value defined in ui/events/keycodes/dom3/dom_key_data.h. |
620 // Returns empty string, if DOM key value is not found. | 620 // Returns empty string, if DOM key value is not found. |
621 virtual WebString DomKeyStringFromEnum(int dom_key) { return WebString(); } | 621 virtual WebString DomKeyStringFromEnum(int dom_key) { return WebString(); } |
622 | 622 |
623 // This method converts from the suppled DOM |key| value to the | 623 // This method converts from the suppled DOM |key| value to the |
624 // embedder's DOM |key| enum for the key pressed. |keyString| is defined in | 624 // embedder's DOM |key| enum for the key pressed. |keyString| is defined in |
625 // ui/events/keycodes/dom3/dom_key_data.h. | 625 // ui/events/keycodes/dom3/dom_key_data.h. |
626 // Returns 0 if DOM key enum is not found. | 626 // Returns 0 if DOM key enum is not found. |
627 virtual int DomKeyEnumFromString(const WebString& key_string) { return 0; } | 627 virtual int DomKeyEnumFromString(const WebString& key_string) { return 0; } |
628 | 628 |
| 629 // This method returns whether the specified |domKey| is a modifier key. |
| 630 // |domKey| values are based on the value defined in |
| 631 // ui/events/keycodes/dom3/dom_key_data.h. |
| 632 virtual bool IsDomKeyForModifier(int dom_key) { return false; } |
| 633 |
629 // Quota ----------------------------------------------------------- | 634 // Quota ----------------------------------------------------------- |
630 | 635 |
631 // Queries the storage partition's storage usage and quota information. | 636 // Queries the storage partition's storage usage and quota information. |
632 // WebStorageQuotaCallbacks::didQueryStorageUsageAndQuota will be called | 637 // WebStorageQuotaCallbacks::didQueryStorageUsageAndQuota will be called |
633 // with the current usage and quota information for the partition. When | 638 // with the current usage and quota information for the partition. When |
634 // an error occurs WebStorageQuotaCallbacks::didFail is called with an | 639 // an error occurs WebStorageQuotaCallbacks::didFail is called with an |
635 // error code. | 640 // error code. |
636 virtual void QueryStorageUsageAndQuota(const WebURL& storage_partition, | 641 virtual void QueryStorageUsageAndQuota(const WebURL& storage_partition, |
637 WebStorageQuotaType, | 642 WebStorageQuotaType, |
638 WebStorageQuotaCallbacks) {} | 643 WebStorageQuotaCallbacks) {} |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
690 protected: | 695 protected: |
691 Platform(); | 696 Platform(); |
692 virtual ~Platform() {} | 697 virtual ~Platform() {} |
693 | 698 |
694 WebThread* main_thread_; | 699 WebThread* main_thread_; |
695 }; | 700 }; |
696 | 701 |
697 } // namespace blink | 702 } // namespace blink |
698 | 703 |
699 #endif | 704 #endif |
OLD | NEW |