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 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
597 // Device Orientation, Device Motion, Device Light, Battery, Gamepad. | 597 // Device Orientation, Device Motion, Device Light, Battery, Gamepad. |
598 | 598 |
599 // Request the platform to start listening to the events of the specified | 599 // Request the platform to start listening to the events of the specified |
600 // type and notify the given listener (if not null) when there is an update. | 600 // type and notify the given listener (if not null) when there is an update. |
601 virtual void startListening(WebPlatformEventType type, WebPlatformEventListe ner* listener) { } | 601 virtual void startListening(WebPlatformEventType type, WebPlatformEventListe ner* listener) { } |
602 | 602 |
603 // Request the platform to stop listening to the specified event and no | 603 // Request the platform to stop listening to the specified event and no |
604 // longer notify the listener, if any. | 604 // longer notify the listener, if any. |
605 virtual void stopListening(WebPlatformEventType type) { } | 605 virtual void stopListening(WebPlatformEventType type) { } |
606 | 606 |
607 // This method converts from the supplied DOM code enum to the | |
608 // embedder's DOM code value for the key pressed. |domCode| values are | |
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. | |
611 virtual WebString domCodeStringFromEnum(int domCode) { return WebString(); } | |
Mike West
2015/01/29 11:49:35
"DOM Code String" is ambiguous. Could you rename t
Habib Virji
2015/01/29 12:24:14
Will it be okay to rename them DOMKeyboardCodeStri
| |
612 | |
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 | |
615 // ui/events/keycodes/dom4/keycode_converter_data.h. | |
616 // Returns 0, if DOM code enum is not found. | |
617 virtual int domEnumFromCodeString(const WebString& codeString) { return 0; } | |
Mike West
2015/01/29 11:49:34
It's a bit strange that we're calling this an enum
Habib Virji
2015/01/29 12:24:14
We went through that discussion https://codereview
Rick Byers
2015/01/29 21:11:10
Yeah, I thought Wez's arguments for making it opaq
| |
618 | |
607 // Quota ----------------------------------------------------------- | 619 // Quota ----------------------------------------------------------- |
608 | 620 |
609 // Queries the storage partition's storage usage and quota information. | 621 // Queries the storage partition's storage usage and quota information. |
610 // WebStorageQuotaCallbacks::didQueryStorageUsageAndQuota will be called | 622 // WebStorageQuotaCallbacks::didQueryStorageUsageAndQuota will be called |
611 // with the current usage and quota information for the partition. When | 623 // with the current usage and quota information for the partition. When |
612 // an error occurs WebStorageQuotaCallbacks::didFail is called with an | 624 // an error occurs WebStorageQuotaCallbacks::didFail is called with an |
613 // error code. | 625 // error code. |
614 virtual void queryStorageUsageAndQuota( | 626 virtual void queryStorageUsageAndQuota( |
615 const WebURL& storagePartition, | 627 const WebURL& storagePartition, |
616 WebStorageQuotaType, | 628 WebStorageQuotaType, |
(...skipping 30 matching lines...) Expand all Loading... | |
647 | 659 |
648 virtual WebNavigatorConnectProvider* navigatorConnectProvider() { return 0; } | 660 virtual WebNavigatorConnectProvider* navigatorConnectProvider() { return 0; } |
649 | 661 |
650 protected: | 662 protected: |
651 virtual ~Platform() { } | 663 virtual ~Platform() { } |
652 }; | 664 }; |
653 | 665 |
654 } // namespace blink | 666 } // namespace blink |
655 | 667 |
656 #endif | 668 #endif |
OLD | NEW |