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

Unified Diff: ui/message_center/views/custom_notification_content_view_delegate.h

Issue 2870283002: Move message_center::CustomNotificationView to arc::ArcNotificationView (Closed)
Patch Set: Addressed comment 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/message_center/views/custom_notification_content_view_delegate.h
diff --git a/ui/message_center/views/custom_notification_content_view_delegate.h b/ui/message_center/views/custom_notification_content_view_delegate.h
deleted file mode 100644
index 747e3de3f80f47194bdeb72a26832c7489c21c54..0000000000000000000000000000000000000000
--- a/ui/message_center/views/custom_notification_content_view_delegate.h
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2016 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_MESSAGE_CENTER_CUSTOM_NOTIFICATION_CONTENT_VIEW_DELEGATE_H_
-#define UI_MESSAGE_CENTER_CUSTOM_NOTIFICATION_CONTENT_VIEW_DELEGATE_H_
-
-#include <memory>
-
-#include "base/macros.h"
-#include "ui/message_center/message_center_export.h"
-
-namespace views {
-class View;
-} // namespace views
-
-namespace message_center {
-
-// Delegate for a view that is hosted by CustomNotificationView.
-class MESSAGE_CENTER_EXPORT CustomNotificationContentViewDelegate {
- public:
- virtual bool IsCloseButtonFocused() const = 0;
- virtual void RequestFocusOnCloseButton() = 0;
- virtual void UpdateControlButtonsVisibility() = 0;
- virtual void OnSlideChanged() = 0;
-};
-
-// The struct to hold a view and CustomNotificationContentViewDelegate
-// associating with the view.
-struct MESSAGE_CENTER_EXPORT CustomContent {
- public:
- CustomContent(
- std::unique_ptr<views::View> view,
- std::unique_ptr<CustomNotificationContentViewDelegate> delegate);
- ~CustomContent();
-
- std::unique_ptr<views::View> view;
- std::unique_ptr<CustomNotificationContentViewDelegate> delegate;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(CustomContent);
-};
-
-} // namespace message_center
-
-#endif // UI_MESSAGE_CENTER_CUSTOM_NOTIFICATION_CONTENT_VIEW_DELEGATE_H_
« no previous file with comments | « ui/message_center/notification_delegate_views.cc ('k') | ui/message_center/views/custom_notification_content_view_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698