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

Unified Diff: ui/arc/notification/arc_custom_notification_view.h

Issue 2845003002: Merge ArcNotificationItem and ArcCustomNotificationItem (Closed)
Patch Set: Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: ui/arc/notification/arc_custom_notification_view.h
diff --git a/ui/arc/notification/arc_custom_notification_view.h b/ui/arc/notification/arc_custom_notification_view.h
index 6af56841a2aab374bbb0e1994f76ae85c923d711..26585fa42c7f1f0845b49602ad28a601c7773cd8 100644
--- a/ui/arc/notification/arc_custom_notification_view.h
+++ b/ui/arc/notification/arc_custom_notification_view.h
@@ -9,7 +9,7 @@
#include <string>
#include "base/macros.h"
-#include "ui/arc/notification/arc_custom_notification_item.h"
+#include "ui/arc/notification/arc_notification_item.h"
#include "ui/arc/notification/arc_notification_surface_manager.h"
#include "ui/aura/window_observer.h"
#include "ui/gfx/animation/animation_delegate.h"
@@ -37,11 +37,11 @@ class ArcCustomNotificationView
: public views::NativeViewHost,
public views::ButtonListener,
public aura::WindowObserver,
- public ArcCustomNotificationItem::Observer,
+ public ArcNotificationItem::Observer,
public ArcNotificationSurfaceManager::Observer,
public gfx::AnimationDelegate {
public:
- explicit ArcCustomNotificationView(ArcCustomNotificationItem* item);
+ explicit ArcCustomNotificationView(ArcNotificationItem* item);
~ArcCustomNotificationView() override;
std::unique_ptr<message_center::CustomNotificationContentViewDelegate>
@@ -104,7 +104,7 @@ class ArcCustomNotificationView
const gfx::Rect& new_bounds) override;
void OnWindowDestroying(aura::Window* window) override;
- // ArcCustomNotificationItem::Observer
+ // ArcNotificationItem::Observer
void OnItemDestroying() override;
void OnItemUpdated() override;
@@ -118,7 +118,7 @@ class ArcCustomNotificationView
// If |item_| is null, we may be about to be destroyed. In this case,
// we have to be careful about what we do.
- ArcCustomNotificationItem* item_ = nullptr;
+ ArcNotificationItem* item_ = nullptr;
exo::NotificationSurface* surface_ = nullptr;
const std::string notification_key_;

Powered by Google App Engine
This is Rietveld 408576698