| Index: ui/views/test/test_desktop_screen_x11.cc
|
| diff --git a/ui/views/test/test_desktop_screen_x11.cc b/ui/views/test/test_desktop_screen_x11.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..82590948ad5fd12c5836f7466efb33ec517ccfa7
|
| --- /dev/null
|
| +++ b/ui/views/test/test_desktop_screen_x11.cc
|
| @@ -0,0 +1,36 @@
|
| +// 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/views/test/test_desktop_screen_x11.h"
|
| +
|
| +#include "base/memory/singleton.h"
|
| +
|
| +namespace views {
|
| +namespace test {
|
| +
|
| +TestDesktopScreenX11* TestDesktopScreenX11::GetInstance() {
|
| + return base::Singleton<TestDesktopScreenX11>::get();
|
| +}
|
| +
|
| +TestDesktopScreenX11::TestDesktopScreenX11() {}
|
| +
|
| +TestDesktopScreenX11::~TestDesktopScreenX11() {}
|
| +
|
| +gfx::Point TestDesktopScreenX11::GetCursorScreenPoint() {
|
| + return cursor_screen_point_;
|
| +}
|
| +
|
| +void TestDesktopScreenX11::SetCursorScreenPoint(const gfx::Point& point) {
|
| + cursor_screen_point_ = point;
|
| +}
|
| +
|
| +TestDesktopScreenX11* GetTestDesktopScreenX11() {
|
| + static std::unique_ptr<TestDesktopScreenX11> test_screen_instance;
|
| + if (!test_screen_instance.get())
|
| + test_screen_instance.reset(new TestDesktopScreenX11());
|
| + return test_screen_instance.get();
|
| +}
|
| +
|
| +} // namespace test
|
| +} // namespace views
|
|
|