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

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: fixing tests 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 bool SelectClosestWordFromMouseEvent(const MouseEventWithHitTestResults&);
yosin_UTC9 2017/05/25 04:47:21 Please add a comment for |bool| return value.
amaralp1 2017/05/25 07:11:56 Done.
106 void SelectClosestMisspellingFromMouseEvent( 106 void SelectClosestMisspellingFromMouseEvent(
107 const MouseEventWithHitTestResults&); 107 const MouseEventWithHitTestResults&);
108 void SelectClosestWordOrLinkFromMouseEvent( 108 void SelectClosestWordOrLinkFromMouseEvent(
109 const MouseEventWithHitTestResults&); 109 const MouseEventWithHitTestResults&);
110 void SetNonDirectionalSelectionIfNeeded(const SelectionInFlatTree&, 110 void SetNonDirectionalSelectionIfNeeded(const SelectionInFlatTree&,
111 TextGranularity, 111 TextGranularity,
112 EndPointsAdjustmentMode, 112 EndPointsAdjustmentMode,
113 HandleVisibility); 113 HandleVisibility);
114 void SetCaretAtHitTestResult(const HitTestResult&); 114 void SetCaretAtHitTestResult(const HitTestResult&);
115 bool UpdateSelectionForMouseDownDispatchingSelectStart( 115 bool UpdateSelectionForMouseDownDispatchingSelectStart(
(...skipping 28 matching lines...) Expand all
144 }; 144 };
145 SelectionState selection_state_; 145 SelectionState selection_state_;
146 }; 146 };
147 147
148 bool IsLinkSelection(const MouseEventWithHitTestResults&); 148 bool IsLinkSelection(const MouseEventWithHitTestResults&);
149 bool IsExtendingSelection(const MouseEventWithHitTestResults&); 149 bool IsExtendingSelection(const MouseEventWithHitTestResults&);
150 150
151 } // namespace blink 151 } // namespace blink
152 152
153 #endif // SelectionController_h 153 #endif // SelectionController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698