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

Side by Side Diff: ui/events/blink/input_handler_proxy.h

Issue 2479023003: Remove is_fling flag for fling intervention (Closed)
Patch Set: Make enum explicitly Created 4 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef UI_EVENTS_BLINK_INPUT_HANDLER_PROXY_H_ 5 #ifndef UI_EVENTS_BLINK_INPUT_HANDLER_PROXY_H_
6 #define UI_EVENTS_BLINK_INPUT_HANDLER_PROXY_H_ 6 #define UI_EVENTS_BLINK_INPUT_HANDLER_PROXY_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 InputScrollElasticityController* scroll_elasticity_controller() { 47 InputScrollElasticityController* scroll_elasticity_controller() {
48 return scroll_elasticity_controller_.get(); 48 return scroll_elasticity_controller_.get();
49 } 49 }
50 50
51 void set_smooth_scroll_enabled(bool value) { smooth_scroll_enabled_ = value; } 51 void set_smooth_scroll_enabled(bool value) { smooth_scroll_enabled_ = value; }
52 52
53 enum EventDisposition { 53 enum EventDisposition {
54 DID_HANDLE, 54 DID_HANDLE,
55 DID_NOT_HANDLE, 55 DID_NOT_HANDLE,
56 DID_NOT_HANDLE_NON_BLOCKING_DUE_TO_FLING,
56 DID_HANDLE_NON_BLOCKING, 57 DID_HANDLE_NON_BLOCKING,
57 DROP_EVENT 58 DROP_EVENT
58 }; 59 };
59 using EventDispositionCallback = 60 using EventDispositionCallback =
60 base::Callback<void(EventDisposition, 61 base::Callback<void(EventDisposition,
61 ScopedWebInputEvent WebInputEvent, 62 ScopedWebInputEvent WebInputEvent,
62 const LatencyInfo&, 63 const LatencyInfo&,
63 std::unique_ptr<ui::DidOverscrollParams>)>; 64 std::unique_ptr<ui::DidOverscrollParams>)>;
64 void HandleInputEventWithLatencyInfo( 65 void HandleInputEventWithLatencyInfo(
65 ScopedWebInputEvent event, 66 ScopedWebInputEvent event,
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 // bundled in the event ack, saving an IPC. Note that we must continue 227 // bundled in the event ack, saving an IPC. Note that we must continue
227 // supporting overscroll IPC notifications due to fling animation updates. 228 // supporting overscroll IPC notifications due to fling animation updates.
228 std::unique_ptr<DidOverscrollParams> current_overscroll_params_; 229 std::unique_ptr<DidOverscrollParams> current_overscroll_params_;
229 230
230 DISALLOW_COPY_AND_ASSIGN(InputHandlerProxy); 231 DISALLOW_COPY_AND_ASSIGN(InputHandlerProxy);
231 }; 232 };
232 233
233 } // namespace ui 234 } // namespace ui
234 235
235 #endif // UI_EVENTS_BLINK_INPUT_HANDLER_PROXY_H_ 236 #endif // UI_EVENTS_BLINK_INPUT_HANDLER_PROXY_H_
OLDNEW
« no previous file with comments | « third_party/WebKit/public/platform/WebInputEvent.h ('k') | ui/events/blink/input_handler_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698