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

Side by Side Diff: third_party/WebKit/Source/core/input/ScrollManager.cpp

Issue 2514733003: Move EventHandler timers to per-frame task queues. (Closed)
Patch Set: Remove stray brace Created 4 years 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/input/ScrollManager.h" 5 #include "core/input/ScrollManager.h"
6 6
7 #include "core/dom/DOMNodeIds.h" 7 #include "core/dom/DOMNodeIds.h"
8 #include "core/events/GestureEvent.h" 8 #include "core/events/GestureEvent.h"
9 #include "core/frame/BrowserControls.h" 9 #include "core/frame/BrowserControls.h"
10 #include "core/frame/FrameHost.h" 10 #include "core/frame/FrameHost.h"
(...skipping 10 matching lines...) Expand all
21 #include "core/page/scrolling/OverscrollController.h" 21 #include "core/page/scrolling/OverscrollController.h"
22 #include "core/page/scrolling/RootScrollerController.h" 22 #include "core/page/scrolling/RootScrollerController.h"
23 #include "core/page/scrolling/ScrollState.h" 23 #include "core/page/scrolling/ScrollState.h"
24 #include "core/paint/PaintLayer.h" 24 #include "core/paint/PaintLayer.h"
25 #include "platform/PlatformGestureEvent.h" 25 #include "platform/PlatformGestureEvent.h"
26 #include "wtf/PtrUtil.h" 26 #include "wtf/PtrUtil.h"
27 #include <memory> 27 #include <memory>
28 28
29 namespace blink { 29 namespace blink {
30 30
31 ScrollManager::ScrollManager(LocalFrame* frame) : m_frame(frame) { 31 ScrollManager::ScrollManager(LocalFrame& frame) : m_frame(frame) {
32 clear(); 32 clear();
33 } 33 }
34 34
35 void ScrollManager::clear() { 35 void ScrollManager::clear() {
36 m_lastGestureScrollOverWidget = false; 36 m_lastGestureScrollOverWidget = false;
37 m_scrollbarHandlingScrollGesture = nullptr; 37 m_scrollbarHandlingScrollGesture = nullptr;
38 m_resizeScrollableArea = nullptr; 38 m_resizeScrollableArea = nullptr;
39 m_offsetFromResizeCorner = LayoutSize(); 39 m_offsetFromResizeCorner = LayoutSize();
40 clearGestureScrollState(); 40 clearGestureScrollState();
41 } 41 }
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 if (scrollbar->gestureEvent(targetedEvent.event(), &shouldUpdateCapture)) { 533 if (scrollbar->gestureEvent(targetedEvent.event(), &shouldUpdateCapture)) {
534 if (shouldUpdateCapture) 534 if (shouldUpdateCapture)
535 m_scrollbarHandlingScrollGesture = scrollbar; 535 m_scrollbarHandlingScrollGesture = scrollbar;
536 return true; 536 return true;
537 } 537 }
538 } 538 }
539 return false; 539 return false;
540 } 540 }
541 541
542 } // namespace blink 542 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/input/ScrollManager.h ('k') | third_party/WebKit/Source/core/input/TouchEventManager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698