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

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

Issue 2346783002: mac rtl: pin profile switcher to left edge in rtl (Closed)
Patch Set: ExperimentalMacRTLIsEnabled -> ShouldDoExperimentalRTLLayout Created 4 years, 3 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
« no previous file with comments | « chrome/browser/ui/cocoa/framed_browser_window.mm ('k') | chrome/browser/ui/cocoa/l10n_util.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include <stddef.h>
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 9
10 namespace cocoa_l10n_util { 10 namespace cocoa_l10n_util {
(...skipping 15 matching lines...) Expand all
26 26
27 // Like |base::ReplaceStringPlaceholders(const base::string16&, 27 // Like |base::ReplaceStringPlaceholders(const base::string16&,
28 // const base::string16&, size_t*)|, but for a NSString formatString. 28 // const base::string16&, size_t*)|, but for a NSString formatString.
29 NSString* ReplaceNSStringPlaceholders(NSString* formatString, 29 NSString* ReplaceNSStringPlaceholders(NSString* formatString,
30 const base::string16& a, 30 const base::string16& a,
31 size_t* offset); 31 size_t* offset);
32 32
33 // Generates a tooltip string for a given URL and title. 33 // Generates a tooltip string for a given URL and title.
34 NSString* TooltipForURLAndTitle(NSString* url, NSString* title); 34 NSString* TooltipForURLAndTitle(NSString* url, NSString* title);
35 35
36 // Returns whether experimental Mac RTL support is enabled via 36 // Returns whether both:
37 // --enable-features=ExperimentalMacRTL. 37 // 1) Experimental Mac RTL support is enabled via the ExperimentalMacRTL
38 bool ExperimentalMacRTLIsEnabled(); 38 // feature;
39 // 2) The browser UI is in RTL mode.
40 // If ExperimentalMacRTL becomes the default, this function can be replaced with
41 // uses of base::i18n::IsRTL().
42 bool ShouldDoExperimentalRTLLayout();
39 43
40 } // namespace cocoa_l10n_util 44 } // namespace cocoa_l10n_util
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/framed_browser_window.mm ('k') | chrome/browser/ui/cocoa/l10n_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698