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

Side by Side Diff: ui/arc/notification/arc_notification_surface_impl.h

Issue 2723143002: Add unittests of ArcCustomNotificationView (Closed)
Patch Set: wip Created 3 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW
« 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