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

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

Issue 2497033002: Break apart WebGestureEvent from WebInputEvent. (Closed)
Patch Set: Rebase 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
« no previous file with comments | « ui/events/blink/input_handler_proxy.h ('k') | ui/events/blink/web_input_event.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SCROLL_ELASTICITY_CONTROLLER_H_ 5 #ifndef UI_EVENTS_BLINK_INPUT_SCROLL_ELASTICITY_CONTROLLER_H_
6 #define UI_EVENTS_BLINK_INPUT_SCROLL_ELASTICITY_CONTROLLER_H_ 6 #define UI_EVENTS_BLINK_INPUT_SCROLL_ELASTICITY_CONTROLLER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "cc/input/scroll_elasticity_helper.h" 10 #include "cc/input/scroll_elasticity_helper.h"
11 #include "third_party/WebKit/public/platform/WebGestureEvent.h"
11 #include "third_party/WebKit/public/platform/WebInputEvent.h" 12 #include "third_party/WebKit/public/platform/WebInputEvent.h"
12 13
13 // InputScrollElasticityController is based on 14 // InputScrollElasticityController is based on
14 // WebKit/Source/platform/mac/ScrollElasticityController.h 15 // WebKit/Source/platform/mac/ScrollElasticityController.h
15 /* 16 /*
16 * Copyright (C) 2011 Apple Inc. All rights reserved. 17 * Copyright (C) 2011 Apple Inc. All rights reserved.
17 * 18 *
18 * Redistribution and use in source and binary forms, with or without 19 * Redistribution and use in source and binary forms, with or without
19 * modification, are permitted provided that the following conditions 20 * modification, are permitted provided that the following conditions
20 * are met: 21 * are met:
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 // behavior as would happen if the scroll were caused by an active scroll). 140 // behavior as would happen if the scroll were caused by an active scroll).
140 bool momentum_animation_reset_at_next_frame_; 141 bool momentum_animation_reset_at_next_frame_;
141 142
142 base::WeakPtrFactory<InputScrollElasticityController> weak_factory_; 143 base::WeakPtrFactory<InputScrollElasticityController> weak_factory_;
143 DISALLOW_COPY_AND_ASSIGN(InputScrollElasticityController); 144 DISALLOW_COPY_AND_ASSIGN(InputScrollElasticityController);
144 }; 145 };
145 146
146 } // namespace ui 147 } // namespace ui
147 148
148 #endif // UI_EVENTS_BLINK_INPUT_SCROLL_ELASTICITY_CONTROLLER_H_ 149 #endif // UI_EVENTS_BLINK_INPUT_SCROLL_ELASTICITY_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ui/events/blink/input_handler_proxy.h ('k') | ui/events/blink/web_input_event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698