Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Side by Side Diff: chrome/browser/ui/cocoa/cookie_details_view_controller.mm

Issue 6046009: Move base/mac_util.h to base/mac and use the base::mac namespace.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/cookie_details_view_controller.h" 5 #import "chrome/browser/ui/cocoa/cookie_details_view_controller.h"
6 6
7 #include "app/l10n_util_mac.h" 7 #include "app/l10n_util_mac.h"
8 #include "app/resource_bundle.h" 8 #include "app/resource_bundle.h"
9 #import "base/mac_util.h" 9 #import "base/mac/mac_util.h"
10 #include "base/sys_string_conversions.h" 10 #include "base/sys_string_conversions.h"
11 #import "chrome/browser/ui/cocoa/cookie_tree_node.h" 11 #import "chrome/browser/ui/cocoa/cookie_tree_node.h"
12 #import "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" 12 #import "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h"
13 13
14 namespace { 14 namespace {
15 static const int kExtraMarginBelowWhenExpirationEditable = 5; 15 static const int kExtraMarginBelowWhenExpirationEditable = 5;
16 } 16 }
17 17
18 #pragma mark View Controller 18 #pragma mark View Controller
19 19
20 @implementation CookieDetailsViewController 20 @implementation CookieDetailsViewController
21 @dynamic hasExpiration; 21 @dynamic hasExpiration;
22 22
23 - (id)init { 23 - (id)init {
24 return [super initWithNibName:@"CookieDetailsView" 24 return [super initWithNibName:@"CookieDetailsView"
25 bundle:mac_util::MainAppBundle()]; 25 bundle:base::mac::MainAppBundle()];
26 } 26 }
27 27
28 - (void)awakeFromNib { 28 - (void)awakeFromNib {
29 DCHECK(objectController_); 29 DCHECK(objectController_);
30 } 30 }
31 31
32 // Finds and returns the y offset of the lowest-most non-hidden 32 // Finds and returns the y offset of the lowest-most non-hidden
33 // text field in the view. This is used to shrink the view 33 // text field in the view. This is used to shrink the view
34 // appropriately so that it just fits its visible content. 34 // appropriately so that it just fits its visible content.
35 - (void)getLowestLabelVerticalPosition:(NSView*)view 35 - (void)getLowestLabelVerticalPosition:(NSView*)view
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 101
102 - (IBAction)setCookieHasExplicitExpiration:(id)sender { 102 - (IBAction)setCookieHasExplicitExpiration:(id)sender {
103 [[[objectController_ content] details] setHasExpiration:YES]; 103 [[[objectController_ content] details] setHasExpiration:YES];
104 } 104 }
105 105
106 - (BOOL)hasExpiration { 106 - (BOOL)hasExpiration {
107 return [[[objectController_ content] details] hasExpiration]; 107 return [[[objectController_ content] details] hasExpiration];
108 } 108 }
109 109
110 @end 110 @end
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/content_settings_dialog_controller.mm ('k') | chrome/browser/ui/cocoa/cookies_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698