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

Side by Side Diff: third_party/WebKit/Source/core/editing/SelectionController.h

Issue 2732963002: Make SelectionController::setNonDirectionalSelectionIfNeeded() to take SelectionInFlatTree (Closed)
Patch Set: 2017-03-07T13:12:10 Created 3 years, 9 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/SelectionController.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 bool selectClosestWordFromHitTestResult(const HitTestResult&, 103 bool selectClosestWordFromHitTestResult(const HitTestResult&,
104 AppendTrailingWhitespace, 104 AppendTrailingWhitespace,
105 SelectInputEventType); 105 SelectInputEventType);
106 void selectClosestMisspellingFromHitTestResult(const HitTestResult&, 106 void selectClosestMisspellingFromHitTestResult(const HitTestResult&,
107 AppendTrailingWhitespace); 107 AppendTrailingWhitespace);
108 void selectClosestWordFromMouseEvent(const MouseEventWithHitTestResults&); 108 void selectClosestWordFromMouseEvent(const MouseEventWithHitTestResults&);
109 void selectClosestMisspellingFromMouseEvent( 109 void selectClosestMisspellingFromMouseEvent(
110 const MouseEventWithHitTestResults&); 110 const MouseEventWithHitTestResults&);
111 void selectClosestWordOrLinkFromMouseEvent( 111 void selectClosestWordOrLinkFromMouseEvent(
112 const MouseEventWithHitTestResults&); 112 const MouseEventWithHitTestResults&);
113 void setNonDirectionalSelectionIfNeeded(const VisibleSelectionInFlatTree&, 113 void setNonDirectionalSelectionIfNeeded(const SelectionInFlatTree&,
114 TextGranularity, 114 TextGranularity,
115 EndPointsAdjustmentMode, 115 EndPointsAdjustmentMode,
116 HandleVisibility); 116 HandleVisibility);
117 void setCaretAtHitTestResult(const HitTestResult&); 117 void setCaretAtHitTestResult(const HitTestResult&);
118 bool updateSelectionForMouseDownDispatchingSelectStart( 118 bool updateSelectionForMouseDownDispatchingSelectStart(
119 Node*, 119 Node*,
120 const VisibleSelectionInFlatTree&, 120 const VisibleSelectionInFlatTree&,
121 TextGranularity, 121 TextGranularity,
122 HandleVisibility); 122 HandleVisibility);
123 123
(...skipping 19 matching lines...) Expand all
143 }; 143 };
144 SelectionState m_selectionState; 144 SelectionState m_selectionState;
145 }; 145 };
146 146
147 bool isSelectionOverLink(const MouseEventWithHitTestResults&); 147 bool isSelectionOverLink(const MouseEventWithHitTestResults&);
148 bool isExtendingSelection(const MouseEventWithHitTestResults&); 148 bool isExtendingSelection(const MouseEventWithHitTestResults&);
149 149
150 } // namespace blink 150 } // namespace blink
151 151
152 #endif // SelectionController_h 152 #endif // SelectionController_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/SelectionController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698