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

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

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More compile fix for ToT Created 6 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 | Annotate | Revision Log
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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 ShellIntegration::GetChromiumModelIdForProfile( 120 ShellIntegration::GetChromiumModelIdForProfile(
121 guest_profile->GetPath()), 121 guest_profile->GetPath()),
122 views::HWNDForWidget(GetWidget())); 122 views::HWNDForWidget(GetWidget()));
123 #endif 123 #endif
124 GetWidget()->Show(); 124 GetWidget()->Show();
125 125
126 web_view_->LoadInitialURL(url); 126 web_view_->LoadInitialURL(url);
127 web_view_->RequestFocus(); 127 web_view_->RequestFocus();
128 } 128 }
129 129
130 gfx::Size UserManagerView::GetPreferredSize() { 130 gfx::Size UserManagerView::GetPreferredSize() const {
131 return gfx::Size(kWindowWidth, kWindowHeight); 131 return gfx::Size(kWindowWidth, kWindowHeight);
132 } 132 }
133 133
134 bool UserManagerView::CanResize() const { 134 bool UserManagerView::CanResize() const {
135 return true; 135 return true;
136 } 136 }
137 137
138 bool UserManagerView::CanMaximize() const { 138 bool UserManagerView::CanMaximize() const {
139 return true; 139 return true;
140 } 140 }
(...skipping 10 matching lines...) Expand all
151 // Now that the window is closed, we can allow a new one to be opened. 151 // Now that the window is closed, we can allow a new one to be opened.
152 // (WindowClosing comes in asynchronously from the call to Close() and we 152 // (WindowClosing comes in asynchronously from the call to Close() and we
153 // may have already opened a new instance). 153 // may have already opened a new instance).
154 if (instance_ == this) 154 if (instance_ == this)
155 instance_ = NULL; 155 instance_ = NULL;
156 } 156 }
157 157
158 bool UserManagerView::UseNewStyleForThisDialog() const { 158 bool UserManagerView::UseNewStyleForThisDialog() const {
159 return false; 159 return false;
160 } 160 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/profiles/user_manager_view.h ('k') | chrome/browser/ui/views/screen_capture_notification_ui_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698