1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/chrome/public/nsIToolkitChromeRegistry.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,28 @@ 1.4 +/* -*- Mode: C++; tab-width; 8; 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 +#include "nsIChromeRegistry.idl" 1.10 + 1.11 +interface nsIURI; 1.12 +interface nsIUTF8StringEnumerator; 1.13 + 1.14 +[scriptable, uuid(8727651c-9530-45a0-b81e-0e0690c30c50)] 1.15 +interface nsIToolkitChromeRegistry : nsIXULChromeRegistry 1.16 +{ 1.17 + /** 1.18 + * If the OS has a "high-visibility" or "disabled-friendly" theme set, 1.19 + * we want to force mozilla into the classic theme, which (for the most part 1.20 + * obeys the system color/font settings. We cannot do this at initialization, 1.21 + * because it depends on the toolkit (GTK2) being initialized, which is 1.22 + * not the case in some embedding situations. Embedders have to manually 1.23 + * call this method during the startup process. 1.24 + */ 1.25 + void checkForOSAccessibility(); 1.26 + 1.27 + /** 1.28 + * Get a list of locales available for the specified package. 1.29 + */ 1.30 + nsIUTF8StringEnumerator getLocalesForPackage(in AUTF8String aPackage); 1.31 +};