Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(235)

Side by Side Diff: public/platform/Platform.h

Issue 933323002: Add experimental Support for DOM3 KeyboardEvent key value (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added BugId for fixing lazy initialization Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 611 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 // based on the value defined in ui/events/keycodes/dom4/keycode_converter_d ata.h. 622 // based on the value defined in ui/events/keycodes/dom4/keycode_converter_d ata.h.
623 // Returns null string, if DOM code value is not found. 623 // Returns null string, if DOM code value is not found.
624 virtual WebString domCodeStringFromEnum(int domCode) { return WebString(); } 624 virtual WebString domCodeStringFromEnum(int domCode) { return WebString(); }
625 625
626 // This method converts from the suppled DOM code value to the 626 // This method converts from the suppled DOM code value to the
627 // embedder's DOM code enum for the key pressed. |codeString| is defined in 627 // embedder's DOM code enum for the key pressed. |codeString| is defined in
628 // ui/events/keycodes/dom4/keycode_converter_data.h. 628 // ui/events/keycodes/dom4/keycode_converter_data.h.
629 // Returns 0, if DOM code enum is not found. 629 // Returns 0, if DOM code enum is not found.
630 virtual int domEnumFromCodeString(const WebString& codeString) { return 0; } 630 virtual int domEnumFromCodeString(const WebString& codeString) { return 0; }
631 631
632 // This method converts from the supplied DOM |key| enum to the
633 // corresponding DOM |key| string value for the key pressed. |domKey| values are
634 // based on the value defined in ui/events/keycodes/dom3/dom_key_data.h.
635 // Returns empty string, if DOM key value is not found.
636 virtual WebString domKeyStringFromEnum(int domKey) { return WebString(); }
637
638 // This method converts from the suppled DOM |key| value to the
639 // embedder's DOM |key| enum for the key pressed. |keyString| is defined in
640 // ui/events/keycodes/dom3/dom_key_data.h.
641 // Returns 0 if DOM key enum is not found.
642 virtual int domKeyEnumFromString(const WebString& keyString) { return 0; }
643
632 // Quota ----------------------------------------------------------- 644 // Quota -----------------------------------------------------------
633 645
634 // Queries the storage partition's storage usage and quota information. 646 // Queries the storage partition's storage usage and quota information.
635 // WebStorageQuotaCallbacks::didQueryStorageUsageAndQuota will be called 647 // WebStorageQuotaCallbacks::didQueryStorageUsageAndQuota will be called
636 // with the current usage and quota information for the partition. When 648 // with the current usage and quota information for the partition. When
637 // an error occurs WebStorageQuotaCallbacks::didFail is called with an 649 // an error occurs WebStorageQuotaCallbacks::didFail is called with an
638 // error code. 650 // error code.
639 virtual void queryStorageUsageAndQuota( 651 virtual void queryStorageUsageAndQuota(
640 const WebURL& storagePartition, 652 const WebURL& storagePartition,
641 WebStorageQuotaType, 653 WebStorageQuotaType,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 protected: 696 protected:
685 BLINK_PLATFORM_EXPORT Platform(); 697 BLINK_PLATFORM_EXPORT Platform();
686 virtual ~Platform() { } 698 virtual ~Platform() { }
687 699
688 WebThread* m_mainThread; 700 WebThread* m_mainThread;
689 }; 701 };
690 702
691 } // namespace blink 703 } // namespace blink
692 704
693 #endif 705 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698