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

Unified Diff: ui/gfx/test/test_screen.h

Issue 1957523004: Rename gfx::test::TestScreen to display::test::TestScreen (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/gfx.gyp ('k') | ui/gfx/test/test_screen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/test/test_screen.h
diff --git a/ui/gfx/test/test_screen.h b/ui/gfx/test/test_screen.h
deleted file mode 100644
index 5c8bbb8d8d5a3c2ebbdf7bb602d52e2a5edf122d..0000000000000000000000000000000000000000
--- a/ui/gfx/test/test_screen.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// 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 <vector>
-
-#include "base/macros.h"
-#include "ui/gfx/display.h"
-#include "ui/gfx/screen.h"
-
-namespace gfx {
-namespace test {
-
-// A dummy implementation of gfx::Screen that contains a single gfx::Display
-// only. The contained gfx::Display can be accessed and modified via
-// TestScreen::display().
-//
-// NOTE: Adding and removing gfx::DisplayOberver's are no-ops and observers will
-// NOT be notified ever.
-class TestScreen : public gfx::Screen {
- public:
- TestScreen();
- ~TestScreen() override;
-
- gfx::Display* display() { return &display_; }
-
- // gfx::Screen:
- gfx::Point GetCursorScreenPoint() override;
- bool IsWindowUnderCursor(gfx::NativeWindow window) override;
- gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override;
- int GetNumDisplays() const override;
- std::vector<gfx::Display> GetAllDisplays() const override;
- gfx::Display GetDisplayNearestWindow(gfx::NativeView view) const override;
- gfx::Display GetDisplayNearestPoint(const gfx::Point& point) const override;
- gfx::Display GetDisplayMatching(const gfx::Rect& match_rect) const override;
- gfx::Display GetPrimaryDisplay() const override;
- void AddObserver(gfx::DisplayObserver* observer) override;
- void RemoveObserver(gfx::DisplayObserver* observer) override;
-
- private:
- // The only display.
- gfx::Display display_;
-
- DISALLOW_COPY_AND_ASSIGN(TestScreen);
-};
-
-} // namespace test
-} // namespace gfx
« no previous file with comments | « ui/gfx/gfx.gyp ('k') | ui/gfx/test/test_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698