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

Side by Side Diff: Source/core/dom/IdTargetObserverRegistry.h

Issue 1006723003: Fix template angle bracket syntax in dom (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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/dom/Fullscreen.cpp ('k') | Source/core/dom/IdTargetObserverRegistry.cpp » ('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) 2012 Google Inc. All Rights Reserved. 2 * Copyright (C) 2012 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 * 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 DECLARE_TRACE(); 45 DECLARE_TRACE();
46 void notifyObservers(const AtomicString& id); 46 void notifyObservers(const AtomicString& id);
47 bool hasObservers(const AtomicString& id) const; 47 bool hasObservers(const AtomicString& id) const;
48 48
49 private: 49 private:
50 IdTargetObserverRegistry() : m_notifyingObserversInSet(nullptr) { } 50 IdTargetObserverRegistry() : m_notifyingObserversInSet(nullptr) { }
51 void addObserver(const AtomicString& id, IdTargetObserver*); 51 void addObserver(const AtomicString& id, IdTargetObserver*);
52 void removeObserver(const AtomicString& id, IdTargetObserver*); 52 void removeObserver(const AtomicString& id, IdTargetObserver*);
53 void notifyObserversInternal(const AtomicString& id); 53 void notifyObserversInternal(const AtomicString& id);
54 54
55 typedef WillBeHeapHashSet<RawPtrWillBeMember<IdTargetObserver> > ObserverSet ; 55 typedef WillBeHeapHashSet<RawPtrWillBeMember<IdTargetObserver>> ObserverSet;
56 typedef WillBeHeapHashMap<StringImpl*, OwnPtrWillBeMember<ObserverSet> > IdT oObserverSetMap; 56 typedef WillBeHeapHashMap<StringImpl*, OwnPtrWillBeMember<ObserverSet>> IdTo ObserverSetMap;
57 IdToObserverSetMap m_registry; 57 IdToObserverSetMap m_registry;
58 RawPtrWillBeMember<ObserverSet> m_notifyingObserversInSet; 58 RawPtrWillBeMember<ObserverSet> m_notifyingObserversInSet;
59 }; 59 };
60 60
61 inline void IdTargetObserverRegistry::notifyObservers(const AtomicString& id) 61 inline void IdTargetObserverRegistry::notifyObservers(const AtomicString& id)
62 { 62 {
63 ASSERT(!m_notifyingObserversInSet); 63 ASSERT(!m_notifyingObserversInSet);
64 if (id.isEmpty() || m_registry.isEmpty()) 64 if (id.isEmpty() || m_registry.isEmpty())
65 return; 65 return;
66 IdTargetObserverRegistry::notifyObserversInternal(id); 66 IdTargetObserverRegistry::notifyObserversInternal(id);
67 } 67 }
68 68
69 } // namespace blink 69 } // namespace blink
70 70
71 #endif // IdTargetObserverRegistry_h 71 #endif // IdTargetObserverRegistry_h
OLDNEW
« no previous file with comments | « Source/core/dom/Fullscreen.cpp ('k') | Source/core/dom/IdTargetObserverRegistry.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698