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" |
11 #include "chrome/browser/ui/autofill/autofill_popup_controller.h" | 11 #include "chrome/browser/ui/autofill/autofill_popup_controller.h" |
12 #include "chrome/browser/ui/autofill/autofill_popup_view.h" | 12 #include "chrome/browser/ui/autofill/autofill_popup_view.h" |
13 #include "chrome/browser/ui/autofill/popup_constants.h" | 13 #include "chrome/browser/ui/autofill/popup_constants.h" |
14 #include "chrome/browser/ui/chrome_style.h" | 14 #include "chrome/browser/ui/chrome_style.h" |
15 #include "chrome/browser/ui/cocoa/autofill/password_generation_popup_view_bridge
.h" | 15 #include "chrome/browser/ui/cocoa/autofill/password_generation_popup_view_bridge
.h" |
16 #import "chrome/browser/ui/cocoa/l10n_util.h" | 16 #import "chrome/browser/ui/cocoa/l10n_util.h" |
17 #include "components/autofill/core/browser/popup_item_ids.h" | 17 #include "components/autofill/core/browser/popup_item_ids.h" |
18 #include "grit/theme_resources.h" | 18 #include "grit/theme_resources.h" |
19 #include "skia/ext/skia_utils_mac.h" | 19 #include "skia/ext/skia_utils_mac.h" |
20 #import "ui/base/cocoa/controls/hyperlink_text_view.h" | 20 #import "ui/base/cocoa/controls/hyperlink_text_view.h" |
21 #include "ui/base/resource/resource_bundle.h" | 21 #include "ui/base/resource/resource_bundle.h" |
22 #include "ui/gfx/font_list.h" | 22 #include "ui/gfx/font_list.h" |
23 #include "ui/gfx/geometry/point.h" | 23 #include "ui/gfx/geometry/point.h" |
| 24 #include "ui/gfx/geometry/rect.h" |
24 #include "ui/gfx/image/image.h" | 25 #include "ui/gfx/image/image.h" |
25 #include "ui/gfx/range/range.h" | 26 #include "ui/gfx/range/range.h" |
26 #include "ui/gfx/rect.h" | |
27 #include "ui/gfx/text_constants.h" | 27 #include "ui/gfx/text_constants.h" |
28 | 28 |
29 using autofill::AutofillPopupView; | 29 using autofill::AutofillPopupView; |
30 using autofill::PasswordGenerationPopupController; | 30 using autofill::PasswordGenerationPopupController; |
31 using autofill::PasswordGenerationPopupView; | 31 using autofill::PasswordGenerationPopupView; |
32 using base::scoped_nsobject; | 32 using base::scoped_nsobject; |
33 | 33 |
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. |
(...skipping 313 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 |