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

Unified Diff: chrome/browser/ui/cocoa/dialog_text_field_editor.h

Issue 2921083003: [Mac] Touch Bar Support for Dialogs (Closed)
Patch Set: Added test and renamed methods Created 3 years, 6 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
Index: chrome/browser/ui/cocoa/dialog_text_field_editor.h
diff --git a/chrome/browser/ui/cocoa/dialog_text_field_editor.h b/chrome/browser/ui/cocoa/dialog_text_field_editor.h
new file mode 100644
index 0000000000000000000000000000000000000000..f3b82c934bae5b302227297f89ae7f7f3bdebe1a
--- /dev/null
+++ b/chrome/browser/ui/cocoa/dialog_text_field_editor.h
@@ -0,0 +1,21 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_COCOA_DIALOG_TEXT_FIELD__EDITOR_H_
+#define CHROME_BROWSER_UI_COCOA_DIALOG_TEXT_FIELD__EDITOR_H_
+
+#import <Cocoa/Cocoa.h>
+
+// This class is used to customize the field editors for dialog textfields.
+// It intercepts touch bar methods to prevent the textfield's touch bar from
+// overriding the dialog's touch bar.
+//
+// TODO(spqchan): Add the textfield's candidate list to the touch bar. I've
+// tried to combine the parent's touch bar with the dialog's, but the result
+// was buggy.
+@interface DialogTextFieldEditor : NSTextView
+
+@end
+
+#endif // CHROME_BROWSER_UI_COCOA_DIALOG_TEXT_FIELD__EDITOR_H_

Powered by Google App Engine
This is Rietveld 408576698