1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/widget/nsINativeMenuService.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,30 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#ifndef nsINativeMenuService_h_ 1.10 +#define nsINativeMenuService_h_ 1.11 + 1.12 +#include "nsISupports.h" 1.13 + 1.14 +class nsIWidget; 1.15 +class nsIContent; 1.16 + 1.17 +// {90DF88F9-F084-4EF3-829A-49496E636DED} 1.18 +#define NS_INATIVEMENUSERVICE_IID \ 1.19 +{ 0x90DF88F9, 0xF084, 0x4EF3, \ 1.20 +{ 0x82, 0x9A, 0x49, 0x49, 0x6E, 0x63, 0x6D, 0xED} } 1.21 + 1.22 +class nsINativeMenuService : public nsISupports { 1.23 +public: 1.24 + NS_DECLARE_STATIC_IID_ACCESSOR(NS_INATIVEMENUSERVICE_IID) 1.25 + // Given a top-level window widget and a menu bar DOM node, sets up native 1.26 + // menus. Once created, native menus are controlled via the DOM, including 1.27 + // destruction. 1.28 + NS_IMETHOD CreateNativeMenuBar(nsIWidget* aParent, nsIContent* aMenuBarNode)=0; 1.29 +}; 1.30 + 1.31 +NS_DEFINE_STATIC_IID_ACCESSOR(nsINativeMenuService, NS_INATIVEMENUSERVICE_IID) 1.32 + 1.33 +#endif // nsINativeMenuService_h_