| OLD | NEW |
| 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 #include "ui/events/gesture_detection/gesture_configuration.h" | 5 #include "ui/events/gesture_detection/gesture_configuration.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "ui/events/event_switches.h" | 8 #include "ui/events/event_switches.h" |
| 9 | 9 |
| 10 namespace ui { | 10 namespace ui { |
| 11 namespace { | 11 namespace { |
| 12 | 12 |
| 13 class GESTURE_DETECTION_EXPORT GestureConfigurationAura | 13 class GestureConfigurationAura : public GestureConfiguration { |
| 14 : public GestureConfiguration { | |
| 15 public: | 14 public: |
| 16 ~GestureConfigurationAura() override { | 15 ~GestureConfigurationAura() override { |
| 17 } | 16 } |
| 18 | 17 |
| 19 static GestureConfigurationAura* GetInstance() { | 18 static GestureConfigurationAura* GetInstance() { |
| 20 return Singleton<GestureConfigurationAura>::get(); | 19 return Singleton<GestureConfigurationAura>::get(); |
| 21 } | 20 } |
| 22 | 21 |
| 23 private: | 22 private: |
| 24 GestureConfigurationAura() : GestureConfiguration() { | 23 GestureConfigurationAura() : GestureConfiguration() { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 40 }; | 39 }; |
| 41 | 40 |
| 42 } // namespace | 41 } // namespace |
| 43 | 42 |
| 44 // Create a GestureConfigurationAura singleton instance when using aura. | 43 // Create a GestureConfigurationAura singleton instance when using aura. |
| 45 GestureConfiguration* GestureConfiguration::GetInstance() { | 44 GestureConfiguration* GestureConfiguration::GetInstance() { |
| 46 return GestureConfigurationAura::GetInstance(); | 45 return GestureConfigurationAura::GetInstance(); |
| 47 } | 46 } |
| 48 | 47 |
| 49 } // namespace ui | 48 } // namespace ui |
| OLD | NEW |