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

Unified Diff: components/exo/display.cc

Issue 2065133002: exo: Implement notification surface support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@notification-wayland-protocol
Patch Set: add NotificationServiceRegistry to track notification surface Created 4 years, 6 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
Index: components/exo/display.cc
diff --git a/components/exo/display.cc b/components/exo/display.cc
index 72eb656bb96f8db5b3b5a0988e4bf80f183cd87a..8e43007f69a96e6c767453725a894598f8800c5e 100644
--- a/components/exo/display.cc
+++ b/components/exo/display.cc
@@ -12,6 +12,7 @@
#include "base/memory/ptr_util.h"
#include "base/trace_event/trace_event.h"
#include "base/trace_event/trace_event_argument.h"
+#include "components/exo/notification_surface.h"
#include "components/exo/shared_memory.h"
#include "components/exo/shell_surface.h"
#include "components/exo/sub_surface.h"
@@ -185,4 +186,13 @@ std::unique_ptr<SubSurface> Display::CreateSubSurface(Surface* surface,
return base::WrapUnique(new SubSurface(surface, parent));
}
+std::unique_ptr<NotificationSurface> Display::CreateNotificationSurface(
+ Surface* surface,
+ const std::string& notification_id) {
+ TRACE_EVENT2("exo", "Display::CreateNotificationSurface", "surface",
+ surface->AsTracedValue(), "notification_id", notification_id);
+
+ return base::WrapUnique(new NotificationSurface(surface, notification_id));
+}
+
} // namespace exo

Powered by Google App Engine
This is Rietveld 408576698