| 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/ui/cocoa/content_settings/cookie_details_view_controller
.h" | 5 #import "chrome/browser/ui/cocoa/content_settings/cookie_details_view_controller
.h" |
| 6 | 6 |
| 7 #include "base/mac/bundle_locations.h" | 7 #include "base/mac/bundle_locations.h" |
| 8 #import "base/mac/mac_util.h" | 8 #import "base/mac/mac_util.h" |
| 9 #include "base/strings/sys_string_conversions.h" | 9 #include "base/strings/sys_string_conversions.h" |
| 10 #import "chrome/browser/ui/cocoa/content_settings/cookie_tree_node.h" | 10 #import "chrome/browser/ui/cocoa/content_settings/cookie_tree_node.h" |
| 11 #import "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" | 11 #import "third_party/google_toolbox_for_mac/AppKit/GTMUILocalizerAndLayoutTweake
r.h" |
| 12 #include "ui/base/l10n/l10n_util_mac.h" | 12 #include "ui/base/l10n/l10n_util_mac.h" |
| 13 #include "ui/base/resource/resource_bundle.h" | 13 #include "ui/base/resource/resource_bundle.h" |
| 14 | 14 |
| 15 namespace { | 15 namespace { |
| 16 static const int kExtraMarginBelowWhenExpirationEditable = 5; | 16 static const int kExtraMarginBelowWhenExpirationEditable = 5; |
| 17 } | 17 } |
| 18 | 18 |
| 19 #pragma mark View Controller | 19 #pragma mark View Controller |
| 20 | 20 |
| 21 @implementation CookieDetailsViewController | 21 @implementation CookieDetailsViewController |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 | 102 |
| 103 - (IBAction)setCookieHasExplicitExpiration:(id)sender { | 103 - (IBAction)setCookieHasExplicitExpiration:(id)sender { |
| 104 [[[objectController_ content] details] setHasExpiration:YES]; | 104 [[[objectController_ content] details] setHasExpiration:YES]; |
| 105 } | 105 } |
| 106 | 106 |
| 107 - (BOOL)hasExpiration { | 107 - (BOOL)hasExpiration { |
| 108 return [[[objectController_ content] details] hasExpiration]; | 108 return [[[objectController_ content] details] hasExpiration]; |
| 109 } | 109 } |
| 110 | 110 |
| 111 @end | 111 @end |
| OLD | NEW |