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

Unified Diff: public/platform/WebIDBTypes.h

Issue 19316002: Separate WebIDBKey type into separate header (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: also do WebIDBKeyPath types Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « public/platform/WebIDBKeyPath.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebIDBTypes.h
diff --git a/Source/modules/device_orientation/DeviceAcceleration.idl b/public/platform/WebIDBTypes.h
similarity index 76%
copy from Source/modules/device_orientation/DeviceAcceleration.idl
copy to public/platform/WebIDBTypes.h
index c4ff4a67e611f904d3f6a657a4a56849d015810b..f80d2fa904c9e5c7d713763c6df8189fe9b686b8 100644
--- a/Source/modules/device_orientation/DeviceAcceleration.idl
+++ b/public/platform/WebIDBTypes.h
@@ -23,10 +23,28 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-[
- NoInterfaceObject
-] interface DeviceAcceleration {
- readonly attribute double? x;
- readonly attribute double? y;
- readonly attribute double? z;
+#ifndef WebIDBTypes_h
+#define WebIDBTypes_h
+
+namespace WebKit {
+
+enum WebIDBKeyType {
+ WebIDBKeyTypeInvalid = 0,
+ WebIDBKeyTypeArray,
+ WebIDBKeyTypeString,
+ WebIDBKeyTypeDate,
+ WebIDBKeyTypeNumber,
+ WebIDBKeyTypeNull,
+ WebIDBKeyTypeMin,
+};
+
+enum WebIDBKeyPathType {
+ WebIDBKeyPathTypeNull = 0,
+ WebIDBKeyPathTypeString,
+ WebIDBKeyPathTypeArray,
};
+
+
+} // namespace WebKit
+
+#endif // WebIDBTypes_h
« no previous file with comments | « public/platform/WebIDBKeyPath.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698