| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_main_container.h" | 5 #import "chrome/browser/ui/cocoa/autofill/autofill_main_container.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 | 9 |
| 10 #include "base/mac/foundation_util.h" | 10 #include "base/mac/foundation_util.h" |
| 11 #include "base/strings/sys_string_conversions.h" | 11 #include "base/strings/sys_string_conversions.h" |
| 12 #include "chrome/browser/ui/autofill/autofill_dialog_view_delegate.h" | 12 #include "chrome/browser/ui/autofill/autofill_dialog_view_delegate.h" |
| 13 #include "chrome/browser/ui/chrome_style.h" | 13 #include "chrome/browser/ui/chrome_style.h" |
| 14 #include "chrome/browser/ui/cocoa/autofill/autofill_dialog_constants.h" | 14 #include "chrome/browser/ui/cocoa/autofill/autofill_dialog_constants.h" |
| 15 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_button.h" | 15 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_button.h" |
| 16 #import "chrome/browser/ui/cocoa/autofill/autofill_details_container.h" | 16 #import "chrome/browser/ui/cocoa/autofill/autofill_details_container.h" |
| 17 #import "chrome/browser/ui/cocoa/autofill/autofill_notification_container.h" | 17 #import "chrome/browser/ui/cocoa/autofill/autofill_notification_container.h" |
| 18 #import "chrome/browser/ui/cocoa/autofill/autofill_tooltip_controller.h" | 18 #import "chrome/browser/ui/cocoa/autofill/autofill_tooltip_controller.h" |
| 19 #import "chrome/browser/ui/cocoa/hyperlink_text_view.h" | 19 #import "chrome/browser/ui/cocoa/hyperlink_text_view.h" |
| 20 #import "chrome/browser/ui/cocoa/key_equivalent_constants.h" | 20 #import "chrome/browser/ui/cocoa/key_equivalent_constants.h" |
| 21 #include "grit/generated_resources.h" | 21 #include "grit/generated_resources.h" |
| 22 #include "grit/theme_resources.h" | 22 #include "grit/theme_resources.h" |
| 23 #include "skia/ext/skia_utils_mac.h" | 23 #include "skia/ext/skia_utils_mac.h" |
| 24 #import "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" | 24 #import "third_party/google_toolbox_for_mac/AppKit/GTMUILocalizerAndLayoutTweake
r.h" |
| 25 #import "ui/base/cocoa/controls/blue_label_button.h" | 25 #import "ui/base/cocoa/controls/blue_label_button.h" |
| 26 #include "ui/base/cocoa/window_size_constants.h" | 26 #include "ui/base/cocoa/window_size_constants.h" |
| 27 #include "ui/base/l10n/l10n_util.h" | 27 #include "ui/base/l10n/l10n_util.h" |
| 28 #include "ui/gfx/range/range.h" | 28 #include "ui/gfx/range/range.h" |
| 29 | 29 |
| 30 namespace { | 30 namespace { |
| 31 | 31 |
| 32 // Padding between buttons and the last suggestion or details view. The mock | 32 // Padding between buttons and the last suggestion or details view. The mock |
| 33 // has a total of 30px - but 10px are already provided by details/suggestions. | 33 // has a total of 30px - but 10px are already provided by details/suggestions. |
| 34 const CGFloat kButtonVerticalPadding = 20.0; | 34 const CGFloat kButtonVerticalPadding = 20.0; |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 | 405 |
| 406 - (NSImageView*)buttonStripImageForTesting { | 406 - (NSImageView*)buttonStripImageForTesting { |
| 407 return buttonStripImage_.get(); | 407 return buttonStripImage_.get(); |
| 408 } | 408 } |
| 409 | 409 |
| 410 - (NSButton*)saveInChromeTooltipForTesting { | 410 - (NSButton*)saveInChromeTooltipForTesting { |
| 411 return base::mac::ObjCCast<NSButton>([saveInChromeTooltip_ view]); | 411 return base::mac::ObjCCast<NSButton>([saveInChromeTooltip_ view]); |
| 412 } | 412 } |
| 413 | 413 |
| 414 @end | 414 @end |
| OLD | NEW |