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

Unified Diff: chrome/browser/ui/cocoa/profiles/user_manager_mac.mm

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 | « no previous file | chrome/browser/ui/user_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/profiles/user_manager_mac.mm
diff --git a/chrome/browser/ui/cocoa/profiles/user_manager_mac.mm b/chrome/browser/ui/cocoa/profiles/user_manager_mac.mm
index ed03fe1ed5f9222e37e36f1b3626c8dd65fe9431..e19a9fd67aed0f6b2af037bbd14a40c5b8990cbf 100644
--- a/chrome/browser/ui/cocoa/profiles/user_manager_mac.mm
+++ b/chrome/browser/ui/cocoa/profiles/user_manager_mac.mm
@@ -21,12 +21,6 @@
#include "ui/base/l10n/l10n_util_mac.h"
#include "ui/events/keycodes/keyboard_codes.h"
-// Default window size. Taken from the views implementation in
-// chrome/browser/ui/views/user_manager_view.cc.
-// TODO(noms): Figure out if this size can be computed dynamically or adjusted
-// for smaller screens.
-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.
@@ -89,9 +83,10 @@ class UserManagerWebContentsDelegate : public content::WebContentsDelegate {
CGFloat screenHeight = [mainScreen frame].size.height;
CGFloat screenWidth = [mainScreen frame].size.width;
- NSRect contentRect = NSMakeRect((screenWidth - kWindowWidth) / 2,
- (screenHeight - kWindowHeight) / 2,
- kWindowWidth, kWindowHeight);
+ NSRect contentRect =
+ NSMakeRect((screenWidth - UserManager::kWindowWidth) / 2,
+ (screenHeight - UserManager::kWindowHeight) / 2,
+ UserManager::kWindowWidth, UserManager::kWindowHeight);
ChromeEventProcessingWindow* window = [[ChromeEventProcessingWindow alloc]
initWithContentRect:contentRect
styleMask:NSTitledWindowMask |
@@ -101,7 +96,8 @@ class UserManagerWebContentsDelegate : public content::WebContentsDelegate {
defer:NO
screen:mainScreen];
[window setTitle:l10n_util::GetNSString(IDS_PRODUCT_NAME)];
- [window setMinSize:NSMakeSize(kWindowWidth, kWindowHeight)];
+ [window setMinSize:NSMakeSize(UserManager::kWindowWidth,
+ UserManager::kWindowHeight)];
if ((self = [super initWithWindow:window])) {
userManagerObserver_ = userManagerObserver;
« no previous file with comments | « no previous file | chrome/browser/ui/user_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698