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

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

Issue 2901973002: [Mac] Mirror profile switcher UI in RTL (Closed)
Patch Set: CL comments Created 3 years, 7 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 | « no previous file | 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 #ifndef CHROME_BROWSER_UI_COCOA_L10N_UTIL_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_L10N_UTIL_H_
6 #define CHROME_BROWSER_UI_COCOA_L10N_UTIL_H_ 6 #define CHROME_BROWSER_UI_COCOA_L10N_UTIL_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 #include <stddef.h> 9 #include <stddef.h>
10 10
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // buttons are reversed in RTL, so manually reversing them in previous 49 // buttons are reversed in RTL, so manually reversing them in previous
50 // OSes would make Chrome stick out. 50 // OSes would make Chrome stick out.
51 bool ShouldFlipWindowControlsInRTL(); 51 bool ShouldFlipWindowControlsInRTL();
52 52
53 // Returns NSImageLeading when available (10.12+), otherwise 53 // Returns NSImageLeading when available (10.12+), otherwise
54 // NSImageLeft for LTR and NSImageRight in RTL. 54 // NSImageLeft for LTR and NSImageRight in RTL.
55 NSCellImagePosition LeadingCellImagePosition(); 55 NSCellImagePosition LeadingCellImagePosition();
56 // Returns NSImageTrailing when available (10.12+), otherwise 56 // Returns NSImageTrailing when available (10.12+), otherwise
57 // NSImageRight for LTR and NSImageLeft in RTL. 57 // NSImageRight for LTR and NSImageLeft in RTL.
58 NSCellImagePosition TrailingCellImagePosition(); 58 NSCellImagePosition TrailingCellImagePosition();
59 // Returns NSMinXEdge for LTR and NSMaxXEdge for RTL.
60 NSRectEdge LeadingEdge();
61 // Returns NSMaxXEdge for LTR and NSMinXEdge for RTL.
62 NSRectEdge TrailingEdge();
59 63
60 // Returns an autoreleased image containing |image| flipped 64 // Returns an autoreleased image containing |image| flipped
61 // across the x axis. 65 // across the x axis.
62 NSImage* FlippedImage(NSImage* image); 66 NSImage* FlippedImage(NSImage* image);
63 67
64 // In RTL, mirrors all subviews of |view|. Additionally, 68 // In RTL, mirrors all subviews of |view|. Additionally,
65 // reverses horizontal margin autoresizing masks. 69 // reverses horizontal margin autoresizing masks.
66 // This method is *not* recursive. 70 // This method is *not* recursive.
67 // In LTR, this is a no-op. 71 // In LTR, this is a no-op.
68 void FlipAllSubviewsIfNecessary(NSView* view); 72 void FlipAllSubviewsIfNecessary(NSView* view);
69 73
70 } // namespace cocoa_l10n_util 74 } // namespace cocoa_l10n_util
71 75
72 #endif // CHROME_BROWSER_UI_COCOA_L10N_UTIL_H_ 76 #endif // CHROME_BROWSER_UI_COCOA_L10N_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/l10n_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698