| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #import "chrome/browser/ui/cocoa/login_prompt_cocoa.h" | 5 #import "chrome/browser/ui/cocoa/login_prompt_cocoa.h" |
| 6 | 6 |
| 7 #include "base/mac/bundle_locations.h" | 7 #include "base/mac/bundle_locations.h" |
| 8 #include "base/mac/mac_util.h" | |
| 9 #include "base/mac/scoped_nsobject.h" | 8 #include "base/mac/scoped_nsobject.h" |
| 10 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
| 11 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| 12 #include "base/strings/sys_string_conversions.h" | 11 #include "base/strings/sys_string_conversions.h" |
| 13 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
| 14 #include "chrome/browser/tab_contents/tab_util.h" | 13 #include "chrome/browser/tab_contents/tab_util.h" |
| 15 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_sh
eet.h" | 14 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_sh
eet.h" |
| 16 #include "chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h" | 15 #include "chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h" |
| 17 #include "chrome/browser/ui/login/login_prompt.h" | 16 #include "chrome/browser/ui/login/login_prompt.h" |
| 18 #include "components/password_manager/core/browser/login_model.h" | 17 #include "components/password_manager/core/browser/login_model.h" |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 // Resize the text field. | 180 // Resize the text field. |
| 182 CGFloat windowDelta = [GTMUILocalizerAndLayoutTweaker | 181 CGFloat windowDelta = [GTMUILocalizerAndLayoutTweaker |
| 183 sizeToFitFixedWidthTextField:explanationField_]; | 182 sizeToFitFixedWidthTextField:explanationField_]; |
| 184 | 183 |
| 185 NSRect newFrame = [[self window] frame]; | 184 NSRect newFrame = [[self window] frame]; |
| 186 newFrame.size.height += windowDelta; | 185 newFrame.size.height += windowDelta; |
| 187 [[self window] setFrame:newFrame display:NO]; | 186 [[self window] setFrame:newFrame display:NO]; |
| 188 } | 187 } |
| 189 | 188 |
| 190 @end | 189 @end |
| OLD | NEW |