Chromium Code Reviews| 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 "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/strings/sys_string_conversions.h" | 8 #include "base/strings/sys_string_conversions.h" |
| 9 #include "chrome/browser/ui/autofill/autofill_popup_controller.h" | 9 #include "chrome/browser/ui/autofill/autofill_popup_controller.h" |
| 10 #include "chrome/browser/ui/autofill/autofill_popup_view.h" | 10 #include "chrome/browser/ui/autofill/autofill_popup_view.h" |
| 11 #include "chrome/browser/ui/autofill/popup_constants.h" | 11 #include "chrome/browser/ui/autofill/popup_constants.h" |
| 12 #include "chrome/browser/ui/chrome_style.h" | 12 #include "chrome/browser/ui/chrome_style.h" |
| 13 #include "chrome/browser/ui/cocoa/autofill/password_generation_popup_view_bridge .h" | 13 #include "chrome/browser/ui/cocoa/autofill/password_generation_popup_view_bridge .h" |
| 14 #import "chrome/browser/ui/cocoa/hyperlink_text_view.h" | 14 #import "chrome/browser/ui/cocoa/hyperlink_text_view.h" |
| 15 #import "chrome/browser/ui/cocoa/l10n_util.h" | 15 #import "chrome/browser/ui/cocoa/l10n_util.h" |
| 16 #include "components/autofill/core/browser/popup_item_ids.h" | 16 #include "components/autofill/core/browser/popup_item_ids.h" |
| 17 #include "grit/ui_resources.h" | 17 #include "grit/ui_resources.h" |
| 18 #include "skia/ext/skia_utils_mac.h" | 18 #include "skia/ext/skia_utils_mac.h" |
| 19 #include "ui/base/resource/resource_bundle.h" | 19 #include "ui/base/resource/resource_bundle.h" |
| 20 #include "ui/gfx/font_list.h" | 20 #include "ui/gfx/font_list.h" |
| 21 #include "ui/gfx/image/image.h" | 21 #include "ui/gfx/image/image.h" |
| 22 #include "ui/gfx/point.h" | 22 #include "ui/gfx/geometry/point.h" |
|
sky
2014/07/24 17:29:56
sort
| |
| 23 #include "ui/gfx/range/range.h" | 23 #include "ui/gfx/range/range.h" |
| 24 #include "ui/gfx/rect.h" | 24 #include "ui/gfx/rect.h" |
| 25 #include "ui/gfx/text_constants.h" | 25 #include "ui/gfx/text_constants.h" |
| 26 | 26 |
| 27 using autofill::AutofillPopupView; | 27 using autofill::AutofillPopupView; |
| 28 using autofill::PasswordGenerationPopupView; | 28 using autofill::PasswordGenerationPopupView; |
| 29 using base::scoped_nsobject; | 29 using base::scoped_nsobject; |
| 30 | 30 |
| 31 namespace { | 31 namespace { |
| 32 | 32 |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 194 - (NSRect)dividerBounds { | 194 - (NSRect)dividerBounds { |
| 195 return NSZeroRect; | 195 return NSZeroRect; |
| 196 } | 196 } |
| 197 | 197 |
| 198 - (NSFont*)textFont { | 198 - (NSFont*)textFont { |
| 199 return ResourceBundle::GetSharedInstance().GetFontList( | 199 return ResourceBundle::GetSharedInstance().GetFontList( |
| 200 ResourceBundle::SmallFont).GetPrimaryFont().GetNativeFont(); | 200 ResourceBundle::SmallFont).GetPrimaryFont().GetNativeFont(); |
| 201 } | 201 } |
| 202 | 202 |
| 203 @end | 203 @end |
| OLD | NEW |