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

Side by Side Diff: chrome/browser/ui/views/profiles/user_manager_view.cc

Issue 583603004: Add CanMinimize to classes that implement WidgetDelegate::CanMaximize. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@win_resizable
Patch Set: Add TODO. Created 6 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 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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/profiles/user_manager_view.h ('k') | chrome/browser/ui/views/task_manager_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698