| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/sys_string_conversions.h" | 9 #include "base/sys_string_conversions.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| 11 #include "chrome/browser/content_settings/host_content_settings_map.h" | 11 #include "chrome/browser/content_settings/host_content_settings_map.h" |
| 12 #include "chrome/browser/ui/content_settings/content_setting_bubble_model.h" | 12 #include "chrome/browser/ui/content_settings/content_setting_bubble_model.h" |
| 13 #import "chrome/browser/ui/cocoa/hyperlink_button_cell.h" | 13 #import "chrome/browser/ui/cocoa/hyperlink_button_cell.h" |
| 14 #import "chrome/browser/ui/cocoa/info_bubble_view.h" | 14 #import "chrome/browser/ui/cocoa/info_bubble_view.h" |
| 15 #import "chrome/browser/ui/cocoa/l10n_util.h" | 15 #import "chrome/browser/ui/cocoa/l10n_util.h" |
| 16 #include "content/browser/plugin_service.h" | 16 #include "content/public/browser/plugin_service.h" |
| 17 #include "grit/generated_resources.h" | 17 #include "grit/generated_resources.h" |
| 18 #include "skia/ext/skia_utils_mac.h" | 18 #include "skia/ext/skia_utils_mac.h" |
| 19 #import "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" | 19 #import "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" |
| 20 #include "ui/base/l10n/l10n_util.h" | 20 #include "ui/base/l10n/l10n_util.h" |
| 21 | 21 |
| 22 using content::PluginService; |
| 23 |
| 22 namespace { | 24 namespace { |
| 23 | 25 |
| 24 // Must match the tag of the unblock radio button in the xib files. | 26 // Must match the tag of the unblock radio button in the xib files. |
| 25 const int kAllowTag = 1; | 27 const int kAllowTag = 1; |
| 26 | 28 |
| 27 // Must match the tag of the block radio button in the xib files. | 29 // Must match the tag of the block radio button in the xib files. |
| 28 const int kBlockTag = 2; | 30 const int kBlockTag = 2; |
| 29 | 31 |
| 30 // Height of one link in the popup list. | 32 // Height of one link in the popup list. |
| 31 const int kLinkHeight = 16; | 33 const int kLinkHeight = 16; |
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 483 | 485 |
| 484 - (IBAction)manageBlocking:(id)sender { | 486 - (IBAction)manageBlocking:(id)sender { |
| 485 contentSettingBubbleModel_->OnManageLinkClicked(); | 487 contentSettingBubbleModel_->OnManageLinkClicked(); |
| 486 } | 488 } |
| 487 | 489 |
| 488 - (IBAction)closeBubble:(id)sender { | 490 - (IBAction)closeBubble:(id)sender { |
| 489 [self close]; | 491 [self close]; |
| 490 } | 492 } |
| 491 | 493 |
| 492 @end // ContentSettingBubbleController | 494 @end // ContentSettingBubbleController |
| OLD | NEW |