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

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

Issue 2685283002: Add UpdateNotificationSize to MessageCenterController. (Closed)
Patch Set: address comments Created 3 years, 10 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
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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 void ClickOnNotification(const std::string& notification_id) override; 79 void ClickOnNotification(const std::string& notification_id) override;
80 void RemoveNotification(const std::string& notification_id, 80 void RemoveNotification(const std::string& notification_id,
81 bool by_user) override; 81 bool by_user) override;
82 std::unique_ptr<ui::MenuModel> CreateMenuModel( 82 std::unique_ptr<ui::MenuModel> CreateMenuModel(
83 const NotifierId& notifier_id, 83 const NotifierId& notifier_id,
84 const base::string16& display_source) override; 84 const base::string16& display_source) override;
85 bool HasClickedListener(const std::string& notification_id) override; 85 bool HasClickedListener(const std::string& notification_id) override;
86 void ClickOnNotificationButton(const std::string& notification_id, 86 void ClickOnNotificationButton(const std::string& notification_id,
87 int button_index) override; 87 int button_index) override;
88 void ClickOnSettingsButton(const std::string& notification_id) override; 88 void ClickOnSettingsButton(const std::string& notification_id) override;
89 void UpdateNotificationSize(const std::string& notification_id) override;
89 90
90 // Overridden from MessageListView::Observer: 91 // Overridden from MessageListView::Observer:
91 void OnAllNotificationsCleared() override; 92 void OnAllNotificationsCleared() override;
92 93
93 // Overridden from gfx::AnimationDelegate: 94 // Overridden from gfx::AnimationDelegate:
94 void AnimationEnded(const gfx::Animation* animation) override; 95 void AnimationEnded(const gfx::Animation* animation) override;
95 void AnimationProgressed(const gfx::Animation* animation) override; 96 void AnimationProgressed(const gfx::Animation* animation) override;
96 void AnimationCanceled(const gfx::Animation* animation) override; 97 void AnimationCanceled(const gfx::Animation* animation) override;
97 98
98 private: 99 private:
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 Mode mode_ = Mode::BUTTONS_ONLY; 150 Mode mode_ = Mode::BUTTONS_ONLY;
150 151
151 std::unique_ptr<MessageViewContextMenuController> context_menu_controller_; 152 std::unique_ptr<MessageViewContextMenuController> context_menu_controller_;
152 153
153 DISALLOW_COPY_AND_ASSIGN(MessageCenterView); 154 DISALLOW_COPY_AND_ASSIGN(MessageCenterView);
154 }; 155 };
155 156
156 } // namespace message_center 157 } // namespace message_center
157 158
158 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_VIEW_H_ 159 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_VIEW_H_
OLDNEW
« no previous file with comments | « ui/message_center/views/message_center_controller.h ('k') | ui/message_center/views/message_center_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698