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

Side by Side Diff: Source/core/input/InputDevice.h

Issue 1157173003: Impelement InputDevice.firesTouchEvents (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 6 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
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/input/InputDevice.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef InputDevice_h
6 #define InputDevice_h
7
8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/CoreExport.h"
10 #include "core/input/InputDeviceInit.h"
11
12 namespace blink {
13
14 class CORE_EXPORT InputDevice : public GarbageCollectedFinalized<InputDevice>, p ublic ScriptWrappable {
15 DEFINE_WRAPPERTYPEINFO();
16
17 public:
18 ~InputDevice();
19 static InputDevice* create(bool firesTouchEvents)
20 {
21 return new InputDevice(firesTouchEvents);
22 }
23
24 static InputDevice* create(
25 const InputDeviceInit& initializer)
26 {
27 return new InputDevice(initializer);
28 }
29
30 bool firesTouchEvents() const { return m_firesTouchEvents; }
31
32 DEFINE_INLINE_TRACE() { }
33
34 private:
35 InputDevice(bool firesTouchEvents);
36 InputDevice(const InputDeviceInit&);
37
38 // Whether this device dispatches touch events. This mainly lets developers
39 // avoid handling both touch and mouse events dispatched for a single user
40 // action.
41 bool m_firesTouchEvents;
42 };
43
44 } // namespace blink
45
46 #endif // InputDevice_h
OLDNEW
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/input/InputDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698