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

Side by Side Diff: third_party/WebKit/Source/core/input/EventHandler.h

Issue 2289213002: Implement Middle Click Autoscroll on all platforms not just Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename the files. Created 4 years, 3 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 WTF_MAKE_NONCOPYABLE(EventHandler); 89 WTF_MAKE_NONCOPYABLE(EventHandler);
90 public: 90 public:
91 explicit EventHandler(LocalFrame*); 91 explicit EventHandler(LocalFrame*);
92 ~EventHandler(); 92 ~EventHandler();
93 DECLARE_TRACE(); 93 DECLARE_TRACE();
94 94
95 void clear(); 95 void clear();
96 void nodeWillBeRemoved(Node&); 96 void nodeWillBeRemoved(Node&);
97 97
98 void updateSelectionForMouseDrag(); 98 void updateSelectionForMouseDrag();
99
100 #if OS(WIN)
101 void startPanScrolling(LayoutObject*); 99 void startPanScrolling(LayoutObject*);
bokan 2016/09/07 16:33:46 This should be pan->middleClickAutoscroll, right?
102 #endif
103 100
104 // TODO(nzolghadr): Some of the APIs in this class only forward the action 101 // TODO(nzolghadr): Some of the APIs in this class only forward the action
105 // to the corresponding Manager class. We need to investigate whether it is 102 // to the corresponding Manager class. We need to investigate whether it is
106 // better to expose the manager instance itself later or can the access to 103 // better to expose the manager instance itself later or can the access to
107 // those APIs be more limited or removed. 104 // those APIs be more limited or removed.
108 105
109 void stopAutoscroll(); 106 void stopAutoscroll();
110 107
111 void dispatchFakeMouseMoveEventSoon(); 108 void dispatchFakeMouseMoveEventSoon();
112 void dispatchFakeMouseMoveEventSoonInQuad(const FloatQuad&); 109 void dispatchFakeMouseMoveEventSoonInQuad(const FloatQuad&);
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 // firing for the current gesture sequence (i.e. until next GestureTapDown). 411 // firing for the current gesture sequence (i.e. until next GestureTapDown).
415 bool m_suppressMouseEventsFromGestures; 412 bool m_suppressMouseEventsFromGestures;
416 413
417 // TODO(nzolghadr): Temporary until further refactoring 414 // TODO(nzolghadr): Temporary until further refactoring
418 friend GestureManager; 415 friend GestureManager;
419 }; 416 };
420 417
421 } // namespace blink 418 } // namespace blink
422 419
423 #endif // EventHandler_h 420 #endif // EventHandler_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698