OLD | NEW |
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 "ui/mojo/init/ui_init.h" | 5 #include "ui/mojo/init/ui_init.h" |
6 | 6 |
7 #include "base/memory/singleton.h" | 7 #include "base/memory/singleton.h" |
8 #include "ui/mojo/init/screen_mojo.h" | 8 #include "ui/mojo/init/screen_mojo.h" |
9 | 9 |
10 #if defined(OS_ANDROID) | 10 #if defined(OS_ANDROID) |
11 #include "ui/events/gesture_detection/gesture_configuration.h" | 11 #include "ui/events/gesture_detection/gesture_configuration.h" // nogncheck |
12 #endif | 12 #endif |
13 | 13 |
14 namespace ui { | 14 namespace ui { |
15 namespace mojo { | 15 namespace mojo { |
16 | 16 |
17 #if defined(OS_ANDROID) | 17 #if defined(OS_ANDROID) |
18 // TODO(sky): this needs to come from system. | 18 // TODO(sky): this needs to come from system. |
19 class GestureConfigurationMojo : public ui::GestureConfiguration { | 19 class GestureConfigurationMojo : public ui::GestureConfiguration { |
20 public: | 20 public: |
21 GestureConfigurationMojo() : GestureConfiguration() { | 21 GestureConfigurationMojo() : GestureConfiguration() { |
(...skipping 28 matching lines...) Expand all Loading... |
50 | 50 |
51 UIInit::~UIInit() { | 51 UIInit::~UIInit() { |
52 gfx::Screen::SetScreenInstance(gfx::SCREEN_TYPE_NATIVE, nullptr); | 52 gfx::Screen::SetScreenInstance(gfx::SCREEN_TYPE_NATIVE, nullptr); |
53 #if defined(OS_ANDROID) | 53 #if defined(OS_ANDROID) |
54 ui::GestureConfiguration::SetInstance(nullptr); | 54 ui::GestureConfiguration::SetInstance(nullptr); |
55 #endif | 55 #endif |
56 } | 56 } |
57 | 57 |
58 } // namespace mojo | 58 } // namespace mojo |
59 } // namespace ui | 59 } // namespace ui |
OLD | NEW |