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

Side by Side Diff: third_party/WebKit/Source/core/editing/PendingSelection.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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2006 Apple Computer, Inc. 3 * Copyright (C) 2006 Apple Computer, Inc.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 14 matching lines...) Expand all
25 #include "core/editing/Position.h" 25 #include "core/editing/Position.h"
26 #include "core/editing/VisibleSelection.h" 26 #include "core/editing/VisibleSelection.h"
27 #include "platform/heap/Handle.h" 27 #include "platform/heap/Handle.h"
28 28
29 namespace blink { 29 namespace blink {
30 30
31 class Document; 31 class Document;
32 class FrameSelection; 32 class FrameSelection;
33 class LayoutView; 33 class LayoutView;
34 34
35 class PendingSelection final : public NoBaseWillBeGarbageCollected<PendingSelect ion> { 35 class PendingSelection final : public GarbageCollected<PendingSelection> {
36 USING_FAST_MALLOC_WILL_BE_REMOVED(PendingSelection);
37 public: 36 public:
38 static PassOwnPtrWillBeRawPtr<PendingSelection> create(FrameSelection& frame Selection) 37 static RawPtr<PendingSelection> create(FrameSelection& frameSelection)
39 { 38 {
40 return adoptPtrWillBeNoop(new PendingSelection(frameSelection)); 39 return (new PendingSelection(frameSelection));
41 } 40 }
42 41
43 bool hasPendingSelection() const { return m_hasPendingSelection; } 42 bool hasPendingSelection() const { return m_hasPendingSelection; }
44 void setHasPendingSelection() { m_hasPendingSelection = true; } 43 void setHasPendingSelection() { m_hasPendingSelection = true; }
45 void commit(LayoutView&); 44 void commit(LayoutView&);
46 45
47 DECLARE_TRACE(); 46 DECLARE_TRACE();
48 47
49 private: 48 private:
50 PendingSelection(FrameSelection&); 49 PendingSelection(FrameSelection&);
51 50
52 const VisibleSelection& visibleSelection() const; 51 const VisibleSelection& visibleSelection() const;
53 52
54 template <typename Strategy> 53 template <typename Strategy>
55 VisibleSelectionTemplate<Strategy> calcVisibleSelectionAlgorithm(const Visib leSelectionTemplate<Strategy>&) const; 54 VisibleSelectionTemplate<Strategy> calcVisibleSelectionAlgorithm(const Visib leSelectionTemplate<Strategy>&) const;
56 template <typename Strategy> 55 template <typename Strategy>
57 void commitAlgorithm(LayoutView&); 56 void commitAlgorithm(LayoutView&);
58 57
59 RawPtrWillBeMember<FrameSelection> m_frameSelection; 58 Member<FrameSelection> m_frameSelection;
60 bool m_hasPendingSelection : 1; 59 bool m_hasPendingSelection : 1;
61 }; 60 };
62 61
63 } // namespace blink 62 } // namespace blink
64 63
65 #endif 64 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698