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

Side by Side Diff: third_party/WebKit/Source/core/page/AutoscrollController.cpp

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed. 3 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed.
4 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) 4 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org)
5 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) 5 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies)
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 25 matching lines...) Expand all
36 #include "core/layout/LayoutListBox.h" 36 #include "core/layout/LayoutListBox.h"
37 #include "core/page/ChromeClient.h" 37 #include "core/page/ChromeClient.h"
38 #include "core/page/Page.h" 38 #include "core/page/Page.h"
39 #include "wtf/CurrentTime.h" 39 #include "wtf/CurrentTime.h"
40 40
41 namespace blink { 41 namespace blink {
42 42
43 // Delay time in second for start autoscroll if pointer is in border edge of scr ollable element. 43 // Delay time in second for start autoscroll if pointer is in border edge of scr ollable element.
44 static double autoscrollDelay = 0.2; 44 static double autoscrollDelay = 0.2;
45 45
46 PassOwnPtrWillBeRawPtr<AutoscrollController> AutoscrollController::create(Page& page) 46 RawPtr<AutoscrollController> AutoscrollController::create(Page& page)
47 { 47 {
48 return adoptPtrWillBeNoop(new AutoscrollController(page)); 48 return new AutoscrollController(page);
49 } 49 }
50 50
51 AutoscrollController::AutoscrollController(Page& page) 51 AutoscrollController::AutoscrollController(Page& page)
52 : m_page(&page) 52 : m_page(&page)
53 , m_autoscrollLayoutObject(nullptr) 53 , m_autoscrollLayoutObject(nullptr)
54 , m_pressedLayoutObject(nullptr) 54 , m_pressedLayoutObject(nullptr)
55 , m_autoscrollType(NoAutoscroll) 55 , m_autoscrollType(NoAutoscroll)
56 , m_dragAndDropAutoscrollStartTime(0) 56 , m_dragAndDropAutoscrollStartTime(0)
57 { 57 {
58 } 58 }
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 view->setCursor(eastPanningCursor()); 310 view->setCursor(eastPanningCursor());
311 } else if (west) { 311 } else if (west) {
312 view->setCursor(westPanningCursor()); 312 view->setCursor(westPanningCursor());
313 } else { 313 } else {
314 view->setCursor(middlePanningCursor()); 314 view->setCursor(middlePanningCursor());
315 } 315 }
316 } 316 }
317 #endif 317 #endif
318 318
319 } // namespace blink 319 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/page/AutoscrollController.h ('k') | third_party/WebKit/Source/core/page/ChromeClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698