| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 bool updateSelectionForMouseDownDispatchingSelectStart( | 117 bool updateSelectionForMouseDownDispatchingSelectStart( |
| 118 Node*, | 118 Node*, |
| 119 const VisibleSelectionInFlatTree&, | 119 const VisibleSelectionInFlatTree&, |
| 120 TextGranularity); | 120 TextGranularity); |
| 121 | 121 |
| 122 FrameSelection& selection() const; | 122 FrameSelection& selection() const; |
| 123 | 123 |
| 124 // Implements |SynchronousMutationObserver|. | 124 // Implements |SynchronousMutationObserver|. |
| 125 // TODO(yosin): We should relocate |m_originalBaseInFlatTree| when DOM tree | 125 // TODO(yosin): We should relocate |m_originalBaseInFlatTree| when DOM tree |
| 126 // changed. | 126 // changed. |
| 127 void contextDestroyed() final; | 127 void contextDestroyed(Document*) final; |
| 128 | 128 |
| 129 Member<LocalFrame> const m_frame; | 129 Member<LocalFrame> const m_frame; |
| 130 // TODO(yosin): We should use |PositionWIthAffinityInFlatTree| since we | 130 // TODO(yosin): We should use |PositionWIthAffinityInFlatTree| since we |
| 131 // should reduce usage of |VisibleSelectionInFlatTree|. | 131 // should reduce usage of |VisibleSelectionInFlatTree|. |
| 132 // Used to store base before the adjustment at bidi boundary | 132 // Used to store base before the adjustment at bidi boundary |
| 133 VisiblePositionInFlatTree m_originalBaseInFlatTree; | 133 VisiblePositionInFlatTree m_originalBaseInFlatTree; |
| 134 bool m_mouseDownMayStartSelect; | 134 bool m_mouseDownMayStartSelect; |
| 135 bool m_mouseDownWasSingleClickInSelection; | 135 bool m_mouseDownWasSingleClickInSelection; |
| 136 bool m_mouseDownAllowsMultiClick; | 136 bool m_mouseDownAllowsMultiClick; |
| 137 enum class SelectionState { | 137 enum class SelectionState { |
| 138 HaveNotStartedSelection, | 138 HaveNotStartedSelection, |
| 139 PlacedCaret, | 139 PlacedCaret, |
| 140 ExtendedSelection | 140 ExtendedSelection |
| 141 }; | 141 }; |
| 142 SelectionState m_selectionState; | 142 SelectionState m_selectionState; |
| 143 }; | 143 }; |
| 144 | 144 |
| 145 bool isLinkSelection(const MouseEventWithHitTestResults&); | 145 bool isLinkSelection(const MouseEventWithHitTestResults&); |
| 146 bool isExtendingSelection(const MouseEventWithHitTestResults&); | 146 bool isExtendingSelection(const MouseEventWithHitTestResults&); |
| 147 | 147 |
| 148 } // namespace blink | 148 } // namespace blink |
| 149 | 149 |
| 150 #endif // SelectionController_h | 150 #endif // SelectionController_h |
| OLD | NEW |