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

Side by Side Diff: sky/engine/core/page/EventHandler.h

Issue 925933004: Prune HitTestResult and stop special-casing links. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 * 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 void defaultKeyboardEventHandler(KeyboardEvent*); 81 void defaultKeyboardEventHandler(KeyboardEvent*);
82 82
83 bool handleTextInputEvent(const String& text, Event* underlyingEvent = 0, Te xtEventInputType = TextEventInputKeyboard); 83 bool handleTextInputEvent(const String& text, Event* underlyingEvent = 0, Te xtEventInputType = TextEventInputKeyboard);
84 void defaultTextInputEventHandler(TextEvent*); 84 void defaultTextInputEventHandler(TextEvent*);
85 85
86 void focusDocumentView(); 86 void focusDocumentView();
87 87
88 void capsLockStateMayHaveChanged(); // Only called by FrameSelection 88 void capsLockStateMayHaveChanged(); // Only called by FrameSelection
89 89
90 bool useHandCursor(Node*, bool isOverLink);
91
92 void notifyElementActivated(); 90 void notifyElementActivated();
93 91
94 private: 92 private:
95 void selectClosestWordFromHitTestResult(const HitTestResult&, AppendTrailing Whitespace); 93 void selectClosestWordFromHitTestResult(const HitTestResult&, AppendTrailing Whitespace);
96 void selectClosestMisspellingFromHitTestResult(const HitTestResult&, AppendT railingWhitespace); 94 void selectClosestMisspellingFromHitTestResult(const HitTestResult&, AppendT railingWhitespace);
97 95
98 OptionalCursor selectCursor(const HitTestResult&); 96 OptionalCursor selectCursor(const HitTestResult&);
99 OptionalCursor selectAutoCursor(const HitTestResult&, Node*, const Cursor& i Beam); 97 OptionalCursor selectAutoCursor(const HitTestResult&, Node*);
100 98
101 void hoverTimerFired(Timer<EventHandler>*); 99 void hoverTimerFired(Timer<EventHandler>*);
102 void cursorUpdateTimerFired(Timer<EventHandler>*); 100 void cursorUpdateTimerFired(Timer<EventHandler>*);
103 void activeIntervalTimerFired(Timer<EventHandler>*); 101 void activeIntervalTimerFired(Timer<EventHandler>*);
104 102
105 bool isCursorVisible() const; 103 bool isCursorVisible() const;
106 void updateCursor(); 104 void updateCursor();
107 105
108 TouchAction intersectTouchAction(const TouchAction, const TouchAction); 106 TouchAction intersectTouchAction(const TouchAction, const TouchAction);
109 TouchAction computeEffectiveTouchAction(const Node&); 107 TouchAction computeEffectiveTouchAction(const Node&);
(...skipping 29 matching lines...) Expand all
139 bool m_didStartDrag; 137 bool m_didStartDrag;
140 138
141 Timer<EventHandler> m_activeIntervalTimer; 139 Timer<EventHandler> m_activeIntervalTimer;
142 double m_lastShowPressTimestamp; 140 double m_lastShowPressTimestamp;
143 RefPtr<Element> m_lastDeferredTapElement; 141 RefPtr<Element> m_lastDeferredTapElement;
144 }; 142 };
145 143
146 } // namespace blink 144 } // namespace blink
147 145
148 #endif // SKY_ENGINE_CORE_PAGE_EVENTHANDLER_H_ 146 #endif // SKY_ENGINE_CORE_PAGE_EVENTHANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/page/EventHandler.cpp » ('j') | sky/engine/core/page/EventHandler.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698