OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "ui/message_center/cocoa/settings_entry_view.h" | 5 #import "ui/message_center/cocoa/settings_entry_view.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/strings/sys_string_conversions.h" | 9 #include "base/strings/sys_string_conversions.h" |
10 #include "grit/ui_resources.h" | |
11 #include "skia/ext/skia_utils_mac.h" | 10 #include "skia/ext/skia_utils_mac.h" |
12 #include "ui/base/resource/resource_bundle.h" | 11 #include "ui/base/resource/resource_bundle.h" |
13 #import "ui/message_center/cocoa/settings_controller.h" | 12 #import "ui/message_center/cocoa/settings_controller.h" |
14 #include "ui/message_center/message_center_style.h" | 13 #include "ui/message_center/message_center_style.h" |
| 14 #include "ui/resources/grit/ui_resources.h" |
15 | 15 |
16 using message_center::settings::kEntryIconSize; | 16 using message_center::settings::kEntryIconSize; |
17 using message_center::settings::kInternalHorizontalSpacing; | 17 using message_center::settings::kInternalHorizontalSpacing; |
18 | 18 |
19 // Size of the widget rendered for us by Cocoa. | 19 // Size of the widget rendered for us by Cocoa. |
20 const int kCocoaCheckboxSize = 14; | 20 const int kCocoaCheckboxSize = 14; |
21 | 21 |
22 // Intrinsic padding pixels out of our control. | 22 // Intrinsic padding pixels out of our control. |
23 // Cocoa gives the checkmark some blank space on either side. | 23 // Cocoa gives the checkmark some blank space on either side. |
24 const int kIntrinsicCheckmarkLeftPadding = 2; | 24 const int kIntrinsicCheckmarkLeftPadding = 2; |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 | 284 |
285 // Testing API ///////////////////////////////////////////////////////////////// | 285 // Testing API ///////////////////////////////////////////////////////////////// |
286 | 286 |
287 - (void)clickLearnMore { | 287 - (void)clickLearnMore { |
288 [learnMoreButton_ performClick:nil]; | 288 [learnMoreButton_ performClick:nil]; |
289 } | 289 } |
290 | 290 |
291 @end | 291 @end |
292 | 292 |
293 /////////////////////////////////////////////////////////////////////////////// | 293 /////////////////////////////////////////////////////////////////////////////// |
OLD | NEW |