Chromium Code Reviews| 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 * | 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 void notifySelectionChanged(); |
| 198 | 198 |
| 199 PassRefPtr<UserGestureToken> takeLastMouseDownGestureToken() { return m_last MouseDownUserGestureToken.release(); } | 199 PassRefPtr<UserGestureToken> takeLastMouseDownGestureToken() { return m_last MouseDownUserGestureToken.release(); } |
| 200 | 200 |
| 201 int clickCount() { return m_clickCount; } | |
| 202 bool isMouseDownWasSingleClickInSelection() { return m_mouseDownWasSingleCli ckInSelection; } | |
|
tkent
2014/09/16 01:53:38
The function names is wrong. It should reflect th
deepak.sa
2014/09/16 10:31:16
Done.
| |
| 203 | |
| 201 private: | 204 private: |
| 202 static DragState& dragState(); | 205 static DragState& dragState(); |
| 203 | 206 |
| 204 PassRefPtrWillBeRawPtr<DataTransfer> createDraggingDataTransfer() const; | 207 PassRefPtrWillBeRawPtr<DataTransfer> createDraggingDataTransfer() const; |
| 205 | 208 |
| 206 bool updateSelectionForMouseDownDispatchingSelectStart(Node*, const VisibleS election&, TextGranularity); | 209 bool updateSelectionForMouseDownDispatchingSelectStart(Node*, const VisibleS election&, TextGranularity); |
| 207 void selectClosestWordFromHitTestResult(const HitTestResult&, AppendTrailing Whitespace); | 210 void selectClosestWordFromHitTestResult(const HitTestResult&, AppendTrailing Whitespace); |
| 208 void selectClosestMisspellingFromHitTestResult(const HitTestResult&, AppendT railingWhitespace); | 211 void selectClosestMisspellingFromHitTestResult(const HitTestResult&, AppendT railingWhitespace); |
| 209 void selectClosestWordFromMouseEvent(const MouseEventWithHitTestResults&); | 212 void selectClosestWordFromMouseEvent(const MouseEventWithHitTestResults&); |
| 210 void selectClosestMisspellingFromMouseEvent(const MouseEventWithHitTestResul ts&); | 213 void selectClosestMisspellingFromMouseEvent(const MouseEventWithHitTestResul ts&); |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 403 bool m_longTapShouldInvokeContextMenu; | 406 bool m_longTapShouldInvokeContextMenu; |
| 404 | 407 |
| 405 Timer<EventHandler> m_activeIntervalTimer; | 408 Timer<EventHandler> m_activeIntervalTimer; |
| 406 double m_lastShowPressTimestamp; | 409 double m_lastShowPressTimestamp; |
| 407 RefPtrWillBeMember<Element> m_lastDeferredTapElement; | 410 RefPtrWillBeMember<Element> m_lastDeferredTapElement; |
| 408 }; | 411 }; |
| 409 | 412 |
| 410 } // namespace blink | 413 } // namespace blink |
| 411 | 414 |
| 412 #endif // EventHandler_h | 415 #endif // EventHandler_h |
| OLD | NEW |