OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/cocoa/location_bar/content_setting_decoration.h" | 5 #import "chrome/browser/cocoa/location_bar/content_setting_decoration.h" |
6 | 6 |
7 #include "app/resource_bundle.h" | 7 #include "app/resource_bundle.h" |
8 #include "base/sys_string_conversions.h" | 8 #include "base/sys_string_conversions.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "chrome/browser/browser_list.h" | 10 #include "chrome/browser/browser_list.h" |
11 #import "chrome/browser/cocoa/content_setting_bubble_cocoa.h" | 11 #import "chrome/browser/cocoa/content_setting_bubble_cocoa.h" |
12 #import "chrome/browser/cocoa/location_bar/location_bar_view_mac.h" | 12 #import "chrome/browser/cocoa/location_bar/location_bar_view_mac.h" |
13 #include "chrome/browser/content_setting_image_model.h" | 13 #include "chrome/browser/content_setting_image_model.h" |
14 #include "chrome/browser/content_setting_bubble_model.h" | 14 #include "chrome/browser/content_setting_bubble_model.h" |
15 #include "chrome/browser/pref_service.h" | 15 #include "chrome/browser/prefs/pref_service.h" |
16 #include "chrome/browser/profile.h" | 16 #include "chrome/browser/profile.h" |
17 #include "chrome/browser/tab_contents/tab_contents.h" | 17 #include "chrome/browser/tab_contents/tab_contents.h" |
18 #include "chrome/common/pref_names.h" | 18 #include "chrome/common/pref_names.h" |
19 #include "net/base/net_util.h" | 19 #include "net/base/net_util.h" |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 // How far to offset up from the bottom of the view to get the top | 23 // How far to offset up from the bottom of the view to get the top |
24 // border of the popup 2px below the bottom of the Omnibox. | 24 // border of the popup 2px below the bottom of the Omnibox. |
25 const CGFloat kPopupPointYOffset = 2.0; | 25 const CGFloat kPopupPointYOffset = 2.0; |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 return true; | 100 return true; |
101 } | 101 } |
102 | 102 |
103 NSString* ContentSettingDecoration::GetToolTip() { | 103 NSString* ContentSettingDecoration::GetToolTip() { |
104 return tooltip_.get(); | 104 return tooltip_.get(); |
105 } | 105 } |
106 | 106 |
107 void ContentSettingDecoration::SetToolTip(NSString* tooltip) { | 107 void ContentSettingDecoration::SetToolTip(NSString* tooltip) { |
108 tooltip_.reset([tooltip retain]); | 108 tooltip_.reset([tooltip retain]); |
109 } | 109 } |
OLD | NEW |