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 #import "chrome/browser/ui/cocoa/autofill/autofill_details_container.h" |
14 #include "chrome/browser/ui/cocoa/autofill/autofill_dialog_constants.h" | 15 #include "chrome/browser/ui/cocoa/autofill/autofill_dialog_constants.h" |
15 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_button.h" | |
16 #import "chrome/browser/ui/cocoa/autofill/autofill_details_container.h" | |
17 #import "chrome/browser/ui/cocoa/autofill/autofill_notification_container.h" | 16 #import "chrome/browser/ui/cocoa/autofill/autofill_notification_container.h" |
18 #import "chrome/browser/ui/cocoa/autofill/autofill_tooltip_controller.h" | 17 #import "chrome/browser/ui/cocoa/autofill/autofill_tooltip_controller.h" |
19 #import "chrome/browser/ui/cocoa/hyperlink_text_view.h" | 18 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_button.h" |
20 #import "chrome/browser/ui/cocoa/key_equivalent_constants.h" | 19 #import "chrome/browser/ui/cocoa/key_equivalent_constants.h" |
21 #include "grit/theme_resources.h" | 20 #include "grit/theme_resources.h" |
22 #include "skia/ext/skia_utils_mac.h" | 21 #include "skia/ext/skia_utils_mac.h" |
23 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMUILocalizerAndLayoutTw
eaker.h" | 22 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMUILocalizerAndLayoutTw
eaker.h" |
24 #import "ui/base/cocoa/controls/blue_label_button.h" | 23 #import "ui/base/cocoa/controls/blue_label_button.h" |
| 24 #import "ui/base/cocoa/controls/hyperlink_text_view.h" |
25 #include "ui/base/cocoa/window_size_constants.h" | 25 #include "ui/base/cocoa/window_size_constants.h" |
26 #include "ui/gfx/range/range.h" | 26 #include "ui/gfx/range/range.h" |
27 | 27 |
28 namespace { | 28 namespace { |
29 | 29 |
30 // Padding between buttons and the last suggestion or details view. The mock | 30 // Padding between buttons and the last suggestion or details view. The mock |
31 // has a total of 30px - but 10px are already provided by details/suggestions. | 31 // has a total of 30px - but 10px are already provided by details/suggestions. |
32 const CGFloat kButtonVerticalPadding = 20.0; | 32 const CGFloat kButtonVerticalPadding = 20.0; |
33 | 33 |
34 // Padding around the text for the legal documents. | 34 // Padding around the text for the legal documents. |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 | 415 |
416 - (NSImageView*)buttonStripImageForTesting { | 416 - (NSImageView*)buttonStripImageForTesting { |
417 return buttonStripImage_.get(); | 417 return buttonStripImage_.get(); |
418 } | 418 } |
419 | 419 |
420 - (NSButton*)saveInChromeTooltipForTesting { | 420 - (NSButton*)saveInChromeTooltipForTesting { |
421 return base::mac::ObjCCast<NSButton>([saveInChromeTooltip_ view]); | 421 return base::mac::ObjCCast<NSButton>([saveInChromeTooltip_ view]); |
422 } | 422 } |
423 | 423 |
424 @end | 424 @end |
OLD | NEW |