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

Side by Side Diff: Source/core/editing/Caret.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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 protected: 69 protected:
70 static RenderBlock* caretRenderer(Node*); 70 static RenderBlock* caretRenderer(Node*);
71 static void invalidateLocalCaretRect(Node*, const LayoutRect&); 71 static void invalidateLocalCaretRect(Node*, const LayoutRect&);
72 72
73 private: 73 private:
74 LayoutRect m_caretLocalRect; // caret rect in coords local to the renderer r esponsible for painting the caret 74 LayoutRect m_caretLocalRect; // caret rect in coords local to the renderer r esponsible for painting the caret
75 bool m_caretRectNeedsUpdate; // true if m_caretRect (and m_absCaretBounds in FrameSelection) need to be calculated 75 bool m_caretRectNeedsUpdate; // true if m_caretRect (and m_absCaretBounds in FrameSelection) need to be calculated
76 CaretVisibility m_caretVisibility; 76 CaretVisibility m_caretVisibility;
77 }; 77 };
78 78
79 class DragCaretController FINAL : public NoBaseWillBeGarbageCollected<DragCaretC ontroller>, private CaretBase { 79 class DragCaretController final : public NoBaseWillBeGarbageCollected<DragCaretC ontroller>, private CaretBase {
80 WTF_MAKE_NONCOPYABLE(DragCaretController); 80 WTF_MAKE_NONCOPYABLE(DragCaretController);
81 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; 81 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
82 public: 82 public:
83 static PassOwnPtrWillBeRawPtr<DragCaretController> create(); 83 static PassOwnPtrWillBeRawPtr<DragCaretController> create();
84 84
85 RenderBlock* caretRenderer() const; 85 RenderBlock* caretRenderer() const;
86 void paintDragCaret(LocalFrame*, GraphicsContext*, const LayoutPoint&, const LayoutRect& clipRect) const; 86 void paintDragCaret(LocalFrame*, GraphicsContext*, const LayoutPoint&, const LayoutRect& clipRect) const;
87 87
88 bool isContentEditable() const { return m_position.rootEditableElement(); } 88 bool isContentEditable() const { return m_position.rootEditableElement(); }
89 bool isContentRichlyEditable() const; 89 bool isContentRichlyEditable() const;
(...skipping 10 matching lines...) Expand all
100 private: 100 private:
101 DragCaretController(); 101 DragCaretController();
102 102
103 VisiblePosition m_position; 103 VisiblePosition m_position;
104 }; 104 };
105 105
106 } // namespace blink 106 } // namespace blink
107 107
108 108
109 #endif // Caret_h 109 #endif // Caret_h
OLDNEW
« no previous file with comments | « Source/core/editing/BreakBlockquoteCommand.h ('k') | Source/core/editing/CompositeEditCommand.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698