| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 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 |
| 14 // Returns the NSTouchBar Class. |
| 15 UI_BASE_EXPORT Class NSTouchBar(); |
| 16 |
| 17 // Returns the NSCustomTouchBarItem Class. |
| 18 UI_BASE_EXPORT Class NSCustomTouchBarItem(); |
| 19 |
| 20 // Returns a stylized blue button for the touch bar. The button performs |
| 21 // |action| from the |target|. |
| 22 UI_BASE_EXPORT NSButton* GetBlueTouchBarButton(NSString* title, |
| 23 id target, |
| 24 SEL action); |
| 25 |
| 26 // Creates a touch bar identifier with the given |id|. |
| 27 UI_BASE_EXPORT NSString* GetTouchBarId(NSString* touch_bar_id); |
| 28 |
| 29 // Creates a touch Bar jtem identifier. |
| 30 UI_BASE_EXPORT NSString* GetTouchBarItemId(NSString* touch_bar_id, |
| 31 NSString* item_id); |
| 32 |
| 33 } // namespace ui |
| 34 |
| 35 #endif // UI_BASE_COCOA_TOUCH_BAR_UTIL_H |
| OLD | NEW |