1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* vim:expandtab:shiftwidth=4:tabstop=4: 3 */ 4 /* This Source Code Form is subject to the terms of the Mozilla Public 5 * License, v. 2.0. If a copy of the MPL was not distributed with this 6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 7 8 #ifndef TaskbarProgress_h_ 9 #define TaskbarProgress_h_ 10 11 #include "nsIGtkTaskbarProgress.h" 12 13 class nsWindow; 14 15 class TaskbarProgress final : public nsIGtkTaskbarProgress { 16 public: 17 NS_DECL_ISUPPORTS 18 NS_DECL_NSIGTKTASKBARPROGRESS 19 NS_DECL_NSITASKBARPROGRESS 20 21 TaskbarProgress(); 22 23 protected: 24 ~TaskbarProgress(); 25 26 // We track the progress value so we can avoid updating the X window property 27 // unnecessarily. 28 unsigned long mCurrentProgress; 29 30 RefPtr<nsWindow> mPrimaryWindow; 31 }; 32 33 #endif // #ifndef TaskbarProgress_h_ 34