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
3 // found in the LICENSE file.
5 #include "ui/events/gesture_detection/gesture_configuration.h"
7 #include "base/memory/singleton.h"
8 #include "ui/gfx/screen.h"
12 class GestureConfigurationDefault
: public GestureConfiguration
{
14 ~GestureConfigurationDefault() override
{
17 static GestureConfigurationDefault
* GetInstance() {
18 return base::Singleton
<GestureConfigurationDefault
>::get();
22 GestureConfigurationDefault() {}
24 friend struct base::DefaultSingletonTraits
<GestureConfigurationDefault
>;
25 DISALLOW_COPY_AND_ASSIGN(GestureConfigurationDefault
);
30 // Create a GestureConfiguration singleton instance when using Mac.
31 GestureConfiguration
* GestureConfiguration::GetPlatformSpecificInstance() {
32 return GestureConfigurationDefault::GetInstance();