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

Side by Side Diff: ui/message_center/views/group_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_GROUP_VIEW_H_ 5 #ifndef UI_MESSAGE_CENTER_VIEWS_GROUP_VIEW_H_
6 #define UI_MESSAGE_CENTER_VIEWS_GROUP_VIEW_H_ 6 #define UI_MESSAGE_CENTER_VIEWS_GROUP_VIEW_H_
7 7
8 #include "ui/gfx/image/image_skia.h" 8 #include "ui/gfx/image/image_skia.h"
9 #include "ui/message_center/views/message_center_controller.h" 9 #include "ui/message_center/views/message_center_controller.h"
10 #include "ui/message_center/views/message_center_view.h" 10 #include "ui/message_center/views/message_center_view.h"
(...skipping 29 matching lines...) Expand all
40 virtual gfx::NativeCursor GetCursor(const ui::MouseEvent& event) OVERRIDE; 40 virtual gfx::NativeCursor GetCursor(const ui::MouseEvent& event) OVERRIDE;
41 41
42 // Overridden from MessageView: 42 // Overridden from MessageView:
43 virtual void ButtonPressed(views::Button* sender, 43 virtual void ButtonPressed(views::Button* sender,
44 const ui::Event& event) OVERRIDE; 44 const ui::Event& event) OVERRIDE;
45 45
46 // Overridden from MessageViewController: 46 // Overridden from MessageViewController:
47 virtual void ClickOnNotification(const std::string& notification_id) OVERRIDE; 47 virtual void ClickOnNotification(const std::string& notification_id) OVERRIDE;
48 virtual void RemoveNotification(const std::string& notification_id, 48 virtual void RemoveNotification(const std::string& notification_id,
49 bool by_user) OVERRIDE; 49 bool by_user) OVERRIDE;
50 virtual void DisableNotificationsFromThisSource(
51 const NotifierId& notifier_id) OVERRIDE;
52 virtual void ShowNotifierSettingsBubble() OVERRIDE;
53 50
54 private: 51 private:
55 MessageCenterController* controller_; // Weak, controls lifetime of views. 52 MessageCenterController* controller_; // Weak, controls lifetime of views.
56 NotifierId notifier_id_; 53 NotifierId notifier_id_;
57 string16 display_source_; 54 string16 display_source_;
58 gfx::ImageSkia group_icon_; 55 gfx::ImageSkia group_icon_;
59 int group_size_; 56 int group_size_;
60 std::string last_notification_id_; 57 std::string last_notification_id_;
61 58
62 // Weak references to GroupView descendants owned by their parents. 59 // Weak references to GroupView descendants owned by their parents.
63 views::View* top_view_; 60 views::View* top_view_;
64 views::View* bottom_view_; 61 views::View* bottom_view_;
65 BoundedLabel* title_view_; 62 BoundedLabel* title_view_;
66 BoundedLabel* message_view_; 63 BoundedLabel* message_view_;
67 BoundedLabel* context_message_view_; 64 BoundedLabel* context_message_view_;
68 views::View* icon_view_; 65 views::View* icon_view_;
69 NotificationButton* more_button_; 66 NotificationButton* more_button_;
70 67
71 DISALLOW_COPY_AND_ASSIGN(GroupView); 68 DISALLOW_COPY_AND_ASSIGN(GroupView);
72 }; 69 };
73 70
74 } // namespace message_center 71 } // namespace message_center
75 72
76 #endif // UI_MESSAGE_CENTER_VIEWS_GROUP_VIEW_H_ 73 #endif // UI_MESSAGE_CENTER_VIEWS_GROUP_VIEW_H_
OLDNEW
« no previous file with comments | « ui/message_center/message_center_tray_unittest.cc ('k') | ui/message_center/views/group_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698