Bug 1746870: part 1) Minorly extend documentation in <jsactors.rst>. r=hsivonen
[gecko.git] / widget / android / ScreenHelperAndroid.h
blobe3608a953fb230a23171f2a11d370c9d897dad66
1 /* -*- Mode: C++; tab-width: 40; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 * vim: ts=4 sw=2 expandtab:
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef ScreenHelperAndroid_h___
8 #define ScreenHelperAndroid_h___
10 #include "mozilla/widget/ScreenManager.h"
11 #include "nsTHashMap.h"
13 namespace mozilla {
14 namespace widget {
16 class ScreenHelperAndroid final : public ScreenManager::Helper {
17 public:
18 class ScreenHelperSupport;
20 ScreenHelperAndroid();
21 ~ScreenHelperAndroid();
23 static ScreenHelperAndroid* GetSingleton();
25 void Refresh();
26 already_AddRefed<Screen> ScreenForId(uint32_t aScreenId);
28 private:
29 nsTHashMap<uint32_t, RefPtr<Screen>> mScreens;
32 } // namespace widget
33 } // namespace mozilla
35 #endif /* ScreenHelperAndroid_h___ */