| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 public: | 50 public: |
| 51 static PassRefPtrWillBeRawPtr<IDBVersionChangeEvent> create() | 51 static PassRefPtrWillBeRawPtr<IDBVersionChangeEvent> create() |
| 52 { | 52 { |
| 53 return adoptRefWillBeNoop(new IDBVersionChangeEvent()); | 53 return adoptRefWillBeNoop(new IDBVersionChangeEvent()); |
| 54 } | 54 } |
| 55 static PassRefPtrWillBeRawPtr<IDBVersionChangeEvent> create(const AtomicStri
ng& eventType, unsigned long long oldVersion, const Nullable<unsigned long long>
& newVersion, blink::WebIDBDataLoss dataLoss = blink::WebIDBDataLossNone, const
String& dataLossMessage = String()) | 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 { | 56 { |
| 57 return adoptRefWillBeNoop(new IDBVersionChangeEvent(eventType, oldVersio
n, newVersion, dataLoss, dataLossMessage)); | 57 return adoptRefWillBeNoop(new IDBVersionChangeEvent(eventType, oldVersio
n, newVersion, dataLoss, dataLossMessage)); |
| 58 } | 58 } |
| 59 static PassRefPtrWillBeRawPtr<IDBVersionChangeEvent> create(const AtomicStri
ng& eventType, const IDBVersionChangeEventInit& initializer) | 59 static PassRefPtrWillBeRawPtr<IDBVersionChangeEvent> create(const AtomicStri
ng& eventType, const IDBVersionChangeEventInit& initializer) |
| 60 { | 60 { |
| 61 return adoptRefWillBeNoop(new IDBVersionChangeEvent(eventType, initializ
er)); | 61 return adoptRefWillBeNoop(new IDBVersionChangeEvent(eventType, initializ
er)); |
| 62 } | 62 } |
| 63 | 63 |
| 64 unsigned long long oldVersion() const { return m_oldVersion; } | 64 unsigned long long oldVersion() const { return m_oldVersion; } |
| 65 unsigned long long newVersion(bool& isNull) const; | 65 unsigned long long newVersion(bool& isNull) const; |
| 66 | 66 |
| 67 const AtomicString& dataLoss() const; | 67 const AtomicString& dataLoss() const; |
| 68 const String& dataLossMessage() const { return m_dataLossMessage; } | 68 const String& dataLossMessage() const { return m_dataLossMessage; } |
| 69 | 69 |
| 70 virtual const AtomicString& interfaceName() const OVERRIDE; | 70 virtual const AtomicString& interfaceName() const OVERRIDE; |
| 71 | 71 |
| 72 virtual void trace(Visitor*) OVERRIDE; | 72 virtual void trace(Visitor*) OVERRIDE; |
| 73 | 73 |
| 74 private: | 74 private: |
| 75 IDBVersionChangeEvent(); | 75 IDBVersionChangeEvent(); |
| 76 IDBVersionChangeEvent(const AtomicString& eventType, unsigned long long oldV
ersion, const Nullable<unsigned long long>& newVersion, blink::WebIDBDataLoss, c
onst String& dataLoss); | 76 IDBVersionChangeEvent(const AtomicString& eventType, unsigned long long oldV
ersion, const Nullable<unsigned long long>& newVersion, WebIDBDataLoss, const St
ring& dataLoss); |
| 77 IDBVersionChangeEvent(const AtomicString& eventType, const IDBVersionChangeE
ventInit&); | 77 IDBVersionChangeEvent(const AtomicString& eventType, const IDBVersionChangeE
ventInit&); |
| 78 | 78 |
| 79 unsigned long long m_oldVersion; | 79 unsigned long long m_oldVersion; |
| 80 Nullable<unsigned long long> m_newVersion; | 80 Nullable<unsigned long long> m_newVersion; |
| 81 blink::WebIDBDataLoss m_dataLoss; | 81 WebIDBDataLoss m_dataLoss; |
| 82 String m_dataLossMessage; | 82 String m_dataLossMessage; |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 } // namespace blink | 85 } // namespace blink |
| 86 | 86 |
| 87 #endif // IDBVersionChangeEvent_h | 87 #endif // IDBVersionChangeEvent_h |
| OLD | NEW |