Index: components/exo/notification_surface_impl.h |
diff --git a/components/exo/notification_surface.h b/components/exo/notification_surface_impl.h |
similarity index 51% |
copy from components/exo/notification_surface.h |
copy to components/exo/notification_surface_impl.h |
index 33bfa2f0f4ce589db81d28abea5f18cecbfc9ec8..29f0db585afc51d0f920e1eb80a1e712f687b3f4 100644 |
--- a/components/exo/notification_surface.h |
+++ b/components/exo/notification_surface_impl.h |
@@ -1,14 +1,15 @@ |
-// Copyright 2016 The Chromium Authors. All rights reserved. |
+// 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 COMPONENTS_EXO_NOTIFICATION_SURFACE_H_ |
-#define COMPONENTS_EXO_NOTIFICATION_SURFACE_H_ |
+#ifndef COMPONENTS_EXO_NOTIFICATION_SURFACE_IMPL_H_ |
+#define COMPONENTS_EXO_NOTIFICATION_SURFACE_IMPL_H_ |
#include <memory> |
#include <string> |
#include "base/macros.h" |
+#include "components/exo/notification_surface.h" |
#include "components/exo/surface_delegate.h" |
#include "components/exo/surface_observer.h" |
#include "ui/gfx/geometry/size.h" |
@@ -22,17 +23,20 @@ class NotificationSurfaceManager; |
class Surface; |
// Handles notification surface role of a given surface. |
-class NotificationSurface : public SurfaceDelegate, public SurfaceObserver { |
+class NotificationSurfaceImpl : public NotificationSurface, |
+ public SurfaceDelegate, |
+ public SurfaceObserver { |
public: |
- NotificationSurface(NotificationSurfaceManager* manager, |
- Surface* surface, |
- const std::string& notification_id); |
- ~NotificationSurface() override; |
+ NotificationSurfaceImpl(NotificationSurfaceManager* manager, |
+ Surface* surface, |
+ const std::string& notification_id); |
+ ~NotificationSurfaceImpl() override; |
- gfx::Size GetSize() const; |
+ gfx::Size GetSize() const override; |
+ void AttachWindow(views::NativeViewHost* nvh) override; |
- aura::Window* window() { return window_.get(); } |
- const std::string& notification_id() const { return notification_id_; } |
+ aura::Window* window() override; |
+ const std::string& notification_id() const override; |
// Overridden from SurfaceDelegate: |
void OnSurfaceCommit() override; |
@@ -49,9 +53,9 @@ class NotificationSurface : public SurfaceDelegate, public SurfaceObserver { |
std::unique_ptr<aura::Window> window_; |
bool added_to_manager_ = false; |
- DISALLOW_COPY_AND_ASSIGN(NotificationSurface); |
+ DISALLOW_COPY_AND_ASSIGN(NotificationSurfaceImpl); |
}; |
} // namespace exo |
-#endif // COMPONENTS_EXO_NOTIFICATION_SURFACE_H_ |
+#endif // COMPONENTS_EXO_NOTIFICATION_SURFACE_IMPL_H_ |