Commit 42946833 authored by Allen Bauer's avatar Allen Bauer Committed by Commit Bot

Removed desktop_screen_x11_test_api.cc/h

It is not used anyplace, only referenced in one file and BUILD.gn.

Change-Id: I6a3bf313ae92273148c440789c4d95d2f72a02a3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2249596Reviewed-by: default avatarRobert Liao <robliao@chromium.org>
Commit-Queue: Allen Bauer <kylixrd@chromium.org>
Cr-Commit-Position: refs/heads/master@{#779546}
parent cab7528f
......@@ -1009,8 +1009,6 @@ jumbo_source_set("test_support") {
]
if (use_x11) {
sources += [
"test/desktop_screen_x11_test_api.cc",
"test/desktop_screen_x11_test_api.h",
"test/test_desktop_screen_x11.cc",
"test/test_desktop_screen_x11.h",
"test/ui_controls_factory_desktop_aurax11.cc",
......
// Copyright 2015 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/desktop_screen_x11_test_api.h"
#include "ui/display/screen.h"
#include "ui/views/widget/desktop_aura/desktop_screen_x11.h"
namespace views {
namespace test {
void DesktopScreenX11TestApi::UpdateDisplays() {
DesktopScreenX11* screen =
static_cast<DesktopScreenX11*>(display::Screen::GetScreen());
screen->x11_display_manager_->UpdateDisplayList();
}
} // namespace test
} // namespace views
// Copyright 2015 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.
#ifndef UI_VIEWS_TEST_DESKTOP_SCREEN_X11_TEST_API_H_
#define UI_VIEWS_TEST_DESKTOP_SCREEN_X11_TEST_API_H_
#include "base/macros.h"
namespace views {
namespace test {
class DesktopScreenX11TestApi {
public:
// Updates the displays. Typically used to reflect customized device
// scale factor in displays.
static void UpdateDisplays();
private:
DISALLOW_COPY_AND_ASSIGN(DesktopScreenX11TestApi);
};
} // namespace test
} // namespace views
#endif // UI_VIEWS_TEST_DESKTOP_SCREEN_X11_TEST_API_H_
......@@ -20,10 +20,6 @@
namespace views {
class DesktopScreenX11Test;
namespace test {
class DesktopScreenX11TestApi;
}
// Screen implementation that talks to XRandR
class VIEWS_EXPORT DesktopScreenX11 : public display::Screen,
public ui::XEventDispatcher,
......@@ -67,7 +63,6 @@ class VIEWS_EXPORT DesktopScreenX11 : public display::Screen,
private:
friend class DesktopScreenX11Test;
friend class test::DesktopScreenX11TestApi;
// ui::XDisplayManager::Delegate:
void OnXDisplayListUpdated() override;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment