| Index: ui/arc/notification/arc_notification_surface_impl.h
|
| diff --git a/ui/arc/notification/arc_notification_surface_impl.h b/ui/arc/notification/arc_notification_surface_impl.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a6fb7ca45cbc811afe48293b71c60e176034d3e0
|
| --- /dev/null
|
| +++ b/ui/arc/notification/arc_notification_surface_impl.h
|
| @@ -0,0 +1,50 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef UI_ARC_NOTIFICATION_ARC_NOTIFICATION_SURFACE_IMPL_H_
|
| +#define UI_ARC_NOTIFICATION_ARC_NOTIFICATION_SURFACE_IMPL_H_
|
| +
|
| +#include "ui/arc/notification/arc_notification_surface.h"
|
| +
|
| +#include <memory>
|
| +#include <string>
|
| +
|
| +#include "base/macros.h"
|
| +#include "ui/gfx/geometry/size.h"
|
| +
|
| +namespace aura {
|
| +class Window;
|
| +}
|
| +
|
| +namespace exo {
|
| +class NotificationSurface;
|
| +}
|
| +
|
| +namespace views {
|
| +class NativeViewHost;
|
| +}
|
| +
|
| +namespace arc {
|
| +
|
| +// Handles notification surface role of a given surface.
|
| +class ArcNotificationSurfaceImpl : public ArcNotificationSurface {
|
| + public:
|
| + ArcNotificationSurfaceImpl(exo::NotificationSurface* surface);
|
| +
|
| + gfx::Size GetSize() const override;
|
| +
|
| + void AttachWindow(views::NativeViewHost* native_view_host) override;
|
| +
|
| + aura::Window* GetWindow() const override;
|
| + const std::string& GetNotificationId() const override;
|
| +
|
| + exo::NotificationSurface* surface() const { return surface_; }
|
| +
|
| + private:
|
| + exo::NotificationSurface* surface_;
|
| +};
|
| +
|
| +} // namespace arc
|
| +
|
| +#endif // UI_ARC_NOTIFICATION_ARC_NOTIFICATION_SURFACE_IMPL_H_
|
|
|