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

Side by Side Diff: third_party/WebKit/Source/core/editing/DragCaretController.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 14 matching lines...) Expand all
25 25
26 #ifndef DragCaretController_h 26 #ifndef DragCaretController_h
27 #define DragCaretController_h 27 #define DragCaretController_h
28 28
29 #include "core/editing/CaretBase.h" 29 #include "core/editing/CaretBase.h"
30 30
31 namespace blink { 31 namespace blink {
32 32
33 class CullRect; 33 class CullRect;
34 34
35 class DragCaretController final : public NoBaseWillBeGarbageCollectedFinalized<D ragCaretController>, private CaretBase { 35 class DragCaretController final : public GarbageCollectedFinalized<DragCaretCont roller>, private CaretBase {
36 WTF_MAKE_NONCOPYABLE(DragCaretController); 36 WTF_MAKE_NONCOPYABLE(DragCaretController);
37 USING_FAST_MALLOC_WILL_BE_REMOVED(DragCaretController);
38 public: 37 public:
39 static PassOwnPtrWillBeRawPtr<DragCaretController> create(); 38 static RawPtr<DragCaretController> create();
40 39
41 LayoutBlock* caretLayoutObject() const; 40 LayoutBlock* caretLayoutObject() const;
42 void paintDragCaret(LocalFrame*, GraphicsContext&, const LayoutPoint&) const ; 41 void paintDragCaret(LocalFrame*, GraphicsContext&, const LayoutPoint&) const ;
43 42
44 bool isContentEditable() const; 43 bool isContentEditable() const;
45 bool isContentRichlyEditable() const; 44 bool isContentRichlyEditable() const;
46 45
47 bool hasCaret() const { return m_position.isNotNull(); } 46 bool hasCaret() const { return m_position.isNotNull(); }
48 const VisiblePosition& caretPosition() { return m_position; } 47 const VisiblePosition& caretPosition() { return m_position; }
49 void setCaretPosition(const PositionWithAffinity&); 48 void setCaretPosition(const PositionWithAffinity&);
50 void clear() { setCaretPosition(PositionWithAffinity()); } 49 void clear() { setCaretPosition(PositionWithAffinity()); }
51 50
52 void nodeWillBeRemoved(Node&); 51 void nodeWillBeRemoved(Node&);
53 52
54 DECLARE_TRACE(); 53 DECLARE_TRACE();
55 54
56 private: 55 private:
57 DragCaretController(); 56 DragCaretController();
58 57
59 VisiblePosition m_position; 58 VisiblePosition m_position;
60 }; 59 };
61 60
62 } // namespace blink 61 } // namespace blink
63 62
64 #endif // DragCaretController_h 63 #endif // DragCaretController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698