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

Side by Side Diff: Source/modules/storage/StorageEvent.h

Issue 1227783004: Fix virtual/override/final usage in Source/modules/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009 Apple 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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 23 matching lines...) Expand all
34 34
35 class Storage; 35 class Storage;
36 class StorageEventInit; 36 class StorageEventInit;
37 37
38 class StorageEvent final : public Event { 38 class StorageEvent final : public Event {
39 DEFINE_WRAPPERTYPEINFO(); 39 DEFINE_WRAPPERTYPEINFO();
40 public: 40 public:
41 static PassRefPtrWillBeRawPtr<StorageEvent> create(); 41 static PassRefPtrWillBeRawPtr<StorageEvent> create();
42 static PassRefPtrWillBeRawPtr<StorageEvent> create(const AtomicString& type, const String& key, const String& oldValue, const String& newValue, const String & url, Storage* storageArea); 42 static PassRefPtrWillBeRawPtr<StorageEvent> create(const AtomicString& type, const String& key, const String& oldValue, const String& newValue, const String & url, Storage* storageArea);
43 static PassRefPtrWillBeRawPtr<StorageEvent> create(const AtomicString&, cons t StorageEventInit&); 43 static PassRefPtrWillBeRawPtr<StorageEvent> create(const AtomicString&, cons t StorageEventInit&);
44 virtual ~StorageEvent(); 44 ~StorageEvent() override;
45 45
46 const String& key() const { return m_key; } 46 const String& key() const { return m_key; }
47 const String& oldValue() const { return m_oldValue; } 47 const String& oldValue() const { return m_oldValue; }
48 const String& newValue() const { return m_newValue; } 48 const String& newValue() const { return m_newValue; }
49 const String& url() const { return m_url; } 49 const String& url() const { return m_url; }
50 Storage* storageArea() const { return m_storageArea.get(); } 50 Storage* storageArea() const { return m_storageArea.get(); }
51 51
52 void initStorageEvent(const AtomicString& type, bool canBubble, bool cancela ble, const String& key, const String& oldValue, const String& newValue, const St ring& url, Storage* storageArea); 52 void initStorageEvent(const AtomicString& type, bool canBubble, bool cancela ble, const String& key, const String& oldValue, const String& newValue, const St ring& url, Storage* storageArea);
53 53
54 // Needed once we support init<blank>EventNS 54 // Needed once we support init<blank>EventNS
55 // void initStorageEventNS(in DOMString namespaceURI, in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMString keyArg, in DOMSt ring oldValueArg, in DOMString newValueArg, in DOMString urlArg, Storage storage AreaArg); 55 // void initStorageEventNS(in DOMString namespaceURI, in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMString keyArg, in DOMSt ring oldValueArg, in DOMString newValueArg, in DOMString urlArg, Storage storage AreaArg);
56 56
57 virtual const AtomicString& interfaceName() const override; 57 const AtomicString& interfaceName() const override;
58 58
59 DECLARE_VIRTUAL_TRACE(); 59 DECLARE_VIRTUAL_TRACE();
60 60
61 private: 61 private:
62 StorageEvent(); 62 StorageEvent();
63 StorageEvent(const AtomicString& type, const String& key, const String& oldV alue, const String& newValue, const String& url, Storage* storageArea); 63 StorageEvent(const AtomicString& type, const String& key, const String& oldV alue, const String& newValue, const String& url, Storage* storageArea);
64 StorageEvent(const AtomicString&, const StorageEventInit&); 64 StorageEvent(const AtomicString&, const StorageEventInit&);
65 65
66 String m_key; 66 String m_key;
67 String m_oldValue; 67 String m_oldValue;
68 String m_newValue; 68 String m_newValue;
69 String m_url; 69 String m_url;
70 PersistentWillBeMember<Storage> m_storageArea; 70 PersistentWillBeMember<Storage> m_storageArea;
71 }; 71 };
72 72
73 } // namespace blink 73 } // namespace blink
74 74
75 #endif // StorageEvent_h 75 #endif // StorageEvent_h
OLDNEW
« no previous file with comments | « Source/modules/storage/InspectorDOMStorageAgent.h ('k') | Source/modules/vibration/NavigatorVibration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698