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

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

Issue 2747693003: Add missing include guards in Cocoa code. (Closed)
Patch Set: Fix nit Created 3 years, 9 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 #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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698