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

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

Issue 2845003002: Merge ArcNotificationItem and ArcCustomNotificationItem (Closed)
Patch Set: Rebased Created 3 years, 7 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 d88c689cb37936522e47f0a22d501627ffddf097..e958a9361f65f6b59eeb46b140a3b10fbd2020c6 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"
@@ -41,11 +41,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>
@@ -108,7 +108,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;
@@ -122,7 +122,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_;
« no previous file with comments | « ui/arc/notification/arc_custom_notification_item.cc ('k') | ui/arc/notification/arc_custom_notification_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698