OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 29 matching lines...) Expand all Loading... |
40 | 40 |
41 struct IDBVersionChangeEventInit : public EventInit { | 41 struct IDBVersionChangeEventInit : public EventInit { |
42 IDBVersionChangeEventInit(); | 42 IDBVersionChangeEventInit(); |
43 | 43 |
44 unsigned long long oldVersion; | 44 unsigned long long oldVersion; |
45 Nullable<unsigned long long> newVersion; | 45 Nullable<unsigned long long> newVersion; |
46 String dataLoss; | 46 String dataLoss; |
47 }; | 47 }; |
48 | 48 |
49 class IDBVersionChangeEvent FINAL : public Event { | 49 class IDBVersionChangeEvent FINAL : public Event { |
| 50 DEFINE_WRAPPERTYPEINFO(); |
50 public: | 51 public: |
51 static PassRefPtrWillBeRawPtr<IDBVersionChangeEvent> create() | 52 static PassRefPtrWillBeRawPtr<IDBVersionChangeEvent> create() |
52 { | 53 { |
53 return adoptRefWillBeNoop(new IDBVersionChangeEvent()); | 54 return adoptRefWillBeNoop(new IDBVersionChangeEvent()); |
54 } | 55 } |
55 static PassRefPtrWillBeRawPtr<IDBVersionChangeEvent> create(const AtomicStri
ng& eventType, unsigned long long oldVersion, const Nullable<unsigned long long>
& newVersion, WebIDBDataLoss dataLoss = WebIDBDataLossNone, const String& dataLo
ssMessage = String()) | 56 static PassRefPtrWillBeRawPtr<IDBVersionChangeEvent> create(const AtomicStri
ng& eventType, unsigned long long oldVersion, const Nullable<unsigned long long>
& newVersion, WebIDBDataLoss dataLoss = WebIDBDataLossNone, const String& dataLo
ssMessage = String()) |
56 { | 57 { |
57 return adoptRefWillBeNoop(new IDBVersionChangeEvent(eventType, oldVersio
n, newVersion, dataLoss, dataLossMessage)); | 58 return adoptRefWillBeNoop(new IDBVersionChangeEvent(eventType, oldVersio
n, newVersion, dataLoss, dataLossMessage)); |
58 } | 59 } |
59 static PassRefPtrWillBeRawPtr<IDBVersionChangeEvent> create(const AtomicStri
ng& eventType, const IDBVersionChangeEventInit& initializer) | 60 static PassRefPtrWillBeRawPtr<IDBVersionChangeEvent> create(const AtomicStri
ng& eventType, const IDBVersionChangeEventInit& initializer) |
(...skipping 18 matching lines...) Expand all Loading... |
78 | 79 |
79 unsigned long long m_oldVersion; | 80 unsigned long long m_oldVersion; |
80 Nullable<unsigned long long> m_newVersion; | 81 Nullable<unsigned long long> m_newVersion; |
81 WebIDBDataLoss m_dataLoss; | 82 WebIDBDataLoss m_dataLoss; |
82 String m_dataLossMessage; | 83 String m_dataLossMessage; |
83 }; | 84 }; |
84 | 85 |
85 } // namespace blink | 86 } // namespace blink |
86 | 87 |
87 #endif // IDBVersionChangeEvent_h | 88 #endif // IDBVersionChangeEvent_h |
OLD | NEW |