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

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

Issue 18003003: Message center re-organized (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Compile issues fixed Created 7 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 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_MESSAGE_CENTER_VIEW_H_ 5 #ifndef UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_VIEW_H_
6 #define UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_VIEW_H_ 6 #define UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_VIEW_H_
7 7
8 #include "ui/views/view.h" 8 #include "ui/views/view.h"
9 9
10 #include "ui/base/animation/animation_delegate.h" 10 #include "ui/base/animation/animation_delegate.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 }; 65 };
66 66
67 // MessageCenterView /////////////////////////////////////////////////////////// 67 // MessageCenterView ///////////////////////////////////////////////////////////
68 68
69 class MESSAGE_CENTER_EXPORT MessageCenterView : public views::View, 69 class MESSAGE_CENTER_EXPORT MessageCenterView : public views::View,
70 public MessageCenterObserver, 70 public MessageCenterObserver,
71 public ui::AnimationDelegate { 71 public ui::AnimationDelegate {
72 public: 72 public:
73 MessageCenterView(MessageCenter* message_center, 73 MessageCenterView(MessageCenter* message_center,
74 MessageCenterTray* tray, 74 MessageCenterTray* tray,
75 int max_height,
76 bool initially_settings_visible); 75 bool initially_settings_visible);
77 virtual ~MessageCenterView(); 76 virtual ~MessageCenterView();
78 77
78 void Init(int max_height);
dewittj 2013/06/28 01:13:18 This method doesn't seem necessary.
sidharthms 2013/07/02 18:09:51 Done. Refactored
79
79 void SetNotifications(const NotificationList::Notifications& notifications); 80 void SetNotifications(const NotificationList::Notifications& notifications);
80 81
81 void ClearAllNotifications(); 82 void ClearAllNotifications();
82 void OnAllNotificationsCleared(); 83 void OnAllNotificationsCleared();
83 84
84 size_t NumMessageViewsForTest() const; 85 size_t NumMessageViewsForTest() const;
85 86
86 void SetSettingsVisible(bool visible); 87 void SetSettingsVisible(bool visible);
87 bool settings_visible() const { return settings_visible_; } 88 bool settings_visible() const { return settings_visible_; }
88 89
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 int source_height_; 129 int source_height_;
129 int target_height_; 130 int target_height_;
130 scoped_ptr<ui::MultiAnimation> settings_transition_animation_; 131 scoped_ptr<ui::MultiAnimation> settings_transition_animation_;
131 132
132 DISALLOW_COPY_AND_ASSIGN(MessageCenterView); 133 DISALLOW_COPY_AND_ASSIGN(MessageCenterView);
133 }; 134 };
134 135
135 } // namespace message_center 136 } // namespace message_center
136 137
137 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_VIEW_H_ 138 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698