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

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

Issue 1645843003: Implement Non-Closable Notification (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unnecessary property. Created 4 years, 9 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) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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_LIST_VIEW_H_ 5 #ifndef UI_MESSAGE_CENTER_VIEWS_MESSAGE_LIST_VIEW_H_
6 #define UI_MESSAGE_CENTER_VIEWS_MESSAGE_LIST_VIEW_H_ 6 #define UI_MESSAGE_CENTER_VIEWS_MESSAGE_LIST_VIEW_H_
7 7
8 #include <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 10
(...skipping 28 matching lines...) Expand all
39 public: 39 public:
40 explicit MessageListView(MessageCenterView* message_center_view, 40 explicit MessageListView(MessageCenterView* message_center_view,
41 bool top_down); 41 bool top_down);
42 ~MessageListView() override; 42 ~MessageListView() override;
43 43
44 void AddNotificationAt(MessageView* view, int i); 44 void AddNotificationAt(MessageView* view, int i);
45 void RemoveNotification(MessageView* view); 45 void RemoveNotification(MessageView* view);
46 void UpdateNotification(MessageView* view, const Notification& notification); 46 void UpdateNotification(MessageView* view, const Notification& notification);
47 void SetRepositionTarget(const gfx::Rect& target_rect); 47 void SetRepositionTarget(const gfx::Rect& target_rect);
48 void ResetRepositionSession(); 48 void ResetRepositionSession();
49 void ClearAllNotifications(const gfx::Rect& visible_scroll_rect); 49 void ClearAllClosableNotifications(const gfx::Rect& visible_scroll_rect);
50 50
51 MESSAGE_CENTER_EXPORT void SetRepositionTargetForTest( 51 MESSAGE_CENTER_EXPORT void SetRepositionTargetForTest(
52 const gfx::Rect& target_rect); 52 const gfx::Rect& target_rect);
53 53
54 protected: 54 protected:
55 // Overridden from views::View. 55 // Overridden from views::View.
56 void Layout() override; 56 void Layout() override;
57 gfx::Size GetPreferredSize() const override; 57 gfx::Size GetPreferredSize() const override;
58 int GetHeightForWidth(int width) const override; 58 int GetHeightForWidth(int width) const override;
59 void PaintChildren(const ui::PaintContext& context) override; 59 void PaintChildren(const ui::PaintContext& context) override;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // If true, the message loop will be quitted after the animation finishes. 105 // If true, the message loop will be quitted after the animation finishes.
106 // This is just for tests and has no setter. 106 // This is just for tests and has no setter.
107 bool quit_message_loop_after_animation_for_test_; 107 bool quit_message_loop_after_animation_for_test_;
108 108
109 base::WeakPtrFactory<MessageListView> weak_ptr_factory_; 109 base::WeakPtrFactory<MessageListView> weak_ptr_factory_;
110 DISALLOW_COPY_AND_ASSIGN(MessageListView); 110 DISALLOW_COPY_AND_ASSIGN(MessageListView);
111 }; 111 };
112 112
113 } // namespace message_center 113 } // namespace message_center
114 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_LIST_VIEW_H_ 114 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_LIST_VIEW_H_
OLDNEW
« no previous file with comments | « ui/message_center/views/message_center_view_unittest.cc ('k') | ui/message_center/views/message_list_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698