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

Side by Side Diff: third_party/WebKit/Source/core/input/InputDeviceCapabilities.cpp

Issue 1922763003: Remove unnecessary uses of GarbageCollectedFinalized<>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: undo revival of unused includes Created 4 years, 7 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 // Copyright 2015 The Chromium Authors. All rights reserved. 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 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 #include "core/input/InputDeviceCapabilities.h" 5 #include "core/input/InputDeviceCapabilities.h"
6 6
7 namespace blink { 7 namespace blink {
8 8
9 InputDeviceCapabilities::InputDeviceCapabilities(bool firesTouchEvents) 9 InputDeviceCapabilities::InputDeviceCapabilities(bool firesTouchEvents)
10 { 10 {
11 m_firesTouchEvents = firesTouchEvents; 11 m_firesTouchEvents = firesTouchEvents;
12 } 12 }
13 13
14 InputDeviceCapabilities::InputDeviceCapabilities(const InputDeviceCapabilitiesIn it& initializer) 14 InputDeviceCapabilities::InputDeviceCapabilities(const InputDeviceCapabilitiesIn it& initializer)
15 { 15 {
16 m_firesTouchEvents = initializer.firesTouchEvents(); 16 m_firesTouchEvents = initializer.firesTouchEvents();
17 } 17 }
18 18
19 InputDeviceCapabilities::~InputDeviceCapabilities()
20 {
21 }
22
23 InputDeviceCapabilities* InputDeviceCapabilities::firesTouchEventsSourceCapabili ties() 19 InputDeviceCapabilities* InputDeviceCapabilities::firesTouchEventsSourceCapabili ties()
24 { 20 {
25 DEFINE_STATIC_LOCAL(InputDeviceCapabilities, instance, (InputDeviceCapabilit ies::create(true))); 21 DEFINE_STATIC_LOCAL(InputDeviceCapabilities, instance, (InputDeviceCapabilit ies::create(true)));
26 return &instance; 22 return &instance;
27 } 23 }
28 24
29 InputDeviceCapabilities* InputDeviceCapabilities::doesntFireTouchEventsSourceCap abilities() 25 InputDeviceCapabilities* InputDeviceCapabilities::doesntFireTouchEventsSourceCap abilities()
30 { 26 {
31 DEFINE_STATIC_LOCAL(InputDeviceCapabilities, instance, (InputDeviceCapabilit ies::create(false))); 27 DEFINE_STATIC_LOCAL(InputDeviceCapabilities, instance, (InputDeviceCapabilit ies::create(false)));
32 return &instance; 28 return &instance;
33 } 29 }
34 30
35 } // namespace blink 31 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698