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

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

Issue 633573004: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/dom (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
« no previous file with comments | « Source/core/dom/Fullscreen.h ('k') | Source/core/dom/LiveNodeList.h » ('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 18 matching lines...) Expand all
29 #include "platform/heap/Handle.h" 29 #include "platform/heap/Handle.h"
30 #include "wtf/Forward.h" 30 #include "wtf/Forward.h"
31 #include "wtf/HashMap.h" 31 #include "wtf/HashMap.h"
32 #include "wtf/HashSet.h" 32 #include "wtf/HashSet.h"
33 #include "wtf/text/StringHash.h" 33 #include "wtf/text/StringHash.h"
34 34
35 namespace blink { 35 namespace blink {
36 36
37 class IdTargetObserver; 37 class IdTargetObserver;
38 38
39 class IdTargetObserverRegistry FINAL : public NoBaseWillBeGarbageCollectedFinali zed<IdTargetObserverRegistry> { 39 class IdTargetObserverRegistry final : public NoBaseWillBeGarbageCollectedFinali zed<IdTargetObserverRegistry> {
40 WTF_MAKE_NONCOPYABLE(IdTargetObserverRegistry); 40 WTF_MAKE_NONCOPYABLE(IdTargetObserverRegistry);
41 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; 41 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
42 friend class IdTargetObserver; 42 friend class IdTargetObserver;
43 public: 43 public:
44 static PassOwnPtrWillBeRawPtr<IdTargetObserverRegistry> create(); 44 static PassOwnPtrWillBeRawPtr<IdTargetObserverRegistry> create();
45 void trace(Visitor*); 45 void trace(Visitor*);
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:
(...skipping 12 matching lines...) Expand all
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.h ('k') | Source/core/dom/LiveNodeList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698