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

Unified Diff: Source/modules/battery/BatteryManager.h

Issue 635233004: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/modules (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/InitModules.h ('k') | Source/modules/battery/BatteryStatus.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/battery/BatteryManager.h
diff --git a/Source/modules/battery/BatteryManager.h b/Source/modules/battery/BatteryManager.h
index a1d784f4fa9a7f37dffd1ff313a4d8df4d2d1fec..c05e4c165f01d74410237f9e1490b30e0c1da367 100644
--- a/Source/modules/battery/BatteryManager.h
+++ b/Source/modules/battery/BatteryManager.h
@@ -16,7 +16,7 @@ namespace blink {
class BatteryStatus;
-class BatteryManager FINAL : public RefCountedGarbageCollectedWillBeGarbageCollectedFinalized<BatteryManager>, public ActiveDOMObject, public PlatformEventController, public EventTargetWithInlineData {
+class BatteryManager final : public RefCountedGarbageCollectedWillBeGarbageCollectedFinalized<BatteryManager>, public ActiveDOMObject, public PlatformEventController, public EventTargetWithInlineData {
DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<BatteryManager>);
DEFINE_WRAPPERTYPEINFO();
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(BatteryManager);
@@ -28,8 +28,8 @@ public:
ScriptPromise startRequest(ScriptState*);
// EventTarget implementation.
- virtual const WTF::AtomicString& interfaceName() const OVERRIDE { return EventTargetNames::BatteryManager; }
- virtual ExecutionContext* executionContext() const OVERRIDE { return ContextLifecycleObserver::executionContext(); }
+ virtual const WTF::AtomicString& interfaceName() const override { return EventTargetNames::BatteryManager; }
+ virtual ExecutionContext* executionContext() const override { return ContextLifecycleObserver::executionContext(); }
bool charging();
double chargingTime();
@@ -42,19 +42,19 @@ public:
DEFINE_ATTRIBUTE_EVENT_LISTENER(levelchange);
// Inherited from PlatformEventController.
- virtual void didUpdateData() OVERRIDE;
- virtual void registerWithDispatcher() OVERRIDE;
- virtual void unregisterWithDispatcher() OVERRIDE;
- virtual bool hasLastData() OVERRIDE;
+ virtual void didUpdateData() override;
+ virtual void registerWithDispatcher() override;
+ virtual void unregisterWithDispatcher() override;
+ virtual bool hasLastData() override;
// ActiveDOMObject implementation.
virtual bool canSuspend() const { return true; }
- virtual void suspend() OVERRIDE;
- virtual void resume() OVERRIDE;
- virtual void stop() OVERRIDE;
- virtual bool hasPendingActivity() const OVERRIDE;
+ virtual void suspend() override;
+ virtual void resume() override;
+ virtual void stop() override;
+ virtual bool hasPendingActivity() const override;
- virtual void trace(Visitor*) OVERRIDE;
+ virtual void trace(Visitor*) override;
private:
enum State {
« no previous file with comments | « Source/modules/InitModules.h ('k') | Source/modules/battery/BatteryStatus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698