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

Side by Side Diff: ui/message_center/views/toast_contents_view.h

Issue 114323002: Fixes the context menu for a notification. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix2 Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_MESSAGE_CENTER_VIEWS_TOAST_CONTENTS_VIEW_H_ 5 #ifndef UI_MESSAGE_CENTER_VIEWS_TOAST_CONTENTS_VIEW_H_
6 #define UI_MESSAGE_CENTER_VIEWS_TOAST_CONTENTS_VIEW_H_ 6 #define UI_MESSAGE_CENTER_VIEWS_TOAST_CONTENTS_VIEW_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "ui/gfx/animation/animation_delegate.h" 10 #include "ui/gfx/animation/animation_delegate.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; 72 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE;
73 virtual void Layout() OVERRIDE; 73 virtual void Layout() OVERRIDE;
74 virtual gfx::Size GetPreferredSize() OVERRIDE; 74 virtual gfx::Size GetPreferredSize() OVERRIDE;
75 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; 75 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
76 76
77 private: 77 private:
78 // Overridden from MessageCenterController: 78 // Overridden from MessageCenterController:
79 virtual void ClickOnNotification(const std::string& notification_id) OVERRIDE; 79 virtual void ClickOnNotification(const std::string& notification_id) OVERRIDE;
80 virtual void RemoveNotification(const std::string& notification_id, 80 virtual void RemoveNotification(const std::string& notification_id,
81 bool by_user) OVERRIDE; 81 bool by_user) OVERRIDE;
82 virtual void DisableNotificationsFromThisSource( 82 virtual scoped_ptr<ui::MenuModel> CreateMenuModel(
83 const NotifierId& notifier_id) OVERRIDE; 83 const NotifierId& notifier_id,
84 virtual void ShowNotifierSettingsBubble() OVERRIDE; 84 const base::string16& display_source) OVERRIDE;
85 virtual bool HasClickedListener(const std::string& notification_id) OVERRIDE; 85 virtual bool HasClickedListener(const std::string& notification_id) OVERRIDE;
86 virtual void ClickOnNotificationButton(const std::string& notification_id, 86 virtual void ClickOnNotificationButton(const std::string& notification_id,
87 int button_index) OVERRIDE; 87 int button_index) OVERRIDE;
88 virtual void ExpandNotification(const std::string& notification_id) OVERRIDE; 88 virtual void ExpandNotification(const std::string& notification_id) OVERRIDE;
89 virtual void GroupBodyClicked(const std::string& last_notification_id) 89 virtual void GroupBodyClicked(const std::string& last_notification_id)
90 OVERRIDE; 90 OVERRIDE;
91 virtual void ExpandGroup(const NotifierId& notifier_id) OVERRIDE; 91 virtual void ExpandGroup(const NotifierId& notifier_id) OVERRIDE;
92 virtual void RemoveGroup(const NotifierId& notifier_id) OVERRIDE; 92 virtual void RemoveGroup(const NotifierId& notifier_id) OVERRIDE;
93 93
94 // Overridden from gfx::AnimationDelegate: 94 // Overridden from gfx::AnimationDelegate:
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 137
138 gfx::Point origin_; 138 gfx::Point origin_;
139 gfx::Size preferred_size_; 139 gfx::Size preferred_size_;
140 140
141 DISALLOW_COPY_AND_ASSIGN(ToastContentsView); 141 DISALLOW_COPY_AND_ASSIGN(ToastContentsView);
142 }; 142 };
143 143
144 } // namespace message_center 144 } // namespace message_center
145 145
146 #endif // UI_MESSAGE_CENTER_VIEWS_TOAST_CONTENTS_VIEW_H_ 146 #endif // UI_MESSAGE_CENTER_VIEWS_TOAST_CONTENTS_VIEW_H_
OLDNEW
« no previous file with comments | « ui/message_center/views/notification_view.cc ('k') | ui/message_center/views/toast_contents_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698