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

Unified Diff: ui/views/mus/screen_mus.h

Issue 2314203002: Move DisplayList to display; add ScreenBase. (Closed)
Patch Set: Update unit test namespace. Created 4 years, 3 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/views/mus/display_list_unittest.cc ('k') | ui/views/mus/screen_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/screen_mus.h
diff --git a/ui/views/mus/screen_mus.h b/ui/views/mus/screen_mus.h
index 2e910e4c4a98e34eb5ccfd549a3f07ae8f97fb83..b86d5d4b16ba27a5e2043bef47d2bdce6d6253c8 100644
--- a/ui/views/mus/screen_mus.h
+++ b/ui/views/mus/screen_mus.h
@@ -5,15 +5,9 @@
#ifndef UI_VIEWS_MUS_SCREEN_MUS_H_
#define UI_VIEWS_MUS_SCREEN_MUS_H_
-#include <vector>
-
-#include "base/observer_list.h"
-#include "base/run_loop.h"
#include "mojo/public/cpp/bindings/binding.h"
#include "services/ui/public/interfaces/display.mojom.h"
-#include "ui/display/display.h"
-#include "ui/display/screen.h"
-#include "ui/views/mus/display_list.h"
+#include "ui/display/screen_base.h"
#include "ui/views/mus/mus_export.h"
namespace shell {
@@ -26,7 +20,7 @@ class ScreenMusDelegate;
// Screen implementation backed by ui::mojom::DisplayManager.
class VIEWS_MUS_EXPORT ScreenMus
- : public display::Screen,
+ : public display::ScreenBase,
public NON_EXPORTED_BASE(ui::mojom::DisplayManagerObserver) {
public:
// |delegate| can be nullptr.
@@ -36,25 +30,9 @@ class VIEWS_MUS_EXPORT ScreenMus
void Init(shell::Connector* connector);
private:
- // Invoked when a display changed in some weay, including being added.
- // If |is_primary| is true, |changed_display| is the primary display.
- void ProcessDisplayChanged(const display::Display& changed_display,
- bool is_primary);
-
// display::Screen:
gfx::Point GetCursorScreenPoint() override;
bool IsWindowUnderCursor(gfx::NativeWindow window) override;
- gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override;
- display::Display GetPrimaryDisplay() const override;
- display::Display GetDisplayNearestWindow(gfx::NativeView view) const override;
- display::Display GetDisplayNearestPoint(
- const gfx::Point& point) const override;
- int GetNumDisplays() const override;
- std::vector<display::Display> GetAllDisplays() const override;
- display::Display GetDisplayMatching(
- const gfx::Rect& match_rect) const override;
- void AddObserver(display::DisplayObserver* observer) override;
- void RemoveObserver(display::DisplayObserver* observer) override;
// ui::mojom::DisplayManager:
void OnDisplays(mojo::Array<ui::mojom::WsDisplayPtr> ws_displays) override;
@@ -66,7 +44,6 @@ class VIEWS_MUS_EXPORT ScreenMus
ui::mojom::DisplayManagerPtr display_manager_;
mojo::Binding<ui::mojom::DisplayManagerObserver>
display_manager_observer_binding_;
- DisplayList display_list_;
DISALLOW_COPY_AND_ASSIGN(ScreenMus);
};
« no previous file with comments | « ui/views/mus/display_list_unittest.cc ('k') | ui/views/mus/screen_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698