OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "chrome/browser/ui/views/profiles/user_manager_view.h" | 5 #include "chrome/browser/ui/views/profiles/user_manager_view.h" |
6 | 6 |
7 #include "chrome/browser/browser_process.h" | 7 #include "chrome/browser/browser_process.h" |
8 #include "chrome/browser/lifetime/application_lifetime.h" | 8 #include "chrome/browser/lifetime/application_lifetime.h" |
9 #include "chrome/browser/profiles/profile_manager.h" | 9 #include "chrome/browser/profiles/profile_manager.h" |
10 #include "chrome/browser/profiles/profile_metrics.h" | 10 #include "chrome/browser/profiles/profile_metrics.h" |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 } | 179 } |
180 | 180 |
181 bool UserManagerView::CanResize() const { | 181 bool UserManagerView::CanResize() const { |
182 return true; | 182 return true; |
183 } | 183 } |
184 | 184 |
185 bool UserManagerView::CanMaximize() const { | 185 bool UserManagerView::CanMaximize() const { |
186 return true; | 186 return true; |
187 } | 187 } |
188 | 188 |
| 189 bool UserManagerView::CanMinimize() const { |
| 190 return true; |
| 191 } |
| 192 |
189 base::string16 UserManagerView::GetWindowTitle() const { | 193 base::string16 UserManagerView::GetWindowTitle() const { |
190 return l10n_util::GetStringUTF16(IDS_PRODUCT_NAME); | 194 return l10n_util::GetStringUTF16(IDS_PRODUCT_NAME); |
191 } | 195 } |
192 | 196 |
193 int UserManagerView::GetDialogButtons() const { | 197 int UserManagerView::GetDialogButtons() const { |
194 return ui::DIALOG_BUTTON_NONE; | 198 return ui::DIALOG_BUTTON_NONE; |
195 } | 199 } |
196 | 200 |
197 void UserManagerView::WindowClosing() { | 201 void UserManagerView::WindowClosing() { |
198 // Now that the window is closed, we can allow a new one to be opened. | 202 // Now that the window is closed, we can allow a new one to be opened. |
199 // (WindowClosing comes in asynchronously from the call to Close() and we | 203 // (WindowClosing comes in asynchronously from the call to Close() and we |
200 // may have already opened a new instance). | 204 // may have already opened a new instance). |
201 if (instance_ == this) | 205 if (instance_ == this) |
202 instance_ = NULL; | 206 instance_ = NULL; |
203 } | 207 } |
204 | 208 |
205 bool UserManagerView::UseNewStyleForThisDialog() const { | 209 bool UserManagerView::UseNewStyleForThisDialog() const { |
206 return false; | 210 return false; |
207 } | 211 } |
OLD | NEW |