Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
|
Robert Sesek
2017/06/06 14:52:35
Unittests for this file?
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef UI_BASE_COCOA_TOUCH_BAR_UTIL_H | |
| 6 #define UI_BASE_COCOA_TOUCH_BAR_UTIL_H | |
| 7 | |
| 8 #import <Cocoa/Cocoa.h> | |
| 9 | |
| 10 #include "ui/base/ui_base_export.h" | |
| 11 | |
| 12 namespace ui { | |
| 13 | |
|
Robert Sesek
2017/06/06 14:52:36
Optional: It may be handy to add a function like:
spqchan
2017/06/06 19:34:50
Done.
| |
| 14 // Returns a stylized blue button for the touch bar. The button performs | |
| 15 // |action| from the |target|. | |
| 16 UI_BASE_EXPORT NSButton* CreateBlueTouchBarButton(NSString* title, | |
|
Robert Sesek
2017/06/06 14:52:35
These functions shouldn't be named "Create" unless
spqchan
2017/06/06 19:34:50
What should I use? GetBlueTouchBarButton or just B
Robert Sesek
2017/06/06 20:14:59
Yes, I'd use GetBlueTouchBarButton().
| |
| 17 id target, | |
| 18 SEL action); | |
| 19 | |
| 20 // Creates a Touch Bar identifier with the given |id|. | |
| 21 UI_BASE_EXPORT NSString* CreateTouchBarId(NSString* touch_bar_id); | |
| 22 | |
| 23 // Creates a Touch Bar Item identifier. | |
| 24 UI_BASE_EXPORT NSString* CreateTouchBarItemId(NSString* touch_bar_id, | |
| 25 NSString* item_id); | |
| 26 | |
| 27 } // namespace ui | |
| 28 | |
| 29 #endif // UI_BASE_COCOA_TOUCH_BAR_UTIL_H | |
| OLD | NEW |