OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/autofill/autofill_dialog_window_controller.h" | 5 #import "chrome/browser/ui/cocoa/autofill/autofill_dialog_window_controller.h" |
6 | 6 |
7 #include "base/mac/foundation_util.h" | 7 #include "base/mac/foundation_util.h" |
8 #include "base/mac/scoped_nsobject.h" | 8 #include "base/mac/scoped_nsobject.h" |
9 #include "base/strings/sys_string_conversions.h" | 9 #include "base/strings/sys_string_conversions.h" |
10 #include "chrome/browser/ui/autofill/autofill_dialog_view_delegate.h" | 10 #include "chrome/browser/ui/autofill/autofill_dialog_view_delegate.h" |
11 #include "chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.h" | 11 #include "chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.h" |
12 #include "chrome/browser/ui/cocoa/autofill/autofill_dialog_constants.h" | 12 #include "chrome/browser/ui/cocoa/autofill/autofill_dialog_constants.h" |
13 #import "chrome/browser/ui/cocoa/autofill/autofill_header.h" | 13 #import "chrome/browser/ui/cocoa/autofill/autofill_header.h" |
14 #import "chrome/browser/ui/cocoa/autofill/autofill_input_field.h" | 14 #import "chrome/browser/ui/cocoa/autofill/autofill_input_field.h" |
15 #import "chrome/browser/ui/cocoa/autofill/autofill_loading_shield_controller.h" | 15 #import "chrome/browser/ui/cocoa/autofill/autofill_loading_shield_controller.h" |
16 #import "chrome/browser/ui/cocoa/autofill/autofill_main_container.h" | 16 #import "chrome/browser/ui/cocoa/autofill/autofill_main_container.h" |
17 #import "chrome/browser/ui/cocoa/autofill/autofill_overlay_controller.h" | 17 #import "chrome/browser/ui/cocoa/autofill/autofill_overlay_controller.h" |
18 #import "chrome/browser/ui/cocoa/autofill/autofill_section_container.h" | 18 #import "chrome/browser/ui/cocoa/autofill/autofill_section_container.h" |
19 #import "chrome/browser/ui/cocoa/autofill/autofill_sign_in_container.h" | 19 #import "chrome/browser/ui/cocoa/autofill/autofill_sign_in_container.h" |
20 #import "chrome/browser/ui/cocoa/autofill/autofill_textfield.h" | 20 #import "chrome/browser/ui/cocoa/autofill/autofill_textfield.h" |
21 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_wi
ndow.h" | 21 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_wi
ndow.h" |
22 #include "content/public/browser/web_contents.h" | 22 #include "content/public/browser/web_contents.h" |
23 #include "grit/generated_resources.h" | |
24 #import "ui/base/cocoa/flipped_view.h" | 23 #import "ui/base/cocoa/flipped_view.h" |
25 #include "ui/base/cocoa/window_size_constants.h" | 24 #include "ui/base/cocoa/window_size_constants.h" |
26 #include "ui/base/l10n/l10n_util.h" | |
27 | 25 |
28 // The minimum useful height of the contents area of the dialog. | 26 // The minimum useful height of the contents area of the dialog. |
29 const CGFloat kMinimumContentsHeight = 101; | 27 const CGFloat kMinimumContentsHeight = 101; |
30 | 28 |
31 #pragma mark AutofillDialogWindow | 29 #pragma mark AutofillDialogWindow |
32 | 30 |
33 // Window class for the AutofillDialog. Its main purpose is the proper handling | 31 // Window class for the AutofillDialog. Its main purpose is the proper handling |
34 // of layout requests - i.e. ensuring that layout is fully done before any | 32 // of layout requests - i.e. ensuring that layout is fully done before any |
35 // updates of the display happen. | 33 // updates of the display happen. |
36 @interface AutofillDialogWindow : ConstrainedWindowCustomWindow { | 34 @interface AutofillDialogWindow : ConstrainedWindowCustomWindow { |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 - (void)onSignInResize:(NSSize)size { | 454 - (void)onSignInResize:(NSSize)size { |
457 [signInContainer_ setPreferredSize:size]; | 455 [signInContainer_ setPreferredSize:size]; |
458 [self requestRelayout]; | 456 [self requestRelayout]; |
459 } | 457 } |
460 | 458 |
461 - (void)validateSection:(autofill::DialogSection)section { | 459 - (void)validateSection:(autofill::DialogSection)section { |
462 [[mainContainer_ sectionForId:section] validateFor:autofill::VALIDATE_EDIT]; | 460 [[mainContainer_ sectionForId:section] validateFor:autofill::VALIDATE_EDIT]; |
463 } | 461 } |
464 | 462 |
465 @end | 463 @end |
OLD | NEW |