Commit 51fdea3a authored by erikchen's avatar erikchen Committed by Commit bot

mac: Rename the method -layout in MCSettingsButtonCell.

-layout is the name of a method on NSView that performs constraint based
layout. The new method's name is -layoutEntryView.

BUG=471823

Review URL: https://codereview.chromium.org/1114743002

Cr-Commit-Position: refs/heads/master@{#327525}
parent afeb5b7e
...@@ -169,21 +169,21 @@ const int kCorrectedEntryRightPadding = ...@@ -169,21 +169,21 @@ const int kCorrectedEntryRightPadding =
notifier_ = notifier; notifier_ = notifier;
if (!notifier->icon.IsEmpty()) if (!notifier->icon.IsEmpty())
notifierIcon_.reset(notifier->icon.CopyNSImage()); notifierIcon_.reset(notifier->icon.CopyNSImage());
[self layout]; [self layoutEntryView];
} }
return self; return self;
} }
- (void)setNotifierIcon:(NSImage*)notifierIcon { - (void)setNotifierIcon:(NSImage*)notifierIcon {
notifierIcon_.reset([notifierIcon retain]); notifierIcon_.reset([notifierIcon retain]);
[self layout]; [self layoutEntryView];
} }
- (NSButton*)checkbox { - (NSButton*)checkbox {
return checkbox_; return checkbox_;
} }
- (void)layout { - (void)layoutEntryView {
BOOL hasLearnMore = BOOL hasLearnMore =
[controller_ notifierHasAdvancedSettings:notifier_->notifier_id]; [controller_ notifierHasAdvancedSettings:notifier_->notifier_id];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment