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

Side by Side Diff: Source/core/rendering/RenderFullScreen.cpp

Issue 640593002: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/[css|rendering|clipboard] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased the patch 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/rendering/RenderFullScreen.h ('k') | Source/core/rendering/RenderGrid.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) 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2010 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 12 matching lines...) Expand all
23 */ 23 */
24 24
25 #include "config.h" 25 #include "config.h"
26 #include "core/rendering/RenderFullScreen.h" 26 #include "core/rendering/RenderFullScreen.h"
27 27
28 #include "core/dom/Fullscreen.h" 28 #include "core/dom/Fullscreen.h"
29 #include "core/rendering/RenderBlockFlow.h" 29 #include "core/rendering/RenderBlockFlow.h"
30 30
31 using namespace blink; 31 using namespace blink;
32 32
33 class RenderFullScreenPlaceholder FINAL : public RenderBlockFlow { 33 class RenderFullScreenPlaceholder final : public RenderBlockFlow {
34 public: 34 public:
35 RenderFullScreenPlaceholder(RenderFullScreen* owner) 35 RenderFullScreenPlaceholder(RenderFullScreen* owner)
36 : RenderBlockFlow(0) 36 : RenderBlockFlow(0)
37 , m_owner(owner) 37 , m_owner(owner)
38 { 38 {
39 setDocumentForAnonymous(&owner->document()); 39 setDocumentForAnonymous(&owner->document());
40 } 40 }
41 private: 41 private:
42 virtual bool isRenderFullScreenPlaceholder() const OVERRIDE { return true; } 42 virtual bool isRenderFullScreenPlaceholder() const override { return true; }
43 virtual void willBeDestroyed() OVERRIDE; 43 virtual void willBeDestroyed() override;
44 RenderFullScreen* m_owner; 44 RenderFullScreen* m_owner;
45 }; 45 };
46 46
47 void RenderFullScreenPlaceholder::willBeDestroyed() 47 void RenderFullScreenPlaceholder::willBeDestroyed()
48 { 48 {
49 m_owner->setPlaceholder(0); 49 m_owner->setPlaceholder(0);
50 RenderBlockFlow::willBeDestroyed(); 50 RenderBlockFlow::willBeDestroyed();
51 } 51 }
52 52
53 RenderFullScreen::RenderFullScreen() 53 RenderFullScreen::RenderFullScreen()
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 if (!m_placeholder) { 193 if (!m_placeholder) {
194 m_placeholder = new RenderFullScreenPlaceholder(this); 194 m_placeholder = new RenderFullScreenPlaceholder(this);
195 m_placeholder->setStyle(style); 195 m_placeholder->setStyle(style);
196 if (parent()) { 196 if (parent()) {
197 parent()->addChild(m_placeholder, this); 197 parent()->addChild(m_placeholder, this);
198 parent()->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation( ); 198 parent()->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation( );
199 } 199 }
200 } else 200 } else
201 m_placeholder->setStyle(style); 201 m_placeholder->setStyle(style);
202 } 202 }
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderFullScreen.h ('k') | Source/core/rendering/RenderGrid.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698