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

Unified Diff: ui/views/style/platform_style_mac.mm

Issue 2342343003: views: provide feedback when editing fails (Closed)
Patch Set: OnEditFailed -> OnKeypressUnhandled Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/style/platform_style.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/style/platform_style_mac.mm
diff --git a/ui/views/style/platform_style_mac.mm b/ui/views/style/platform_style_mac.mm
index 5381c80e67f97bbe0ff9a71df7537347cd550583..8cc98004f6ce3dcd5019c7379b611e0cc968b32d 100644
--- a/ui/views/style/platform_style_mac.mm
+++ b/ui/views/style/platform_style_mac.mm
@@ -17,6 +17,8 @@
#include "ui/views/style/mac/combobox_background_mac.h"
#include "ui/views/style/mac/dialog_button_border_mac.h"
+#import <Cocoa/Cocoa.h>
+
namespace views {
const int PlatformStyle::kComboboxNormalArrowPadding = 0;
@@ -96,4 +98,9 @@ void PlatformStyle::ApplyLabelButtonTextStyle(
theme->GetSystemColor(ui::NativeTheme::kColorId_ButtonHighlightColor);
}
+// static
+void PlatformStyle::OnTextfieldKeypressUnhandled() {
+ NSBeep();
+}
+
} // namespace views
« no previous file with comments | « ui/views/style/platform_style.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698