| 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 "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
| 10 #include "base/strings/sys_string_conversions.h" | 10 #include "base/strings/sys_string_conversions.h" |
| 11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 12 #include "chrome/browser/content_settings/host_content_settings_map.h" | 12 #include "chrome/browser/content_settings/host_content_settings_map.h" |
| 13 #include "chrome/browser/plugins/plugin_finder.h" | 13 #include "chrome/browser/plugins/plugin_finder.h" |
| 14 #include "chrome/browser/plugins/plugin_metadata.h" | 14 #include "chrome/browser/plugins/plugin_metadata.h" |
| 15 #import "chrome/browser/ui/cocoa/info_bubble_view.h" | 15 #import "chrome/browser/ui/cocoa/info_bubble_view.h" |
| 16 #import "chrome/browser/ui/cocoa/l10n_util.h" | 16 #import "chrome/browser/ui/cocoa/l10n_util.h" |
| 17 #include "chrome/browser/ui/content_settings/content_setting_bubble_model.h" | 17 #include "chrome/browser/ui/content_settings/content_setting_bubble_model.h" |
| 18 #include "chrome/browser/ui/content_settings/content_setting_media_menu_model.h" | 18 #include "chrome/browser/ui/content_settings/content_setting_media_menu_model.h" |
| 19 #include "content/public/browser/plugin_service.h" | 19 #include "content/public/browser/plugin_service.h" |
| 20 #include "grit/generated_resources.h" | 20 #include "grit/generated_resources.h" |
| 21 #include "skia/ext/skia_utils_mac.h" | 21 #include "skia/ext/skia_utils_mac.h" |
| 22 #import "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" | 22 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMUILocalizerAndLayoutTw
eaker.h" |
| 23 #import "ui/base/cocoa/controls/hyperlink_button_cell.h" | 23 #import "ui/base/cocoa/controls/hyperlink_button_cell.h" |
| 24 #include "ui/base/l10n/l10n_util.h" | 24 #include "ui/base/l10n/l10n_util.h" |
| 25 | 25 |
| 26 using content::PluginService; | 26 using content::PluginService; |
| 27 | 27 |
| 28 namespace { | 28 namespace { |
| 29 | 29 |
| 30 // Height of one link in the popup list. | 30 // Height of one link in the popup list. |
| 31 const int kLinkHeight = 16; | 31 const int kLinkHeight = 16; |
| 32 | 32 |
| (...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 781 button, base::SysUTF16ToNSString(it->second->model->GetLabelAt(index))); | 781 button, base::SysUTF16ToNSString(it->second->model->GetLabelAt(index))); |
| 782 | 782 |
| 783 it->second->model->ExecuteCommand(index, 0); | 783 it->second->model->ExecuteCommand(index, 0); |
| 784 } | 784 } |
| 785 | 785 |
| 786 - (content_setting_bubble::MediaMenuPartsMap*)mediaMenus { | 786 - (content_setting_bubble::MediaMenuPartsMap*)mediaMenus { |
| 787 return &mediaMenus_; | 787 return &mediaMenus_; |
| 788 } | 788 } |
| 789 | 789 |
| 790 @end // ContentSettingBubbleController | 790 @end // ContentSettingBubbleController |
| OLD | NEW |