OLD | NEW |
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 23 matching lines...) Expand all Loading... |
34 | 34 |
35 namespace blink { | 35 namespace blink { |
36 | 36 |
37 class FrameSelection; | 37 class FrameSelection; |
38 class HitTestResult; | 38 class HitTestResult; |
39 class LocalFrame; | 39 class LocalFrame; |
40 class VisibleSelection; | 40 class VisibleSelection; |
41 | 41 |
42 class SelectionController final : public NoBaseWillBeGarbageCollected<SelectionC
ontroller> { | 42 class SelectionController final : public NoBaseWillBeGarbageCollected<SelectionC
ontroller> { |
43 WTF_MAKE_NONCOPYABLE(SelectionController); | 43 WTF_MAKE_NONCOPYABLE(SelectionController); |
| 44 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(SelectionController); |
44 public: | 45 public: |
45 static PassOwnPtrWillBeRawPtr<SelectionController> create(LocalFrame&); | 46 static PassOwnPtrWillBeRawPtr<SelectionController> create(LocalFrame&); |
46 DECLARE_TRACE(); | 47 DECLARE_TRACE(); |
47 | 48 |
48 bool updateSelectionForMouseDownDispatchingSelectStart(Node*, const VisibleS
election&, TextGranularity); | 49 bool updateSelectionForMouseDownDispatchingSelectStart(Node*, const VisibleS
election&, TextGranularity); |
49 void handleMousePressEvent(const MouseEventWithHitTestResults&); | 50 void handleMousePressEvent(const MouseEventWithHitTestResults&); |
50 bool handleMousePressEventSingleClick(const MouseEventWithHitTestResults&); | 51 bool handleMousePressEventSingleClick(const MouseEventWithHitTestResults&); |
51 bool handleMousePressEventDoubleClick(const MouseEventWithHitTestResults&); | 52 bool handleMousePressEventDoubleClick(const MouseEventWithHitTestResults&); |
52 bool handleMousePressEventTripleClick(const MouseEventWithHitTestResults&); | 53 bool handleMousePressEventTripleClick(const MouseEventWithHitTestResults&); |
53 void handleMouseDraggedEvent(const MouseEventWithHitTestResults&, const IntP
oint&, const LayoutPoint&, Node*, const IntPoint&); | 54 void handleMouseDraggedEvent(const MouseEventWithHitTestResults&, const IntP
oint&, const LayoutPoint&, Node*, const IntPoint&); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 87 |
87 RawPtrWillBeMember<LocalFrame> const m_frame; | 88 RawPtrWillBeMember<LocalFrame> const m_frame; |
88 bool m_mouseDownMayStartSelect; | 89 bool m_mouseDownMayStartSelect; |
89 bool m_mouseDownWasSingleClickInSelection; | 90 bool m_mouseDownWasSingleClickInSelection; |
90 enum class SelectionState { HaveNotStartedSelection, PlacedCaret, ExtendedSe
lection }; | 91 enum class SelectionState { HaveNotStartedSelection, PlacedCaret, ExtendedSe
lection }; |
91 SelectionState m_selectionState; | 92 SelectionState m_selectionState; |
92 }; | 93 }; |
93 | 94 |
94 } // namespace blink | 95 } // namespace blink |
95 #endif // SelectionController_h | 96 #endif // SelectionController_h |
OLD | NEW |