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

Unified Diff: chrome/browser/ui/views/profiles/user_manager_view.cc

Issue 605503002: Shrink the user manager to 800x600. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/user_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/profiles/user_manager_view.cc
diff --git a/chrome/browser/ui/views/profiles/user_manager_view.cc b/chrome/browser/ui/views/profiles/user_manager_view.cc
index 6a336a3337f67b9eb0a37f641147676c88339bfb..3de57aa69d67b530b99fb7b9c1d07f8fd47f2280 100644
--- a/chrome/browser/ui/views/profiles/user_manager_view.cc
+++ b/chrome/browser/ui/views/profiles/user_manager_view.cc
@@ -34,10 +34,6 @@
namespace {
-// Default window size.
-const int kWindowWidth = 900;
-const int kWindowHeight = 700;
-
// An open User Manager window. There can only be one open at a time. This
// is reset to NULL when the window is closed.
UserManagerView* instance_ = NULL;
@@ -139,7 +135,8 @@ void UserManagerView::Init(
browser->window()->GetNativeWindow())->GetNativeView();
bounds = gfx::Screen::GetScreenFor(native_view)->
GetDisplayNearestWindow(native_view).work_area();
- bounds.ClampToCenteredSize(gfx::Size(kWindowWidth, kWindowHeight));
+ bounds.ClampToCenteredSize(gfx::Size(UserManager::kWindowWidth,
+ UserManager::kWindowHeight));
}
}
}
@@ -173,7 +170,7 @@ bool UserManagerView::AcceleratorPressed(const ui::Accelerator& accelerator) {
}
gfx::Size UserManagerView::GetPreferredSize() const {
- return gfx::Size(kWindowWidth, kWindowHeight);
+ return gfx::Size(UserManager::kWindowWidth, UserManager::kWindowHeight);
}
bool UserManagerView::CanResize() const {
« no previous file with comments | « chrome/browser/ui/user_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698