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

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

Issue 2935893004: Add unittest for ArcNotificationContentView (Closed)
Patch Set: . 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 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_;
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_
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