Bug 1734943 [wpt PR 31170] - Correct scrolling contents cull rect, a=testonly
[gecko.git] / widget / gtk / TaskbarProgress.h
blob819df0c08927284409e766d648ef9847743d693e
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/. */
8 #ifndef TaskbarProgress_h_
9 #define TaskbarProgress_h_
11 #include "nsIGtkTaskbarProgress.h"
13 class nsWindow;
15 class TaskbarProgress final : public nsIGtkTaskbarProgress {
16 public:
17 NS_DECL_ISUPPORTS
18 NS_DECL_NSIGTKTASKBARPROGRESS
19 NS_DECL_NSITASKBARPROGRESS
21 TaskbarProgress();
23 protected:
24 ~TaskbarProgress();
26 // We track the progress value so we can avoid updating the X window property
27 // unnecessarily.
28 unsigned long mCurrentProgress;
30 RefPtr<nsWindow> mPrimaryWindow;
33 #endif // #ifndef TaskbarProgress_h_