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

Side by Side Diff: ui/base/cocoa/touch_bar_util.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 unified diff | Download patch
« no previous file with comments | « ui/base/BUILD.gn ('k') | ui/base/cocoa/touch_bar_util.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « ui/base/BUILD.gn ('k') | ui/base/cocoa/touch_bar_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698