| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/password_generation_popup_view_cocoa.h
" | 5 #import "chrome/browser/ui/cocoa/autofill/password_generation_popup_view_cocoa.h
" |
| 6 | 6 |
| 7 #include <cmath> | 7 #include <cmath> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/strings/sys_string_conversions.h" | 10 #include "base/strings/sys_string_conversions.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 namespace { | 34 namespace { |
| 35 | 35 |
| 36 // The height of the divider between the password and help sections, in pixels. | 36 // The height of the divider between the password and help sections, in pixels. |
| 37 const CGFloat kDividerHeight = 1; | 37 const CGFloat kDividerHeight = 1; |
| 38 | 38 |
| 39 // The amount of whitespace, in pixels, between lines of text in the password | 39 // The amount of whitespace, in pixels, between lines of text in the password |
| 40 // section. | 40 // section. |
| 41 const CGFloat kPasswordSectionVerticalSeparation = 5; | 41 const CGFloat kPasswordSectionVerticalSeparation = 5; |
| 42 | 42 |
| 43 NSColor* DividerColor() { | 43 NSColor* DividerColor() { |
| 44 return gfx::SkColorToCalibratedNSColor( | 44 return skia::SkColorToCalibratedNSColor( |
| 45 PasswordGenerationPopupView::kDividerColor); | 45 PasswordGenerationPopupView::kDividerColor); |
| 46 } | 46 } |
| 47 | 47 |
| 48 NSColor* HelpTextBackgroundColor() { | 48 NSColor* HelpTextBackgroundColor() { |
| 49 return gfx::SkColorToCalibratedNSColor( | 49 return skia::SkColorToCalibratedNSColor( |
| 50 PasswordGenerationPopupView::kExplanatoryTextBackgroundColor); | 50 PasswordGenerationPopupView::kExplanatoryTextBackgroundColor); |
| 51 } | 51 } |
| 52 | 52 |
| 53 NSColor* HelpTextColor() { | 53 NSColor* HelpTextColor() { |
| 54 return gfx::SkColorToCalibratedNSColor( | 54 return skia::SkColorToCalibratedNSColor( |
| 55 PasswordGenerationPopupView::kExplanatoryTextColor); | 55 PasswordGenerationPopupView::kExplanatoryTextColor); |
| 56 } | 56 } |
| 57 | 57 |
| 58 NSColor* HelpLinkColor() { | 58 NSColor* HelpLinkColor() { |
| 59 return gfx::SkColorToCalibratedNSColor(chrome_style::GetLinkColor()); | 59 return skia::SkColorToCalibratedNSColor(chrome_style::GetLinkColor()); |
| 60 } | 60 } |
| 61 | 61 |
| 62 } // namespace | 62 } // namespace |
| 63 | 63 |
| 64 @implementation PasswordGenerationPopupViewCocoa | 64 @implementation PasswordGenerationPopupViewCocoa |
| 65 | 65 |
| 66 #pragma mark Initialisers | 66 #pragma mark Initialisers |
| 67 | 67 |
| 68 - (id)initWithFrame:(NSRect)frame { | 68 - (id)initWithFrame:(NSRect)frame { |
| 69 NOTREACHED(); | 69 NOTREACHED(); |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 | 350 |
| 351 - (NSFont*)boldFont { | 351 - (NSFont*)boldFont { |
| 352 return [NSFont boldSystemFontOfSize:[NSFont smallSystemFontSize]]; | 352 return [NSFont boldSystemFontOfSize:[NSFont smallSystemFontSize]]; |
| 353 } | 353 } |
| 354 | 354 |
| 355 - (NSFont*)textFont { | 355 - (NSFont*)textFont { |
| 356 return [NSFont systemFontOfSize:[NSFont smallSystemFontSize]]; | 356 return [NSFont systemFontOfSize:[NSFont smallSystemFontSize]]; |
| 357 } | 357 } |
| 358 | 358 |
| 359 @end | 359 @end |
| OLD | NEW |