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

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

Issue 403963002: Remove remaining overrides of View::GetEventHandlerForRect() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_strip.cc ('k') | ui/message_center/views/notification_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/views/notification_view.h
diff --git a/ui/message_center/views/notification_view.h b/ui/message_center/views/notification_view.h
index 2d6913124cc390055d92524f4f19475b71aa51dc..623f1201a4bc1ce3ddeca2de4a532decf1df5f62 100644
--- a/ui/message_center/views/notification_view.h
+++ b/ui/message_center/views/notification_view.h
@@ -9,6 +9,7 @@
#include "ui/message_center/message_center_export.h"
#include "ui/message_center/views/message_view.h"
+#include "ui/views/view_targeter_delegate.h"
namespace views {
class ProgressBar;
@@ -27,8 +28,10 @@ class PaddedButton;
// list). Future notification types may be handled by other classes, in which
// case instances of those classes would be returned by the Create() factory
// method below.
-class MESSAGE_CENTER_EXPORT NotificationView : public MessageView,
- public MessageViewController {
+class MESSAGE_CENTER_EXPORT NotificationView
+ : public MessageView,
+ public views::ViewTargeterDelegate,
+ public MessageViewController {
public:
// Creates appropriate MessageViews for notifications. Those currently are
// always NotificationView instances but in the future
@@ -48,7 +51,6 @@ class MESSAGE_CENTER_EXPORT NotificationView : public MessageView,
virtual void Layout() OVERRIDE;
virtual void OnFocus() OVERRIDE;
virtual void ScrollRectToVisible(const gfx::Rect& rect) OVERRIDE;
- virtual views::View* GetEventHandlerForRect(const gfx::Rect& rect) OVERRIDE;
virtual gfx::NativeCursor GetCursor(const ui::MouseEvent& event) OVERRIDE;
// Overridden from MessageView:
@@ -78,6 +80,10 @@ class MESSAGE_CENTER_EXPORT NotificationView : public MessageView,
friend class NotificationViewTest;
+ // views::ViewTargeterDelegate:
+ virtual views::View* TargetForRect(views::View* root,
+ const gfx::Rect& rect) OVERRIDE;
+
void CreateOrUpdateViews(const Notification& notification);
void SetAccessibleName(const Notification& notification);
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_strip.cc ('k') | ui/message_center/views/notification_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698