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

Side by Side Diff: Source/modules/indexeddb/IDBVersionChangeEvent.h

Issue 635233004: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/modules (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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) 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 28 matching lines...) Expand all
39 namespace blink { 39 namespace blink {
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 DEFINE_WRAPPERTYPEINFO();
51 public: 51 public:
52 static PassRefPtrWillBeRawPtr<IDBVersionChangeEvent> create() 52 static PassRefPtrWillBeRawPtr<IDBVersionChangeEvent> create()
53 { 53 {
54 return adoptRefWillBeNoop(new IDBVersionChangeEvent()); 54 return adoptRefWillBeNoop(new IDBVersionChangeEvent());
55 } 55 }
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 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())
57 { 57 {
58 return adoptRefWillBeNoop(new IDBVersionChangeEvent(eventType, oldVersio n, newVersion, dataLoss, dataLossMessage)); 58 return adoptRefWillBeNoop(new IDBVersionChangeEvent(eventType, oldVersio n, newVersion, dataLoss, dataLossMessage));
59 } 59 }
60 static PassRefPtrWillBeRawPtr<IDBVersionChangeEvent> create(const AtomicStri ng& eventType, const IDBVersionChangeEventInit& initializer) 60 static PassRefPtrWillBeRawPtr<IDBVersionChangeEvent> create(const AtomicStri ng& eventType, const IDBVersionChangeEventInit& initializer)
61 { 61 {
62 return adoptRefWillBeNoop(new IDBVersionChangeEvent(eventType, initializ er)); 62 return adoptRefWillBeNoop(new IDBVersionChangeEvent(eventType, initializ er));
63 } 63 }
64 64
65 unsigned long long oldVersion() const { return m_oldVersion; } 65 unsigned long long oldVersion() const { return m_oldVersion; }
66 unsigned long long newVersion(bool& isNull) const; 66 unsigned long long newVersion(bool& isNull) const;
67 67
68 const AtomicString& dataLoss() const; 68 const AtomicString& dataLoss() const;
69 const String& dataLossMessage() const { return m_dataLossMessage; } 69 const String& dataLossMessage() const { return m_dataLossMessage; }
70 70
71 virtual const AtomicString& interfaceName() const OVERRIDE; 71 virtual const AtomicString& interfaceName() const override;
72 72
73 virtual void trace(Visitor*) OVERRIDE; 73 virtual void trace(Visitor*) override;
74 74
75 private: 75 private:
76 IDBVersionChangeEvent(); 76 IDBVersionChangeEvent();
77 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, unsigned long long oldV ersion, const Nullable<unsigned long long>& newVersion, WebIDBDataLoss, const St ring& dataLoss);
78 IDBVersionChangeEvent(const AtomicString& eventType, const IDBVersionChangeE ventInit&); 78 IDBVersionChangeEvent(const AtomicString& eventType, const IDBVersionChangeE ventInit&);
79 79
80 unsigned long long m_oldVersion; 80 unsigned long long m_oldVersion;
81 Nullable<unsigned long long> m_newVersion; 81 Nullable<unsigned long long> m_newVersion;
82 WebIDBDataLoss m_dataLoss; 82 WebIDBDataLoss m_dataLoss;
83 String m_dataLossMessage; 83 String m_dataLossMessage;
84 }; 84 };
85 85
86 } // namespace blink 86 } // namespace blink
87 87
88 #endif // IDBVersionChangeEvent_h 88 #endif // IDBVersionChangeEvent_h
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/IDBTransactionTest.cpp ('k') | Source/modules/indexeddb/InspectorIndexedDBAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698