| 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 <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
| 6 #include <stddef.h> | 6 #include <stddef.h> |
| 7 | 7 |
| 8 #include "base/feature_list.h" | 8 #include "base/feature_list.h" |
| 9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 extern const base::Feature kExperimentalMacRTL; | 37 extern const base::Feature kExperimentalMacRTL; |
| 38 // Returns whether both: | 38 // Returns whether both: |
| 39 // 1) Experimental Mac RTL support is enabled via the ExperimentalMacRTL | 39 // 1) Experimental Mac RTL support is enabled via the ExperimentalMacRTL |
| 40 // feature; | 40 // feature; |
| 41 // 2) The browser UI is in RTL mode. | 41 // 2) The browser UI is in RTL mode. |
| 42 // If ExperimentalMacRTL becomes the default, this function can be replaced with | 42 // If ExperimentalMacRTL becomes the default, this function can be replaced with |
| 43 // uses of base::i18n::IsRTL(). | 43 // uses of base::i18n::IsRTL(). |
| 44 bool ShouldDoExperimentalRTLLayout(); | 44 bool ShouldDoExperimentalRTLLayout(); |
| 45 | 45 |
| 46 // TODO(lgrey): Remove these when all builds are on 10.12 SDK. |
| 47 |
| 48 // Returns NSImageLeading when available (10.12+), otherwise |
| 49 // NSImageLeft for LTR and NSImageRight in RTL. |
| 50 NSCellImagePosition LeadingCellImagePosition(); |
| 51 // Returns NSImageTrailing when available (10.12+), otherwise |
| 52 // NSImageRight for LTR and NSImageLeft in RTL. |
| 53 NSCellImagePosition TrailingCellImagePosition(); |
| 54 |
| 55 // Returns an autoreleased image containing |image| flipped |
| 56 // across the x axis. |
| 57 NSImage* FlippedImage(NSImage* image); |
| 58 |
| 46 } // namespace cocoa_l10n_util | 59 } // namespace cocoa_l10n_util |
| OLD | NEW |