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

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

Issue 2461513002: Primary display change notifications. (Closed)
Patch Set: More fixes. Created 4 years, 2 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 | « services/ui/ws/window_manager_state.h ('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 9866d0ae0a1ded3b5d36dd39d46c7184676f5f8e..2c3a9a871434f1368728a7e192719eb439f915d4 100644
--- a/ui/views/mus/screen_mus.h
+++ b/ui/views/mus/screen_mus.h
@@ -6,7 +6,7 @@
#define UI_VIEWS_MUS_SCREEN_MUS_H_
#include "mojo/public/cpp/bindings/binding.h"
-#include "services/ui/public/interfaces/display.mojom.h"
+#include "services/ui/public/interfaces/display_manager.mojom.h"
#include "ui/display/screen_base.h"
#include "ui/views/mus/mus_export.h"
@@ -36,10 +36,13 @@ class VIEWS_MUS_EXPORT ScreenMus
gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override;
// ui::mojom::DisplayManager:
- void OnDisplays(mojo::Array<ui::mojom::WsDisplayPtr> ws_displays) override;
+ void OnDisplays(mojo::Array<ui::mojom::WsDisplayPtr> ws_displays,
+ int64_t primary_display_id,
+ int64_t internal_display_id) override;
void OnDisplaysChanged(
mojo::Array<ui::mojom::WsDisplayPtr> ws_displays) override;
- void OnDisplayRemoved(int64_t id) override;
+ void OnDisplayRemoved(int64_t display_id) override;
+ void OnPrimaryDisplayChanged(int64_t primary_display_id) override;
ScreenMusDelegate* delegate_; // Can be nullptr.
ui::mojom::DisplayManagerPtr display_manager_;
« no previous file with comments | « services/ui/ws/window_manager_state.h ('k') | ui/views/mus/screen_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698