| Index: chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm
|
| diff --git a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm b/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm
|
| index 5c4a91e5b43a8b01b66e2755aa1c50d1582fbc0f..7bf0af0bdb47a7047a520c6556c5d9637af96463 100644
|
| --- a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm
|
| +++ b/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm
|
| @@ -332,6 +332,19 @@ bool LocationBarViewMac::GetBookmarkStarVisibility() {
|
| return star_decoration_->IsVisible();
|
| }
|
|
|
| +bool LocationBarViewMac::TestContentSettingImagePressed(size_t index) {
|
| + if (index >= content_setting_decorations_.size())
|
| + return false;
|
| +
|
| + // TODO(tapted): Use OnAccessibilityViewAction() here. Currently it's broken.
|
| + ContentSettingDecoration* decoration =
|
| + content_setting_decorations_[index].get();
|
| + AutocompleteTextFieldCell* cell = [field_ cell];
|
| + NSRect frame = [cell frameForDecoration:decoration inFrame:[field_ bounds]];
|
| + content_setting_decorations_[index]->OnMousePressed(frame, NSZeroPoint);
|
| + return true;
|
| +}
|
| +
|
| void LocationBarViewMac::SetEditable(bool editable) {
|
| [field_ setEditable:editable ? YES : NO];
|
| UpdateBookmarkStarVisibility();
|
|
|