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

Side by Side Diff: ui/message_center/views/toast_contents_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_TOAST_CONTENTS_VIEW_H_ 5 #ifndef UI_MESSAGE_CENTER_VIEWS_TOAST_CONTENTS_VIEW_H_
6 #define UI_MESSAGE_CENTER_VIEWS_TOAST_CONTENTS_VIEW_H_ 6 #define UI_MESSAGE_CENTER_VIEWS_TOAST_CONTENTS_VIEW_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 void ClickOnNotification(const std::string& notification_id) override; 90 void ClickOnNotification(const std::string& notification_id) override;
91 void RemoveNotification(const std::string& notification_id, 91 void RemoveNotification(const std::string& notification_id,
92 bool by_user) override; 92 bool by_user) override;
93 std::unique_ptr<ui::MenuModel> CreateMenuModel( 93 std::unique_ptr<ui::MenuModel> CreateMenuModel(
94 const NotifierId& notifier_id, 94 const NotifierId& notifier_id,
95 const base::string16& display_source) override; 95 const base::string16& display_source) override;
96 bool HasClickedListener(const std::string& notification_id) override; 96 bool HasClickedListener(const std::string& notification_id) override;
97 void ClickOnNotificationButton(const std::string& notification_id, 97 void ClickOnNotificationButton(const std::string& notification_id,
98 int button_index) override; 98 int button_index) override;
99 void ClickOnSettingsButton(const std::string& notification_id) override; 99 void ClickOnSettingsButton(const std::string& notification_id) override;
100 void UpdateNotificationSize(const std::string& notification_id) override;
100 101
101 // Overridden from gfx::AnimationDelegate: 102 // Overridden from gfx::AnimationDelegate:
102 void AnimationProgressed(const gfx::Animation* animation) override; 103 void AnimationProgressed(const gfx::Animation* animation) override;
103 void AnimationEnded(const gfx::Animation* animation) override; 104 void AnimationEnded(const gfx::Animation* animation) override;
104 void AnimationCanceled(const gfx::Animation* animation) override; 105 void AnimationCanceled(const gfx::Animation* animation) override;
105 106
106 // Overridden from views::WidgetDelegate: 107 // Overridden from views::WidgetDelegate:
107 void WindowClosing() override; 108 void WindowClosing() override;
108 void OnDisplayChanged() override; 109 void OnDisplayChanged() override;
109 void OnWorkAreaChanged() override; 110 void OnWorkAreaChanged() override;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 145
145 gfx::Point origin_; 146 gfx::Point origin_;
146 gfx::Size preferred_size_; 147 gfx::Size preferred_size_;
147 148
148 DISALLOW_COPY_AND_ASSIGN(ToastContentsView); 149 DISALLOW_COPY_AND_ASSIGN(ToastContentsView);
149 }; 150 };
150 151
151 } // namespace message_center 152 } // namespace message_center
152 153
153 #endif // UI_MESSAGE_CENTER_VIEWS_TOAST_CONTENTS_VIEW_H_ 154 #endif // UI_MESSAGE_CENTER_VIEWS_TOAST_CONTENTS_VIEW_H_
OLDNEW
« no previous file with comments | « ui/message_center/views/notification_view_unittest.cc ('k') | ui/message_center/views/toast_contents_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698