// |controller| may be NULL, but has to be set before the view is shown.
static NotificationView* Create(MessageCenterController* controller,
const Notification& notification,
- bool expanded,
bool top_level);
virtual ~NotificationView();
protected:
NotificationView(MessageCenterController* controller,
- const Notification& notification,
- bool expanded);
+ const Notification& notification);
private:
- bool IsExpansionNeeded(int width);
- bool IsMessageExpansionNeeded(int width);
int GetMessageLineLimit(int width);
int GetMessageLines(int width, int limit);
int GetMessageHeight(int width, int limit);
// Describes whether the view should display a hand pointer or not.
bool clickable_;
- bool is_expanded_;
// Weak references to NotificationView descendants owned by their parents.
views::View* top_view_;
views::View* image_view_;
views::ProgressBar* progress_bar_view_;
std::vector<views::View*> action_buttons_;
- PaddedButton* expand_button_;
DISALLOW_COPY_AND_ASSIGN(NotificationView);
};