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

Side by Side Diff: third_party/WebKit/Source/core/editing/SelectionController.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) 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2015 Google Inc. All rights reserved. 3 * Copyright (C) 2015 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 21 matching lines...) Expand all
32 #include "core/editing/VisibleSelection.h" 32 #include "core/editing/VisibleSelection.h"
33 #include "core/page/EventWithHitTestResults.h" 33 #include "core/page/EventWithHitTestResults.h"
34 #include "platform/heap/Handle.h" 34 #include "platform/heap/Handle.h"
35 35
36 namespace blink { 36 namespace blink {
37 37
38 class FrameSelection; 38 class FrameSelection;
39 class HitTestResult; 39 class HitTestResult;
40 class LocalFrame; 40 class LocalFrame;
41 41
42 class SelectionController final : public NoBaseWillBeGarbageCollected<SelectionC ontroller> { 42 class SelectionController final : public GarbageCollected<SelectionController> {
43 WTF_MAKE_NONCOPYABLE(SelectionController); 43 WTF_MAKE_NONCOPYABLE(SelectionController);
44 USING_FAST_MALLOC_WILL_BE_REMOVED(SelectionController);
45 public: 44 public:
46 static PassOwnPtrWillBeRawPtr<SelectionController> create(LocalFrame&); 45 static RawPtr<SelectionController> create(LocalFrame&);
47 DECLARE_TRACE(); 46 DECLARE_TRACE();
48 47
49 void handleMousePressEvent(const MouseEventWithHitTestResults&); 48 void handleMousePressEvent(const MouseEventWithHitTestResults&);
50 bool handleMousePressEventSingleClick(const MouseEventWithHitTestResults&); 49 bool handleMousePressEventSingleClick(const MouseEventWithHitTestResults&);
51 bool handleMousePressEventDoubleClick(const MouseEventWithHitTestResults&); 50 bool handleMousePressEventDoubleClick(const MouseEventWithHitTestResults&);
52 bool handleMousePressEventTripleClick(const MouseEventWithHitTestResults&); 51 bool handleMousePressEventTripleClick(const MouseEventWithHitTestResults&);
53 void handleMouseDraggedEvent(const MouseEventWithHitTestResults&, const IntP oint&, const LayoutPoint&, Node*, const IntPoint&); 52 void handleMouseDraggedEvent(const MouseEventWithHitTestResults&, const IntP oint&, const LayoutPoint&, Node*, const IntPoint&);
54 bool handleMouseReleaseEvent(const MouseEventWithHitTestResults&, const Layo utPoint&); 53 bool handleMouseReleaseEvent(const MouseEventWithHitTestResults&, const Layo utPoint&);
55 bool handlePasteGlobalSelection(const PlatformMouseEvent&); 54 bool handlePasteGlobalSelection(const PlatformMouseEvent&);
56 bool handleGestureLongPress(const PlatformGestureEvent&, const HitTestResult &); 55 bool handleGestureLongPress(const PlatformGestureEvent&, const HitTestResult &);
(...skipping 17 matching lines...) Expand all
74 73
75 void selectClosestWordFromHitTestResult(const HitTestResult&, AppendTrailing Whitespace); 74 void selectClosestWordFromHitTestResult(const HitTestResult&, AppendTrailing Whitespace);
76 void selectClosestMisspellingFromHitTestResult(const HitTestResult&, AppendT railingWhitespace); 75 void selectClosestMisspellingFromHitTestResult(const HitTestResult&, AppendT railingWhitespace);
77 void selectClosestWordFromMouseEvent(const MouseEventWithHitTestResults&); 76 void selectClosestWordFromMouseEvent(const MouseEventWithHitTestResults&);
78 void selectClosestMisspellingFromMouseEvent(const MouseEventWithHitTestResul ts&); 77 void selectClosestMisspellingFromMouseEvent(const MouseEventWithHitTestResul ts&);
79 void selectClosestWordOrLinkFromMouseEvent(const MouseEventWithHitTestResult s&); 78 void selectClosestWordOrLinkFromMouseEvent(const MouseEventWithHitTestResult s&);
80 bool updateSelectionForMouseDownDispatchingSelectStart(Node*, const VisibleS electionInFlatTree&, TextGranularity); 79 bool updateSelectionForMouseDownDispatchingSelectStart(Node*, const VisibleS electionInFlatTree&, TextGranularity);
81 80
82 FrameSelection& selection() const; 81 FrameSelection& selection() const;
83 82
84 RawPtrWillBeMember<LocalFrame> const m_frame; 83 Member<LocalFrame> const m_frame;
85 bool m_mouseDownMayStartSelect; 84 bool m_mouseDownMayStartSelect;
86 bool m_mouseDownWasSingleClickInSelection; 85 bool m_mouseDownWasSingleClickInSelection;
87 bool m_mouseDownAllowsMultiClick; 86 bool m_mouseDownAllowsMultiClick;
88 enum class SelectionState { HaveNotStartedSelection, PlacedCaret, ExtendedSe lection }; 87 enum class SelectionState { HaveNotStartedSelection, PlacedCaret, ExtendedSe lection };
89 SelectionState m_selectionState; 88 SelectionState m_selectionState;
90 }; 89 };
91 90
92 bool isLinkSelection(const MouseEventWithHitTestResults&); 91 bool isLinkSelection(const MouseEventWithHitTestResults&);
93 92
94 } // namespace blink 93 } // namespace blink
95 94
96 #endif // SelectionController_h 95 #endif // SelectionController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698