File tree Expand file tree Collapse file tree 3 files changed +34
-0
lines changed Expand file tree Collapse file tree 3 files changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ // Copyright 2019 The NW.js Authors. All rights reserved.
2
+ // Use of this source code is governed by a MIT-style license that can be
3
+ // found in the LICENSE file.
4
+
5
+ namespace nw.MenuItem {
6
+ interface Functions {
7
+ };
8
+ };
Original file line number Diff line number Diff line change
1
+ // Copyright 2015 The NW.js Authors. All rights reserved.
2
+ // Use of this source code is governed by a MIT-style license that can be
3
+ // found in the LICENSE file.
4
+
5
+ // nw Tray API
6
+ namespace nw.Tray {
7
+ callback EventCallback = void();
8
+ [noinline_doc] dictionary Tray {
9
+ [nodoc] DOMString? title;
10
+ DOMString tooltip;
11
+ DOMString icon;
12
+ DOMString alticon;
13
+ boolean iconsAreTemplates;
14
+ object menu;
15
+ object click;
16
+ static void remove();
17
+ static void on(DOMString event,
18
+ EventCallback callback);
19
+ };
20
+ interface Functions {
21
+ [nocompile] static object create(optional object options);
22
+ [nocompile] static void destroy(long id);
23
+ };
24
+ };
Original file line number Diff line number Diff line change @@ -15,11 +15,13 @@ schema_sources = [
15
15
" nw_window.idl" ,
16
16
" nw_clipboard.idl" ,
17
17
" nw_menu.idl" ,
18
+ " nw_menuitem.idl" ,
18
19
" nw_screen.idl" ,
19
20
" nw_shell.idl" ,
20
21
" nw_shortcut.idl" ,
21
22
" nw_current_window_internal.idl" ,
22
23
" nw_test.idl" ,
24
+ " nw_tray.idl"
23
25
]
24
26
25
27
root_namespace = " extensions::nwapi::%(namespace)s"
You can’t perform that action at this time.
0 commit comments