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

Side by Side Diff: Source/core/layout/LayoutFullScreen.h

Issue 1231363003: Fix virtual/override/final usage in Source/core/layout/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/layout/LayoutFrameSet.h ('k') | Source/core/layout/LayoutFullScreen.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) 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 17 matching lines...) Expand all
28 #include "core/CoreExport.h" 28 #include "core/CoreExport.h"
29 #include "core/layout/LayoutFlexibleBox.h" 29 #include "core/layout/LayoutFlexibleBox.h"
30 #include "core/style/StyleInheritedData.h" 30 #include "core/style/StyleInheritedData.h"
31 31
32 namespace blink { 32 namespace blink {
33 33
34 class CORE_EXPORT LayoutFullScreen final : public LayoutFlexibleBox { 34 class CORE_EXPORT LayoutFullScreen final : public LayoutFlexibleBox {
35 public: 35 public:
36 static LayoutFullScreen* createAnonymous(Document*); 36 static LayoutFullScreen* createAnonymous(Document*);
37 37
38 virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectLayoutFullScreen || LayoutFlexibleBox::isOfType(type); } 38 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectLayoutFullScreen || LayoutFlexibleBox::isOfType(type); }
39 virtual const char* name() const override { return "LayoutFullScreen"; } 39 const char* name() const override { return "LayoutFullScreen"; }
40 40
41 void setPlaceholder(LayoutBlock*); 41 void setPlaceholder(LayoutBlock*);
42 LayoutBlock* placeholder() { return m_placeholder; } 42 LayoutBlock* placeholder() { return m_placeholder; }
43 void createPlaceholder(PassRefPtr<ComputedStyle>, const LayoutRect& frameRec t); 43 void createPlaceholder(PassRefPtr<ComputedStyle>, const LayoutRect& frameRec t);
44 44
45 45
46 static LayoutObject* wrapLayoutObject(LayoutObject*, LayoutObject*, Document *); 46 static LayoutObject* wrapLayoutObject(LayoutObject*, LayoutObject*, Document *);
47 void unwrapLayoutObject(); 47 void unwrapLayoutObject();
48 48
49 void updateStyle(); 49 void updateStyle();
50 50
51 private: 51 private:
52 LayoutFullScreen(); 52 LayoutFullScreen();
53 virtual void willBeDestroyed() override; 53 void willBeDestroyed() override;
54 54
55 protected: 55 protected:
56 LayoutBlock* m_placeholder; 56 LayoutBlock* m_placeholder;
57 }; 57 };
58 58
59 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFullScreen, isLayoutFullScreen()); 59 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFullScreen, isLayoutFullScreen());
60 60
61 } 61 }
62 62
63 #endif 63 #endif
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutFrameSet.h ('k') | Source/core/layout/LayoutFullScreen.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698