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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 } |
OLD | NEW |