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

Unified Diff: ui/arc/notification/arc_notification_surface_impl.h

Issue 2723143002: Add unittests of ArcCustomNotificationView (Closed)
Patch Set: wip 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
Index: ui/arc/notification/arc_notification_surface_impl.h
diff --git a/ui/arc/notification/arc_notification_surface_impl.h b/ui/arc/notification/arc_notification_surface_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..a6fb7ca45cbc811afe48293b71c60e176034d3e0
--- /dev/null
+++ b/ui/arc/notification/arc_notification_surface_impl.h
@@ -0,0 +1,50 @@
+// Copyright 2017 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.
+
+#ifndef UI_ARC_NOTIFICATION_ARC_NOTIFICATION_SURFACE_IMPL_H_
+#define UI_ARC_NOTIFICATION_ARC_NOTIFICATION_SURFACE_IMPL_H_
+
+#include "ui/arc/notification/arc_notification_surface.h"
+
+#include <memory>
+#include <string>
+
+#include "base/macros.h"
+#include "ui/gfx/geometry/size.h"
+
+namespace aura {
+class Window;
+}
+
+namespace exo {
+class NotificationSurface;
+}
+
+namespace views {
+class NativeViewHost;
+}
+
+namespace arc {
+
+// Handles notification surface role of a given surface.
+class ArcNotificationSurfaceImpl : public ArcNotificationSurface {
+ public:
+ ArcNotificationSurfaceImpl(exo::NotificationSurface* surface);
+
+ gfx::Size GetSize() const override;
+
+ void AttachWindow(views::NativeViewHost* native_view_host) override;
+
+ aura::Window* GetWindow() const override;
+ const std::string& GetNotificationId() const override;
+
+ exo::NotificationSurface* surface() const { return surface_; }
+
+ private:
+ exo::NotificationSurface* surface_;
+};
+
+} // namespace arc
+
+#endif // UI_ARC_NOTIFICATION_ARC_NOTIFICATION_SURFACE_IMPL_H_
« no previous file with comments | « ui/arc/notification/arc_notification_surface.h ('k') | ui/arc/notification/arc_notification_surface_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698