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

Side by Side Diff: Source/core/page/EventHandler.h

Issue 507533002: Fix to keep the selection of the text field in input element after setSelectionRange is called by d… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 3 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 | « Source/core/editing/FrameSelection.cpp ('k') | Source/core/page/EventHandler.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 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 187
188 void focusDocumentView(); 188 void focusDocumentView();
189 189
190 void capsLockStateMayHaveChanged(); // Only called by FrameSelection 190 void capsLockStateMayHaveChanged(); // Only called by FrameSelection
191 191
192 bool handleTouchEvent(const PlatformTouchEvent&); 192 bool handleTouchEvent(const PlatformTouchEvent&);
193 193
194 bool useHandCursor(Node*, bool isOverLink); 194 bool useHandCursor(Node*, bool isOverLink);
195 195
196 void notifyElementActivated(); 196 void notifyElementActivated();
197 void notifySelectionChanged();
197 198
198 PassRefPtr<UserGestureToken> takeLastMouseDownGestureToken() { return m_last MouseDownUserGestureToken.release(); } 199 PassRefPtr<UserGestureToken> takeLastMouseDownGestureToken() { return m_last MouseDownUserGestureToken.release(); }
199 200
200 private: 201 private:
201 static DragState& dragState(); 202 static DragState& dragState();
202 203
203 PassRefPtrWillBeRawPtr<DataTransfer> createDraggingDataTransfer() const; 204 PassRefPtrWillBeRawPtr<DataTransfer> createDraggingDataTransfer() const;
204 205
205 bool updateSelectionForMouseDownDispatchingSelectStart(Node*, const VisibleS election&, TextGranularity); 206 bool updateSelectionForMouseDownDispatchingSelectStart(Node*, const VisibleS election&, TextGranularity);
206 void selectClosestWordFromHitTestResult(const HitTestResult&, AppendTrailing Whitespace); 207 void selectClosestWordFromHitTestResult(const HitTestResult&, AppendTrailing Whitespace);
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 bool m_longTapShouldInvokeContextMenu; 403 bool m_longTapShouldInvokeContextMenu;
403 404
404 Timer<EventHandler> m_activeIntervalTimer; 405 Timer<EventHandler> m_activeIntervalTimer;
405 double m_lastShowPressTimestamp; 406 double m_lastShowPressTimestamp;
406 RefPtrWillBeMember<Element> m_lastDeferredTapElement; 407 RefPtrWillBeMember<Element> m_lastDeferredTapElement;
407 }; 408 };
408 409
409 } // namespace blink 410 } // namespace blink
410 411
411 #endif // EventHandler_h 412 #endif // EventHandler_h
OLDNEW
« no previous file with comments | « Source/core/editing/FrameSelection.cpp ('k') | Source/core/page/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698