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

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

Issue 879993004: Remove ScrollableArea and Scrollbar (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
« no previous file with comments | « sky/engine/core/loader/FrameLoader.cpp ('k') | sky/engine/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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 class FloatPoint; 51 class FloatPoint;
52 class FloatQuad; 52 class FloatQuad;
53 class HitTestRequest; 53 class HitTestRequest;
54 class HitTestResult; 54 class HitTestResult;
55 class KeyboardEvent; 55 class KeyboardEvent;
56 class LocalFrame; 56 class LocalFrame;
57 class Node; 57 class Node;
58 class OptionalCursor; 58 class OptionalCursor;
59 class RenderLayer; 59 class RenderLayer;
60 class RenderObject; 60 class RenderObject;
61 class ScrollableArea;
62 class Scrollbar;
63 class TextEvent; 61 class TextEvent;
64 class VisibleSelection; 62 class VisibleSelection;
65 class Widget; 63 class Widget;
66 64
67 enum AppendTrailingWhitespace { ShouldAppendTrailingWhitespace, DontAppendTraili ngWhitespace }; 65 enum AppendTrailingWhitespace { ShouldAppendTrailingWhitespace, DontAppendTraili ngWhitespace };
68 enum CheckDragHysteresis { ShouldCheckDragHysteresis, DontCheckDragHysteresis }; 66 enum CheckDragHysteresis { ShouldCheckDragHysteresis, DontCheckDragHysteresis };
69 67
70 class EventHandler { 68 class EventHandler {
71 WTF_MAKE_NONCOPYABLE(EventHandler); 69 WTF_MAKE_NONCOPYABLE(EventHandler);
72 public: 70 public:
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 OptionalCursor selectCursor(const HitTestResult&); 106 OptionalCursor selectCursor(const HitTestResult&);
109 OptionalCursor selectAutoCursor(const HitTestResult&, Node*, const Cursor& i Beam); 107 OptionalCursor selectAutoCursor(const HitTestResult&, Node*, const Cursor& i Beam);
110 108
111 void hoverTimerFired(Timer<EventHandler>*); 109 void hoverTimerFired(Timer<EventHandler>*);
112 void cursorUpdateTimerFired(Timer<EventHandler>*); 110 void cursorUpdateTimerFired(Timer<EventHandler>*);
113 void activeIntervalTimerFired(Timer<EventHandler>*); 111 void activeIntervalTimerFired(Timer<EventHandler>*);
114 112
115 bool isCursorVisible() const; 113 bool isCursorVisible() const;
116 void updateCursor(); 114 void updateCursor();
117 115
118 bool isInsideScrollbar(const IntPoint&) const;
119
120 // Scrolls the elements of the DOM tree. Returns true if a node was scrolled . 116 // Scrolls the elements of the DOM tree. Returns true if a node was scrolled .
121 // False if we reached the root and couldn't scroll anything. 117 // False if we reached the root and couldn't scroll anything.
122 // direction - The direction to scroll in. If this is a logicl direction, it will be 118 // direction - The direction to scroll in. If this is a logicl direction, it will be
123 // converted to the physical direction based on a node's writing mode. 119 // converted to the physical direction based on a node's writing mode.
124 // granularity - The units that the scroll delta parameter is in. 120 // granularity - The units that the scroll delta parameter is in.
125 // startNode - The node to start bubbling the scroll from. If a node can't s croll, 121 // startNode - The node to start bubbling the scroll from. If a node can't s croll,
126 // the scroll bubbles up to the containing block. 122 // the scroll bubbles up to the containing block.
127 // stopNode - On input, if provided and non-null, the node at which we shoul d stop bubbling on input. 123 // stopNode - On input, if provided and non-null, the node at which we shoul d stop bubbling on input.
128 // On output, if provided and a node was scrolled stopNode will p oint to that node. 124 // On output, if provided and a node was scrolled stopNode will p oint to that node.
129 // delta - The delta to scroll by, in the units of the granularity parameter . (e.g. pixels, lines, pages, etc.) 125 // delta - The delta to scroll by, in the units of the granularity parameter . (e.g. pixels, lines, pages, etc.)
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 bool m_didStartDrag; 162 bool m_didStartDrag;
167 163
168 Timer<EventHandler> m_activeIntervalTimer; 164 Timer<EventHandler> m_activeIntervalTimer;
169 double m_lastShowPressTimestamp; 165 double m_lastShowPressTimestamp;
170 RefPtr<Element> m_lastDeferredTapElement; 166 RefPtr<Element> m_lastDeferredTapElement;
171 }; 167 };
172 168
173 } // namespace blink 169 } // namespace blink
174 170
175 #endif // SKY_ENGINE_CORE_PAGE_EVENTHANDLER_H_ 171 #endif // SKY_ENGINE_CORE_PAGE_EVENTHANDLER_H_
OLDNEW
« no previous file with comments | « sky/engine/core/loader/FrameLoader.cpp ('k') | sky/engine/core/page/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698