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

Side by Side Diff: ui/mojo/init/ui_init.cc

Issue 1501823003: Add //ui/* to "gn check" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « ui/mojo/init/BUILD.gn ('k') | ui/platform_window/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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
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
OLDNEW
« no previous file with comments | « ui/mojo/init/BUILD.gn ('k') | ui/platform_window/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698