Chromium Code Reviews| 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..cece130181b7c86a0c3272a3f83670fe5c5bc68d |
| --- /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 |
|
Robert Sesek
2017/06/06 14:52:35
nit: capitalization of "touch Bar" is off.
spqchan
2017/06/06 19:34:50
Done.
|
| +// 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_ |