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

Side by Side Diff: Source/core/dom/custom/CustomElementRegistry.cpp

Issue 611233002: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/dom/custom (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased 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) 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 * 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 : DocumentLifecycleObserver(document) 46 : DocumentLifecycleObserver(document)
47 , m_wentAway(!document) 47 , m_wentAway(!document)
48 { 48 {
49 } 49 }
50 50
51 bool registrationContextWentAway() { return m_wentAway; } 51 bool registrationContextWentAway() { return m_wentAway; }
52 52
53 private: 53 private:
54 #if ENABLE(OILPAN) 54 #if ENABLE(OILPAN)
55 // In oilpan we don't have the disposed phase for context lifecycle observer . 55 // In oilpan we don't have the disposed phase for context lifecycle observer .
56 virtual void documentWasDetached() OVERRIDE { m_wentAway = true; } 56 virtual void documentWasDetached() override { m_wentAway = true; }
57 #else 57 #else
58 virtual void documentWasDisposed() OVERRIDE { m_wentAway = true; } 58 virtual void documentWasDisposed() override { m_wentAway = true; }
59 #endif 59 #endif
60 60
61 bool m_wentAway; 61 bool m_wentAway;
62 }; 62 };
63 63
64 CustomElementDefinition* CustomElementRegistry::registerElement(Document* docume nt, CustomElementConstructorBuilder* constructorBuilder, const AtomicString& use rSuppliedName, CustomElement::NameSet validNames, ExceptionState& exceptionState ) 64 CustomElementDefinition* CustomElementRegistry::registerElement(Document* docume nt, CustomElementConstructorBuilder* constructorBuilder, const AtomicString& use rSuppliedName, CustomElement::NameSet validNames, ExceptionState& exceptionState )
65 { 65 {
66 // FIXME: In every instance except one it is the 66 // FIXME: In every instance except one it is the
67 // CustomElementConstructorBuilder that observes document 67 // CustomElementConstructorBuilder that observes document
68 // destruction during registration. This responsibility should be 68 // destruction during registration. This responsibility should be
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 119
120 return definition.get(); 120 return definition.get();
121 } 121 }
122 122
123 CustomElementDefinition* CustomElementRegistry::find(const CustomElementDescript or& descriptor) const 123 CustomElementDefinition* CustomElementRegistry::find(const CustomElementDescript or& descriptor) const
124 { 124 {
125 return m_definitions.get(descriptor); 125 return m_definitions.get(descriptor);
126 } 126 }
127 127
128 } // namespace blink 128 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/dom/custom/CustomElementRegistry.h ('k') | Source/core/dom/custom/CustomElementScheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698