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 namespace exo { | |
11 class NotificationSurface; | |
12 } | |
13 | |
14 namespace arc { | |
15 | |
16 // Handles notification surface role of a given surface. | |
17 class ArcNotificationSurfaceImpl : public ArcNotificationSurface { | |
18 public: | |
19 explicit ArcNotificationSurfaceImpl(exo::NotificationSurface* surface); | |
20 | |
21 // ArcNotificationSurface overrides: | |
22 gfx::Size GetSize() const override; | |
23 aura::Window* GetWindow() const override; | |
24 aura::Window* GetContentWindow() const override; | |
25 const std::string& GetNotificationKey() const override; | |
26 void Attach(views::NativeViewHost* native_view_host) override; | |
27 void Detach() override; | |
28 bool IsAttached() const override; | |
29 | |
30 exo::NotificationSurface* surface() const { return surface_; } | |
31 | |
32 private: | |
33 exo::NotificationSurface* surface_ = nullptr; | |
hidehiko
2017/06/15 15:26:21
nit: s/ = nullptr// because you always set |surfac
yoshiki
2017/06/16 11:29:08
Done.
| |
34 views::NativeViewHost* native_view_host_ = nullptr; | |
35 | |
36 DISALLOW_COPY_AND_ASSIGN(ArcNotificationSurfaceImpl); | |
37 }; | |
38 | |
39 } // namespace arc | |
40 | |
41 #endif // UI_ARC_NOTIFICATION_ARC_NOTIFICATION_SURFACE_IMPL_H_ | |
OLD | NEW |