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

Unified Diff: Source/core/editing/FormatBlockCommand.h

Issue 616603006: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/editing (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/editing/Editor.h ('k') | Source/core/editing/FrameSelection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/FormatBlockCommand.h
diff --git a/Source/core/editing/FormatBlockCommand.h b/Source/core/editing/FormatBlockCommand.h
index 32ec6ae6f955f91d5e25f4cccdb6f637412a8712..84871b146c740f011b45d62e78efdba15cd7ae6f 100644
--- a/Source/core/editing/FormatBlockCommand.h
+++ b/Source/core/editing/FormatBlockCommand.h
@@ -38,14 +38,14 @@ class Position;
class Range;
class VisiblePosition;
-class FormatBlockCommand FINAL : public ApplyBlockElementCommand {
+class FormatBlockCommand final : public ApplyBlockElementCommand {
public:
static PassRefPtrWillBeRawPtr<FormatBlockCommand> create(Document& document, const QualifiedName& tagName)
{
return adoptRefWillBeNoop(new FormatBlockCommand(document, tagName));
}
- virtual bool preservesTypingStyle() const OVERRIDE { return true; }
+ virtual bool preservesTypingStyle() const override { return true; }
static Element* elementForFormatBlockCommand(Range*);
bool didApply() const { return m_didApply; }
@@ -53,9 +53,9 @@ public:
private:
FormatBlockCommand(Document&, const QualifiedName& tagName);
- virtual void formatSelection(const VisiblePosition& startOfSelection, const VisiblePosition& endOfSelection) OVERRIDE;
- virtual void formatRange(const Position& start, const Position& end, const Position& endOfSelection, RefPtrWillBeRawPtr<HTMLElement>&) OVERRIDE;
- virtual EditAction editingAction() const OVERRIDE { return EditActionFormatBlock; }
+ virtual void formatSelection(const VisiblePosition& startOfSelection, const VisiblePosition& endOfSelection) override;
+ virtual void formatRange(const Position& start, const Position& end, const Position& endOfSelection, RefPtrWillBeRawPtr<HTMLElement>&) override;
+ virtual EditAction editingAction() const override { return EditActionFormatBlock; }
bool m_didApply;
};
« no previous file with comments | « Source/core/editing/Editor.h ('k') | Source/core/editing/FrameSelection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698