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

Unified Diff: components/exo/wm_helper_mus.cc

Issue 2780623002: exo: Fix multi-display hardware cursor (Closed)
Patch Set: Fix style error Created 3 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 | « components/exo/wm_helper_mus.h ('k') | ui/aura/client/cursor_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/wm_helper_mus.cc
diff --git a/components/exo/wm_helper_mus.cc b/components/exo/wm_helper_mus.cc
index 105691c8c44cfd5e09e00ceeb087e1ddcc0fdbf2..89543f3f908ca15af40c27dcbbce893add6d6a3f 100644
--- a/components/exo/wm_helper_mus.cc
+++ b/components/exo/wm_helper_mus.cc
@@ -9,6 +9,7 @@
#include "ui/aura/mus/focus_synchronizer.h"
#include "ui/aura/mus/window_tree_client.h"
#include "ui/aura/window.h"
+#include "ui/display/display.h"
#include "ui/display/manager/managed_display_info.h"
#include "ui/views/mus/mus_client.h"
#include "ui/wm/public/activation_client.h"
@@ -37,13 +38,14 @@ WMHelperMus::~WMHelperMus() {
////////////////////////////////////////////////////////////////////////////////
// WMHelperMus, private:
-const display::ManagedDisplayInfo WMHelperMus::GetDisplayInfo(
+const display::ManagedDisplayInfo& WMHelperMus::GetDisplayInfo(
int64_t display_id) const {
// TODO(penghuang): Return real display info when it is supported in mus.
- return display::ManagedDisplayInfo(display_id, "", false);
+ static const display::ManagedDisplayInfo info;
+ return info;
}
-aura::Window* WMHelperMus::GetContainer(int container_id) {
+aura::Window* WMHelperMus::GetPrimaryDisplayContainer(int container_id) {
NOTIMPLEMENTED();
return nullptr;
}
@@ -61,6 +63,13 @@ ui::CursorSetType WMHelperMus::GetCursorSet() const {
return ui::CursorSetType::CURSOR_SET_NORMAL;
}
+const display::Display& WMHelperMus::GetCursorDisplay() const {
+ NOTIMPLEMENTED();
+ // TODO(penghuang): Return real display when supported in mus.
+ static const display::Display display;
+ return display;
+}
+
void WMHelperMus::AddPreTargetHandler(ui::EventHandler* handler) {
aura::Env::GetInstance()->AddPreTargetHandler(handler);
}
« no previous file with comments | « components/exo/wm_helper_mus.h ('k') | ui/aura/client/cursor_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698