| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/content_settings/content_setting_bubble_cocoa.h
" | 5 #import "chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.h
" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 784 frame.size.width += size.width; | 784 frame.size.width += size.width; |
| 785 [[self window] setFrame:frame display:NO]; | 785 [[self window] setFrame:frame display:NO]; |
| 786 } | 786 } |
| 787 | 787 |
| 788 - (void)awakeFromNib { | 788 - (void)awakeFromNib { |
| 789 [super awakeFromNib]; | 789 [super awakeFromNib]; |
| 790 | 790 |
| 791 ContentSettingSimpleBubbleModel* simple_bubble = | 791 ContentSettingSimpleBubbleModel* simple_bubble = |
| 792 contentSettingBubbleModel_->AsSimpleBubbleModel(); | 792 contentSettingBubbleModel_->AsSimpleBubbleModel(); |
| 793 | 793 |
| 794 [[self bubble] setArrowLocation:info_bubble::kTopRight]; | 794 [[self bubble] setArrowLocation:info_bubble::kTopTrailing]; |
| 795 | 795 |
| 796 // Adapt window size to bottom buttons. Do this before all other layouting. | 796 // Adapt window size to bottom buttons. Do this before all other layouting. |
| 797 if (simple_bubble && !simple_bubble->bubble_content().manage_text.empty()) | 797 if (simple_bubble && !simple_bubble->bubble_content().manage_text.empty()) |
| 798 [self initManageDoneButtons]; | 798 [self initManageDoneButtons]; |
| 799 | 799 |
| 800 [self initializeTitle]; | 800 [self initializeTitle]; |
| 801 [self initializeMessage]; | 801 [self initializeMessage]; |
| 802 | 802 |
| 803 // Note that the per-content-type methods and |initializeRadioGroup| below | 803 // Note that the per-content-type methods and |initializeRadioGroup| below |
| 804 // must be kept in the correct order, as they make interdependent adjustments | 804 // must be kept in the correct order, as they make interdependent adjustments |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 913 | 913 |
| 914 - (content_setting_bubble::MediaMenuPartsMap*)mediaMenus { | 914 - (content_setting_bubble::MediaMenuPartsMap*)mediaMenus { |
| 915 return &mediaMenus_; | 915 return &mediaMenus_; |
| 916 } | 916 } |
| 917 | 917 |
| 918 - (LocationBarDecoration*)decorationForBubble { | 918 - (LocationBarDecoration*)decorationForBubble { |
| 919 return decoration_; | 919 return decoration_; |
| 920 } | 920 } |
| 921 | 921 |
| 922 @end // ContentSettingBubbleController | 922 @end // ContentSettingBubbleController |
| OLD | NEW |