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

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

Issue 2836023002: Fix use-after-free in MessageListView. (Closed)
Patch Set: rebase Created 3 years, 7 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 | « no previous file | ui/message_center/views/message_center_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) 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_MESSAGE_CENTER_VIEW_H_ 5 #ifndef UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_VIEW_H_
6 #define UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_VIEW_H_ 6 #define UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_VIEW_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 // message center views. 149 // message center views.
150 views::View* source_view_; 150 views::View* source_view_;
151 int source_height_; 151 int source_height_;
152 views::View* target_view_; 152 views::View* target_view_;
153 int target_height_; 153 int target_height_;
154 154
155 // True when the widget is closing so that further operations should be 155 // True when the widget is closing so that further operations should be
156 // ignored. 156 // ignored.
157 bool is_closing_; 157 bool is_closing_;
158 158
159 bool is_clearing_ = false; 159 bool is_clearing_all_notifications_ = false;
160 bool is_locked_ = false; 160 bool is_locked_ = false;
161 161
162 // Current view mode. During animation, it is the target mode. 162 // Current view mode. During animation, it is the target mode.
163 Mode mode_ = Mode::BUTTONS_ONLY; 163 Mode mode_ = Mode::BUTTONS_ONLY;
164 164
165 std::unique_ptr<MessageViewContextMenuController> context_menu_controller_; 165 std::unique_ptr<MessageViewContextMenuController> context_menu_controller_;
166 166
167 views::FocusManager* focus_manager_ = nullptr; 167 views::FocusManager* focus_manager_ = nullptr;
168 168
169 DISALLOW_COPY_AND_ASSIGN(MessageCenterView); 169 DISALLOW_COPY_AND_ASSIGN(MessageCenterView);
170 }; 170 };
171 171
172 } // namespace message_center 172 } // namespace message_center
173 173
174 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_VIEW_H_ 174 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | ui/message_center/views/message_center_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698