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

Unified Diff: base/mac/mac_util.h

Issue 1458203003: MacKeyboard: Don't generate keypress for non-printable char (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: base/mac/mac_util.h
diff --git a/base/mac/mac_util.h b/base/mac/mac_util.h
index a452a39bdd4077d13e078134873b0fa2bc5c19c4..1fc6a3d195f5294159a96259722b2d32a1e6904b 100644
--- a/base/mac/mac_util.h
+++ b/base/mac/mac_util.h
@@ -16,6 +16,7 @@
#import <Foundation/Foundation.h>
#else // __OBJC__
class NSImage;
+class NSString;
#endif // __OBJC__
namespace base {
@@ -120,6 +121,9 @@ BASE_EXPORT bool WasLaunchedAsHiddenLoginItem();
// an error, or true otherwise.
BASE_EXPORT bool RemoveQuarantineAttribute(const FilePath& file_path);
+// Return true if 's' is empty or contains at least one printable character
+BASE_EXPORT bool StringIsPrintable(NSString* s);
dtapuska 2015/11/23 14:42:08 This is too generic in the base.. Since you are o
+
// Run-time OS version checks. Use these instead of
// base::SysInfo::OperatingSystemVersionNumbers. Prefer the "OrEarlier" and
// "OrLater" variants to those that check for a specific version, unless you
« no previous file with comments | « no previous file | base/mac/mac_util.mm » ('j') | content/browser/renderer_host/render_widget_host_view_mac_unittest.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698