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

Side by Side Diff: third_party/WebKit/Source/core/editing/commands/UndoStack.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, 10 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 22 matching lines...) Expand all
33 33
34 #include "platform/heap/Handle.h" 34 #include "platform/heap/Handle.h"
35 #include "wtf/Deque.h" 35 #include "wtf/Deque.h"
36 #include "wtf/Forward.h" 36 #include "wtf/Forward.h"
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class LocalFrame; 40 class LocalFrame;
41 class UndoStep; 41 class UndoStep;
42 42
43 class UndoStack final : public NoBaseWillBeGarbageCollected<UndoStack> { 43 class UndoStack final : public GarbageCollected<UndoStack> {
44 USING_FAST_MALLOC_WILL_BE_REMOVED(UndoStack);
45 WTF_MAKE_NONCOPYABLE(UndoStack); 44 WTF_MAKE_NONCOPYABLE(UndoStack);
46 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(UndoStack)
47 public: 45 public:
48 static PassOwnPtrWillBeRawPtr<UndoStack> create(); 46 static RawPtr<UndoStack> create();
49 47
50 void registerUndoStep(PassRefPtrWillBeRawPtr<UndoStep>); 48 void registerUndoStep(RawPtr<UndoStep>);
51 void registerRedoStep(PassRefPtrWillBeRawPtr<UndoStep>); 49 void registerRedoStep(RawPtr<UndoStep>);
52 void didUnloadFrame(const LocalFrame&); 50 void didUnloadFrame(const LocalFrame&);
53 bool canUndo() const; 51 bool canUndo() const;
54 bool canRedo() const; 52 bool canRedo() const;
55 void undo(); 53 void undo();
56 void redo(); 54 void redo();
57 55
58 DECLARE_TRACE(); 56 DECLARE_TRACE();
59 57
60 private: 58 private:
61 UndoStack(); 59 UndoStack();
62 60
63 typedef WillBeHeapDeque<RefPtrWillBeMember<UndoStep>> UndoStepStack; 61 typedef HeapDeque<Member<UndoStep>> UndoStepStack;
64 62
65 void filterOutUndoSteps(UndoStepStack&, const LocalFrame&); 63 void filterOutUndoSteps(UndoStepStack&, const LocalFrame&);
66 64
67 bool m_inRedo; 65 bool m_inRedo;
68 UndoStepStack m_undoStack; 66 UndoStepStack m_undoStack;
69 UndoStepStack m_redoStack; 67 UndoStepStack m_redoStack;
70 }; 68 };
71 69
72 } // namespace blink 70 } // namespace blink
73 71
74 #endif 72 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698