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

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

Issue 2877483003: Implements core logic for Pixel Canvas (Closed)
Patch Set: Sync with ToT Created 3 years, 4 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
« no previous file with comments | « ui/gfx/geometry/rect.h ('k') | ui/message_center/views/message_list_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include <vector> 10 #include <vector>
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 void SetRepositionTargetForTest( 56 void SetRepositionTargetForTest(
57 const gfx::Rect& target_rect); 57 const gfx::Rect& target_rect);
58 58
59 void set_scroller(views::ScrollView* scroller) { scroller_ = scroller; } 59 void set_scroller(views::ScrollView* scroller) { scroller_ = scroller; }
60 60
61 protected: 61 protected:
62 // Overridden from views::View. 62 // Overridden from views::View.
63 void Layout() override; 63 void Layout() override;
64 gfx::Size CalculatePreferredSize() const override; 64 gfx::Size CalculatePreferredSize() const override;
65 int GetHeightForWidth(int width) const override; 65 int GetHeightForWidth(int width) const override;
66 void PaintChildren(const ui::PaintContext& context) override; 66 void PaintChildren(const views::PaintInfo& paint_info) override;
67 void ReorderChildLayers(ui::Layer* parent_layer) override; 67 void ReorderChildLayers(ui::Layer* parent_layer) override;
68 68
69 // Overridden from views::BoundsAnimatorObserver. 69 // Overridden from views::BoundsAnimatorObserver.
70 void OnBoundsAnimatorProgressed(views::BoundsAnimator* animator) override; 70 void OnBoundsAnimatorProgressed(views::BoundsAnimator* animator) override;
71 void OnBoundsAnimatorDone(views::BoundsAnimator* animator) override; 71 void OnBoundsAnimatorDone(views::BoundsAnimator* animator) override;
72 72
73 private: 73 private:
74 friend class MessageCenterViewTest; 74 friend class MessageCenterViewTest;
75 friend class MessageListViewTest; 75 friend class MessageListViewTest;
76 76
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 // This is just for tests and has no setter. 123 // This is just for tests and has no setter.
124 bool quit_message_loop_after_animation_for_test_; 124 bool quit_message_loop_after_animation_for_test_;
125 125
126 base::WeakPtrFactory<MessageListView> weak_ptr_factory_; 126 base::WeakPtrFactory<MessageListView> weak_ptr_factory_;
127 DISALLOW_COPY_AND_ASSIGN(MessageListView); 127 DISALLOW_COPY_AND_ASSIGN(MessageListView);
128 }; 128 };
129 129
130 } // namespace message_center 130 } // namespace message_center
131 131
132 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_LIST_VIEW_H_ 132 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_LIST_VIEW_H_
OLDNEW
« no previous file with comments | « ui/gfx/geometry/rect.h ('k') | ui/message_center/views/message_list_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698