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

Side by Side Diff: ui/message_center/views/message_center_controller.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 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_MESSAGE_CENTER_CONTROLLER_H_ 5 #ifndef UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_CONTROLLER_H_
6 #define UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_CONTROLLER_H_ 6 #define UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_CONTROLLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 12 matching lines...) Expand all
23 virtual void ClickOnNotification(const std::string& notification_id) = 0; 23 virtual void ClickOnNotification(const std::string& notification_id) = 0;
24 virtual void RemoveNotification(const std::string& notification_id, 24 virtual void RemoveNotification(const std::string& notification_id,
25 bool by_user) = 0; 25 bool by_user) = 0;
26 virtual std::unique_ptr<ui::MenuModel> CreateMenuModel( 26 virtual std::unique_ptr<ui::MenuModel> CreateMenuModel(
27 const NotifierId& notifier_id, 27 const NotifierId& notifier_id,
28 const base::string16& display_source) = 0; 28 const base::string16& display_source) = 0;
29 virtual bool HasClickedListener(const std::string& notification_id) = 0; 29 virtual bool HasClickedListener(const std::string& notification_id) = 0;
30 virtual void ClickOnNotificationButton(const std::string& notification_id, 30 virtual void ClickOnNotificationButton(const std::string& notification_id,
31 int button_index) = 0; 31 int button_index) = 0;
32 virtual void ClickOnSettingsButton(const std::string& notification_id) = 0; 32 virtual void ClickOnSettingsButton(const std::string& notification_id) = 0;
33 // For ArcCustomNotificationView, size changes might come after the
34 // notification update over Mojo. Provide a method here to notify when
35 // a notification changed in some way and needs to be laid out again.
36 // See crbug.com/690813.
37 virtual void UpdateNotification(const std::string& notification_id) = 0;
yoshiki 2017/02/14 02:41:39 nit: I think "UpdateNotificationSize" may be bette
Eliot Courtney 2017/02/14 03:32:15 Done.
33 }; 38 };
34 39
35 } // namespace message_center 40 } // namespace message_center
36 41
37 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_CONTROLLER_H_ 42 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698