| Index: ui/display/desktop.cc
|
| diff --git a/ui/display/desktop.cc b/ui/display/desktop.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ef4747b3575b59d2a6668684627f217b41665295
|
| --- /dev/null
|
| +++ b/ui/display/desktop.cc
|
| @@ -0,0 +1,37 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "ui/display/desktop.h"
|
| +
|
| +namespace display {
|
| +
|
| +namespace {
|
| +
|
| +Desktop* g_desktop;
|
| +
|
| +} // namespace
|
| +
|
| +Desktop::Desktop() {}
|
| +
|
| +Desktop::~Desktop() {}
|
| +
|
| +// static
|
| +Desktop* Desktop::GetDesktop() {
|
| + return g_desktop;
|
| +}
|
| +
|
| +// static
|
| +void Desktop::SetDesktopInstance(Desktop* instance) {
|
| + g_desktop = instance;
|
| +}
|
| +
|
| +void Desktop::AddObserver(DesktopObserver* observer) {
|
| + desktop_observer_list_.AddObserver(observer);
|
| +}
|
| +
|
| +void Desktop::RemoveObserver(DesktopObserver* observer) {
|
| + desktop_observer_list_.RemoveObserver(observer);
|
| +}
|
| +
|
| +} // namespace display
|
|
|