OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_ARC_NOTIFICATION_ARC_NOTIFICATION_SURFACE_IMPL_H_ |
| 6 #define UI_ARC_NOTIFICATION_ARC_NOTIFICATION_SURFACE_IMPL_H_ |
| 7 |
| 8 #include "ui/arc/notification/arc_notification_surface.h" |
| 9 |
| 10 #include <memory> |
| 11 #include <string> |
| 12 |
| 13 #include "base/macros.h" |
| 14 #include "ui/gfx/geometry/size.h" |
| 15 |
| 16 namespace aura { |
| 17 class Window; |
| 18 } |
| 19 |
| 20 namespace exo { |
| 21 class NotificationSurface; |
| 22 } |
| 23 |
| 24 namespace views { |
| 25 class NativeViewHost; |
| 26 } |
| 27 |
| 28 namespace arc { |
| 29 |
| 30 // Handles notification surface role of a given surface. |
| 31 class ArcNotificationSurfaceImpl : public ArcNotificationSurface { |
| 32 public: |
| 33 ArcNotificationSurfaceImpl(exo::NotificationSurface* surface); |
| 34 |
| 35 gfx::Size GetSize() const override; |
| 36 |
| 37 void AttachWindow(views::NativeViewHost* native_view_host) override; |
| 38 |
| 39 aura::Window* GetWindow() const override; |
| 40 const std::string& GetNotificationId() const override; |
| 41 |
| 42 exo::NotificationSurface* surface() const { return surface_; } |
| 43 |
| 44 private: |
| 45 exo::NotificationSurface* surface_; |
| 46 }; |
| 47 |
| 48 } // namespace arc |
| 49 |
| 50 #endif // UI_ARC_NOTIFICATION_ARC_NOTIFICATION_SURFACE_IMPL_H_ |
OLD | NEW |