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

Side by Side Diff: chrome/browser/ui/cocoa/l10n_util.h

Issue 1543393002: Switch to standard integer types in chrome/browser/ui/cocoa/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
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 <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 #include <stddef.h>
6 7
7 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
8 9
9 namespace cocoa_l10n_util { 10 namespace cocoa_l10n_util {
10 11
11 // Compare function for -[NSArray sortedArrayUsingFunction:context:] that 12 // Compare function for -[NSArray sortedArrayUsingFunction:context:] that
12 // sorts the views in Y order bottom up. |context| is ignored. 13 // sorts the views in Y order bottom up. |context| is ignored.
13 NSInteger CompareFrameY(id view1, id view2, void* context); 14 NSInteger CompareFrameY(id view1, id view2, void* context);
14 15
15 // Helper for tweaking views. If view is a: 16 // Helper for tweaking views. If view is a:
(...skipping 10 matching lines...) Expand all
26 // Like |base::ReplaceStringPlaceholders(const base::string16&, 27 // Like |base::ReplaceStringPlaceholders(const base::string16&,
27 // const base::string16&, size_t*)|, but for a NSString formatString. 28 // const base::string16&, size_t*)|, but for a NSString formatString.
28 NSString* ReplaceNSStringPlaceholders(NSString* formatString, 29 NSString* ReplaceNSStringPlaceholders(NSString* formatString,
29 const base::string16& a, 30 const base::string16& a,
30 size_t* offset); 31 size_t* offset);
31 32
32 // Generates a tooltip string for a given URL and title. 33 // Generates a tooltip string for a given URL and title.
33 NSString* TooltipForURLAndTitle(NSString* url, NSString* title); 34 NSString* TooltipForURLAndTitle(NSString* url, NSString* title);
34 35
35 } // namespace cocoa_l10n_util 36 } // namespace cocoa_l10n_util
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698