| 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 #ifndef CHROME_BROWSER_UI_COCOA_L10N_UTIL_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_L10N_UTIL_H_ |
| 7 |
| 5 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 6 #include <stddef.h> | 9 #include <stddef.h> |
| 7 | 10 |
| 8 #include "base/feature_list.h" | 11 #include "base/feature_list.h" |
| 9 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
| 10 | 13 |
| 11 namespace cocoa_l10n_util { | 14 namespace cocoa_l10n_util { |
| 12 | 15 |
| 13 // Compare function for -[NSArray sortedArrayUsingFunction:context:] that | 16 // Compare function for -[NSArray sortedArrayUsingFunction:context:] that |
| 14 // sorts the views in Y order bottom up. |context| is ignored. | 17 // sorts the views in Y order bottom up. |context| is ignored. |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 // 10.12 or above. macOS 10.12 is the first OS where the native stoplight | 50 // 10.12 or above. macOS 10.12 is the first OS where the native stoplight |
| 48 // buttons are reversed in RTL, so manually reversing them in previous | 51 // buttons are reversed in RTL, so manually reversing them in previous |
| 49 // OSes would make Chrome stick out. | 52 // OSes would make Chrome stick out. |
| 50 bool ShouldFlipWindowControlsInRTL(); | 53 bool ShouldFlipWindowControlsInRTL(); |
| 51 | 54 |
| 52 // Returns an autoreleased image containing |image| flipped | 55 // Returns an autoreleased image containing |image| flipped |
| 53 // across the x axis. | 56 // across the x axis. |
| 54 NSImage* FlippedImage(NSImage* image); | 57 NSImage* FlippedImage(NSImage* image); |
| 55 | 58 |
| 56 } // namespace cocoa_l10n_util | 59 } // namespace cocoa_l10n_util |
| 60 |
| 61 #endif // CHROME_BROWSER_UI_COCOA_L10N_UTIL_H_ |
| OLD | NEW |