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 "chrome/grit/generated_resources.h" |
19 #include "content/public/browser/plugin_service.h" | 20 #include "content/public/browser/plugin_service.h" |
20 #include "content/public/browser/web_contents_observer.h" | 21 #include "content/public/browser/web_contents_observer.h" |
21 #include "grit/generated_resources.h" | |
22 #include "skia/ext/skia_utils_mac.h" | 22 #include "skia/ext/skia_utils_mac.h" |
23 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMUILocalizerAndLayoutTw
eaker.h" | 23 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMUILocalizerAndLayoutTw
eaker.h" |
24 #import "ui/base/cocoa/controls/hyperlink_button_cell.h" | 24 #import "ui/base/cocoa/controls/hyperlink_button_cell.h" |
25 #include "ui/base/l10n/l10n_util.h" | 25 #include "ui/base/l10n/l10n_util.h" |
26 | 26 |
27 using content::PluginService; | 27 using content::PluginService; |
28 | 28 |
29 namespace { | 29 namespace { |
30 | 30 |
31 // Height of one link in the popup list. | 31 // Height of one link in the popup list. |
(...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
818 button, base::SysUTF16ToNSString(it->second->model->GetLabelAt(index))); | 818 button, base::SysUTF16ToNSString(it->second->model->GetLabelAt(index))); |
819 | 819 |
820 it->second->model->ExecuteCommand(index, 0); | 820 it->second->model->ExecuteCommand(index, 0); |
821 } | 821 } |
822 | 822 |
823 - (content_setting_bubble::MediaMenuPartsMap*)mediaMenus { | 823 - (content_setting_bubble::MediaMenuPartsMap*)mediaMenus { |
824 return &mediaMenus_; | 824 return &mediaMenus_; |
825 } | 825 } |
826 | 826 |
827 @end // ContentSettingBubbleController | 827 @end // ContentSettingBubbleController |
OLD | NEW |