Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: chrome/browser/ui/cocoa/autofill/autofill_main_container.mm

Issue 1162393003: Replace info_bubble::BubbleArrowLocation with views::BubbleBorder::Arrow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile in test Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 [[self view] addSubview:buttonStripImage_]; 73 [[self view] addSubview:buttonStripImage_];
74 74
75 // Set up "Save in Chrome" checkbox. 75 // Set up "Save in Chrome" checkbox.
76 saveInChromeCheckbox_.reset([[NSButton alloc] initWithFrame:NSZeroRect]); 76 saveInChromeCheckbox_.reset([[NSButton alloc] initWithFrame:NSZeroRect]);
77 [saveInChromeCheckbox_ setButtonType:NSSwitchButton]; 77 [saveInChromeCheckbox_ setButtonType:NSSwitchButton];
78 [saveInChromeCheckbox_ setTitle: 78 [saveInChromeCheckbox_ setTitle:
79 base::SysUTF16ToNSString(delegate_->SaveLocallyText())]; 79 base::SysUTF16ToNSString(delegate_->SaveLocallyText())];
80 [saveInChromeCheckbox_ sizeToFit]; 80 [saveInChromeCheckbox_ sizeToFit];
81 [[self view] addSubview:saveInChromeCheckbox_]; 81 [[self view] addSubview:saveInChromeCheckbox_];
82 82
83 saveInChromeTooltip_.reset( 83 saveInChromeTooltip_.reset([[AutofillTooltipController alloc]
84 [[AutofillTooltipController alloc] 84 initWithArrowLocation:views::BubbleBorder::TOP_CENTER]);
85 initWithArrowLocation:info_bubble::kTopCenter]);
86 [saveInChromeTooltip_ setImage: 85 [saveInChromeTooltip_ setImage:
87 ui::ResourceBundle::GetSharedInstance().GetNativeImageNamed( 86 ui::ResourceBundle::GetSharedInstance().GetNativeImageNamed(
88 IDR_AUTOFILL_TOOLTIP_ICON).ToNSImage()]; 87 IDR_AUTOFILL_TOOLTIP_ICON).ToNSImage()];
89 [saveInChromeTooltip_ setMessage: 88 [saveInChromeTooltip_ setMessage:
90 base::SysUTF16ToNSString(delegate_->SaveLocallyTooltip())]; 89 base::SysUTF16ToNSString(delegate_->SaveLocallyTooltip())];
91 [[self view] addSubview:[saveInChromeTooltip_ view]]; 90 [[self view] addSubview:[saveInChromeTooltip_ view]];
92 [self updateSaveInChrome]; 91 [self updateSaveInChrome];
93 92
94 detailsContainer_.reset( 93 detailsContainer_.reset(
95 [[AutofillDetailsContainer alloc] initWithDelegate:delegate_]); 94 [[AutofillDetailsContainer alloc] initWithDelegate:delegate_]);
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 414
416 - (NSImageView*)buttonStripImageForTesting { 415 - (NSImageView*)buttonStripImageForTesting {
417 return buttonStripImage_.get(); 416 return buttonStripImage_.get();
418 } 417 }
419 418
420 - (NSButton*)saveInChromeTooltipForTesting { 419 - (NSButton*)saveInChromeTooltipForTesting {
421 return base::mac::ObjCCast<NSButton>([saveInChromeTooltip_ view]); 420 return base::mac::ObjCCast<NSButton>([saveInChromeTooltip_ view]);
422 } 421 }
423 422
424 @end 423 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698