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 #include <algorithm> | 5 #include <algorithm> |
6 | 6 |
7 #import "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_auto_signin_v
iew_controller.h" | 7 #import "chrome/browser/ui/cocoa/passwords/auto_signin_view_controller.h" |
8 | 8 |
9 #include "base/mac/bind_objc_block.h" | 9 #include "base/mac/bind_objc_block.h" |
10 #include "base/strings/sys_string_conversions.h" | 10 #include "base/strings/sys_string_conversions.h" |
11 #include "base/timer/timer.h" | 11 #include "base/timer/timer.h" |
12 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
13 #include "chrome/browser/ui/chrome_style.h" | 13 #include "chrome/browser/ui/chrome_style.h" |
14 #import "chrome/browser/ui/cocoa/passwords/account_avatar_fetcher_manager.h" | 14 #import "chrome/browser/ui/cocoa/passwords/account_avatar_fetcher_manager.h" |
15 #import "chrome/browser/ui/cocoa/passwords/credential_item_view.h" | 15 #import "chrome/browser/ui/cocoa/passwords/credential_item_view.h" |
16 #include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h" | 16 #include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h" |
17 #include "grit/generated_resources.h" | 17 #include "grit/generated_resources.h" |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 const CGFloat kPadding = password_manager::mac::ui::kFramePadding; | 77 const CGFloat kPadding = password_manager::mac::ui::kFramePadding; |
78 [view setFrameSize:NSMakeSize( | 78 [view setFrameSize:NSMakeSize( |
79 2 * kPadding + NSWidth([credentialView_ frame]), | 79 2 * kPadding + NSWidth([credentialView_ frame]), |
80 2 * kPadding + NSHeight([credentialView_ frame]))]; | 80 2 * kPadding + NSHeight([credentialView_ frame]))]; |
81 [view addSubview:credentialView_]; | 81 [view addSubview:credentialView_]; |
82 [credentialView_ setFrameOrigin:NSMakePoint(kPadding, kPadding)]; | 82 [credentialView_ setFrameOrigin:NSMakePoint(kPadding, kPadding)]; |
83 [self setView:view]; | 83 [self setView:view]; |
84 } | 84 } |
85 | 85 |
86 @end | 86 @end |
OLD | NEW |