OLD | NEW |
| (Empty) |
1 // Copyright 2013 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. | |
4 | |
5 #include "ui/views/widget/desktop_aura/desktop_factory_ozone.h" | |
6 | |
7 #include "base/logging.h" | |
8 | |
9 namespace views { | |
10 | |
11 // static | |
12 DesktopFactoryOzone* DesktopFactoryOzone::impl_ = NULL; | |
13 | |
14 DesktopFactoryOzone::DesktopFactoryOzone() { | |
15 } | |
16 | |
17 DesktopFactoryOzone::~DesktopFactoryOzone() { | |
18 } | |
19 | |
20 DesktopFactoryOzone* DesktopFactoryOzone::GetInstance() { | |
21 CHECK(impl_) << "DesktopFactoryOzone accessed before constructed"; | |
22 return impl_; | |
23 } | |
24 | |
25 void DesktopFactoryOzone::SetInstance(DesktopFactoryOzone* impl) { | |
26 impl_ = impl; | |
27 } | |
28 | |
29 } // namespace views | |
OLD | NEW |