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_H_ |
| 6 #define UI_ARC_NOTIFICATION_ARC_NOTIFICATION_SURFACE_H_ |
| 7 |
| 8 #include <memory> |
| 9 #include <string> |
| 10 |
| 11 #include "base/macros.h" |
| 12 #include "ui/gfx/geometry/size.h" |
| 13 |
| 14 namespace aura { |
| 15 class Window; |
| 16 } |
| 17 |
| 18 namespace views { |
| 19 class NativeViewHost; |
| 20 } |
| 21 |
| 22 namespace arc { |
| 23 |
| 24 // Handles notification surface role of a given surface. |
| 25 class ArcNotificationSurface { |
| 26 public: |
| 27 virtual ~ArcNotificationSurface() = default; |
| 28 |
| 29 virtual gfx::Size GetSize() const = 0; |
| 30 |
| 31 virtual void AttachWindow(views::NativeViewHost* native_view_host) = 0; |
| 32 |
| 33 virtual aura::Window* GetWindow() const = 0; |
| 34 virtual const std::string& GetNotificationId() const = 0; |
| 35 }; |
| 36 |
| 37 } // namespace arc |
| 38 |
| 39 #endif // UI_ARC_NOTIFICATION_ARC_NOTIFICATION_SURFACE_H_ |
OLD | NEW |