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

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

Issue 2785853002: Selection Action mode triggered like a context menu (Closed)
Patch Set: fix rebase Created 3 years, 6 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 }; 95 };
96 96
97 Document& GetDocument() const; 97 Document& GetDocument() const;
98 98
99 // Returns |true| if a word was selected. 99 // Returns |true| if a word was selected.
100 bool SelectClosestWordFromHitTestResult(const HitTestResult&, 100 bool SelectClosestWordFromHitTestResult(const HitTestResult&,
101 AppendTrailingWhitespace, 101 AppendTrailingWhitespace,
102 SelectInputEventType); 102 SelectInputEventType);
103 void SelectClosestMisspellingFromHitTestResult(const HitTestResult&, 103 void SelectClosestMisspellingFromHitTestResult(const HitTestResult&,
104 AppendTrailingWhitespace); 104 AppendTrailingWhitespace);
105 void SelectClosestWordFromMouseEvent(const MouseEventWithHitTestResults&); 105 // Returns |true| if a word was selected.
106 bool SelectClosestWordFromMouseEvent(const MouseEventWithHitTestResults&);
106 void SelectClosestMisspellingFromMouseEvent( 107 void SelectClosestMisspellingFromMouseEvent(
107 const MouseEventWithHitTestResults&); 108 const MouseEventWithHitTestResults&);
108 void SelectClosestWordOrLinkFromMouseEvent( 109 void SelectClosestWordOrLinkFromMouseEvent(
109 const MouseEventWithHitTestResults&); 110 const MouseEventWithHitTestResults&);
110 void SetNonDirectionalSelectionIfNeeded(const SelectionInFlatTree&, 111 void SetNonDirectionalSelectionIfNeeded(const SelectionInFlatTree&,
111 TextGranularity, 112 TextGranularity,
112 EndPointsAdjustmentMode, 113 EndPointsAdjustmentMode,
113 HandleVisibility); 114 HandleVisibility);
114 void SetCaretAtHitTestResult(const HitTestResult&); 115 void SetCaretAtHitTestResult(const HitTestResult&);
115 bool UpdateSelectionForMouseDownDispatchingSelectStart( 116 bool UpdateSelectionForMouseDownDispatchingSelectStart(
(...skipping 28 matching lines...) Expand all
144 }; 145 };
145 SelectionState selection_state_; 146 SelectionState selection_state_;
146 }; 147 };
147 148
148 bool IsLinkSelection(const MouseEventWithHitTestResults&); 149 bool IsLinkSelection(const MouseEventWithHitTestResults&);
149 bool IsExtendingSelection(const MouseEventWithHitTestResults&); 150 bool IsExtendingSelection(const MouseEventWithHitTestResults&);
150 151
151 } // namespace blink 152 } // namespace blink
152 153
153 #endif // SelectionController_h 154 #endif // SelectionController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698