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

Unified Diff: sky/engine/core/page/EventHandler.h

Issue 873963003: Remove more mouse-specific code (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Build fixes Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/page/ChromeClient.h ('k') | sky/engine/core/page/EventHandler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/page/EventHandler.h
diff --git a/sky/engine/core/page/EventHandler.h b/sky/engine/core/page/EventHandler.h
index a6f377099a13e1e5e82eb202439e902e365596a7..cc4ff63c4fb2037fa9da10eb5e2c7d6093bb58a2 100644
--- a/sky/engine/core/page/EventHandler.h
+++ b/sky/engine/core/page/EventHandler.h
@@ -81,31 +81,18 @@ public:
void clear();
void nodeWillBeRemoved(Node&);
- void updateSelectionForMouseDrag();
-
- Node* mousePressNode() const;
-
void stopAutoscroll();
HitTestResult hitTestResultAtPoint(const LayoutPoint&,
HitTestRequest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::Active,
const LayoutSize& padding = LayoutSize());
- bool mousePressed() const { return m_mousePressed; }
- void setMousePressed(bool pressed) { m_mousePressed = pressed; }
-
- void scheduleHoverStateUpdate();
void scheduleCursorUpdate();
- IntPoint lastKnownMousePosition() const;
- Cursor currentMouseCursor() const { return m_currentMouseCursor; }
-
// Attempts to scroll the DOM tree. If that fails, scrolls the view.
// If the view can't be scrolled either, recursively bubble to the parent frame.
bool bubblingScroll(ScrollDirection, ScrollGranularity, Node* startingNode = 0);
- void setMouseDownMayStartAutoscroll() { m_mouseDownMayStartAutoscroll = true; }
-
bool keyEvent(const PlatformKeyboardEvent&);
void defaultKeyboardEventHandler(KeyboardEvent*);
@@ -121,7 +108,6 @@ public:
void notifyElementActivated();
private:
- bool updateSelectionForMouseDownDispatchingSelectStart(Node*, const VisibleSelection&, TextGranularity);
void selectClosestWordFromHitTestResult(const HitTestResult&, AppendTrailingWhitespace);
void selectClosestMisspellingFromHitTestResult(const HitTestResult&, AppendTrailingWhitespace);
@@ -132,8 +118,6 @@ private:
void cursorUpdateTimerFired(Timer<EventHandler>*);
void activeIntervalTimerFired(Timer<EventHandler>*);
- bool mouseDownMayStartSelect() const { return m_mouseDownMayStartSelect; }
-
bool isCursorVisible() const;
void updateCursor();
@@ -166,51 +150,27 @@ private:
void defaultTabEventHandler(KeyboardEvent*);
- void updateSelectionForMouseDrag(const HitTestResult&);
-
- void updateLastScrollbarUnderMouse(Scrollbar*, bool);
-
bool capturesDragging() const { return m_capturesDragging; }
AutoscrollController* autoscrollController() const;
LocalFrame* const m_frame;
- bool m_mousePressed;
bool m_capturesDragging;
- RefPtr<Node> m_mousePressNode;
- bool m_mouseDownMayStartSelect;
- bool m_mouseDownMayStartDrag;
enum SelectionInitiationState { HaveNotStartedSelection, PlacedCaret, ExtendedSelection };
SelectionInitiationState m_selectionInitiationState;
LayoutPoint m_dragStartPos;
- Timer<EventHandler> m_hoverTimer;
Timer<EventHandler> m_cursorUpdateTimer;
- bool m_mouseDownMayStartAutoscroll;
-
- RefPtr<Node> m_nodeUnderMouse;
- RefPtr<Node> m_lastNodeUnderMouse;
- RefPtr<Scrollbar> m_lastScrollbarUnderMouse;
- Cursor m_currentMouseCursor;
-
int m_clickCount;
RefPtr<Node> m_clickNode;
RefPtr<Node> m_dragTarget;
bool m_shouldOnlyFireDragOverEvent;
- bool m_mousePositionIsUnknown;
- IntPoint m_lastKnownMousePosition;
- IntPoint m_lastKnownMouseGlobalPosition;
- IntPoint m_mouseDownPos; // In our view's coords.
-
- RefPtr<Node> m_previousWheelScrolledNode;
-
- double m_maxMouseMovedDuration;
bool m_didStartDrag;
Timer<EventHandler> m_activeIntervalTimer;
« no previous file with comments | « sky/engine/core/page/ChromeClient.h ('k') | sky/engine/core/page/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698