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

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

Issue 352643005: Drop [TypeChecking=Nullable]; deduce from attribute type instead (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@cleanup-typechecking
Patch Set: rebased Created 6 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
« no previous file with comments | « Source/core/html/MediaKeyEvent.h ('k') | Source/core/svg/SVGElement.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 static PassRefPtrWillBeRawPtr<StorageEvent> create(); 49 static PassRefPtrWillBeRawPtr<StorageEvent> create();
50 static PassRefPtrWillBeRawPtr<StorageEvent> create(const AtomicString& type, const String& key, const String& oldValue, const String& newValue, const String & url, Storage* storageArea); 50 static PassRefPtrWillBeRawPtr<StorageEvent> create(const AtomicString& type, const String& key, const String& oldValue, const String& newValue, const String & url, Storage* storageArea);
51 static PassRefPtrWillBeRawPtr<StorageEvent> create(const AtomicString&, cons t StorageEventInit&); 51 static PassRefPtrWillBeRawPtr<StorageEvent> create(const AtomicString&, cons t StorageEventInit&);
52 virtual ~StorageEvent(); 52 virtual ~StorageEvent();
53 53
54 const String& key() const { return m_key; } 54 const String& key() const { return m_key; }
55 const String& oldValue() const { return m_oldValue; } 55 const String& oldValue() const { return m_oldValue; }
56 const String& newValue() const { return m_newValue; } 56 const String& newValue() const { return m_newValue; }
57 const String& url() const { return m_url; } 57 const String& url() const { return m_url; }
58 Storage* storageArea() const { return m_storageArea.get(); } 58 Storage* storageArea() const { return m_storageArea.get(); }
59 Storage* storageArea(bool& isNull) const { isNull = !m_storageArea; return m _storageArea.get(); }
60 59
61 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); 60 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);
62 61
63 // Needed once we support init<blank>EventNS 62 // Needed once we support init<blank>EventNS
64 // 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); 63 // 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);
65 64
66 virtual const AtomicString& interfaceName() const OVERRIDE; 65 virtual const AtomicString& interfaceName() const OVERRIDE;
67 66
68 virtual void trace(Visitor*) OVERRIDE; 67 virtual void trace(Visitor*) OVERRIDE;
69 68
70 private: 69 private:
71 StorageEvent(); 70 StorageEvent();
72 StorageEvent(const AtomicString& type, const String& key, const String& oldV alue, const String& newValue, const String& url, Storage* storageArea); 71 StorageEvent(const AtomicString& type, const String& key, const String& oldV alue, const String& newValue, const String& url, Storage* storageArea);
73 StorageEvent(const AtomicString&, const StorageEventInit&); 72 StorageEvent(const AtomicString&, const StorageEventInit&);
74 73
75 String m_key; 74 String m_key;
76 String m_oldValue; 75 String m_oldValue;
77 String m_newValue; 76 String m_newValue;
78 String m_url; 77 String m_url;
79 RefPtrWillBeMember<Storage> m_storageArea; 78 RefPtrWillBeMember<Storage> m_storageArea;
80 }; 79 };
81 80
82 } // namespace WebCore 81 } // namespace WebCore
83 82
84 #endif // StorageEvent_h 83 #endif // StorageEvent_h
OLDNEW
« no previous file with comments | « Source/core/html/MediaKeyEvent.h ('k') | Source/core/svg/SVGElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698