michael@0: /* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsCocoaFeatures_h_ michael@0: #define nsCocoaFeatures_h_ michael@0: michael@0: #include michael@0: michael@0: class nsCocoaFeatures { michael@0: public: michael@0: static int32_t OSXVersion(); michael@0: static int32_t OSXVersionMajor(); michael@0: static int32_t OSXVersionMinor(); michael@0: static int32_t OSXVersionBugFix(); michael@0: static bool OnLionOrLater(); michael@0: static bool OnMountainLionOrLater(); michael@0: static bool SupportCoreAnimationPlugins(); michael@0: static bool OnMavericksOrLater(); michael@0: static bool OnYosemiteOrLater(); michael@0: michael@0: private: michael@0: static void InitializeVersionNumbers(); michael@0: michael@0: static int32_t mOSXVersion; michael@0: static int32_t mOSXVersionMajor; michael@0: static int32_t mOSXVersionMinor; michael@0: static int32_t mOSXVersionBugFix; michael@0: }; michael@0: #endif // nsCocoaFeatures_h_