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

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

Issue 2390953004: WidgetDelegateView is its own contents view. (Closed)
Patch Set: another minor fix Created 4 years, 2 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 100
101 // Overridden from gfx::AnimationDelegate: 101 // Overridden from gfx::AnimationDelegate:
102 void AnimationProgressed(const gfx::Animation* animation) override; 102 void AnimationProgressed(const gfx::Animation* animation) override;
103 void AnimationEnded(const gfx::Animation* animation) override; 103 void AnimationEnded(const gfx::Animation* animation) override;
104 void AnimationCanceled(const gfx::Animation* animation) override; 104 void AnimationCanceled(const gfx::Animation* animation) override;
105 105
106 // Overridden from views::WidgetDelegate: 106 // Overridden from views::WidgetDelegate:
107 views::View* GetContentsView() override;
108 void WindowClosing() override; 107 void WindowClosing() override;
109 void OnDisplayChanged() override; 108 void OnDisplayChanged() override;
110 void OnWorkAreaChanged() override; 109 void OnWorkAreaChanged() override;
111 110
112 // Recalculates preferred size from underlying view and notifies about it. 111 // Recalculates preferred size from underlying view and notifies about it.
113 void UpdatePreferredSize(); 112 void UpdatePreferredSize();
114 113
115 // Initialization and update. 114 // Initialization and update.
116 void CreateWidget(PopupAlignmentDelegate* alignment_delegate); 115 void CreateWidget(PopupAlignmentDelegate* alignment_delegate);
117 116
(...skipping 27 matching lines...) Expand all
145 144
146 gfx::Point origin_; 145 gfx::Point origin_;
147 gfx::Size preferred_size_; 146 gfx::Size preferred_size_;
148 147
149 DISALLOW_COPY_AND_ASSIGN(ToastContentsView); 148 DISALLOW_COPY_AND_ASSIGN(ToastContentsView);
150 }; 149 };
151 150
152 } // namespace message_center 151 } // namespace message_center
153 152
154 #endif // UI_MESSAGE_CENTER_VIEWS_TOAST_CONTENTS_VIEW_H_ 153 #endif // UI_MESSAGE_CENTER_VIEWS_TOAST_CONTENTS_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698