Bug 1525107 - Move mozilla::ColorScheme definition to its own header. r=dholbert

No behavior change.

Differential Revision: https://phabricator.services.mozilla.com/D129745
This commit is contained in:
Emilio Cobos Álvarez 2021-10-29 19:58:25 +00:00
Родитель 933c5ad884
Коммит 2fad84276c
3 изменённых файлов: 20 добавлений и 3 удалений

18
widget/ColorScheme.h Normal file
Просмотреть файл

@ -0,0 +1,18 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef mozilla_ColorScheme_h
#define mozilla_ColorScheme_h
#include <cstdint>
namespace mozilla {
// Whether we should use a light or dark appearance.
enum class ColorScheme : uint8_t { Light, Dark };
} // namespace mozilla
#endif

Просмотреть файл

@ -16,6 +16,7 @@
#include "nsTArray.h"
#include "mozilla/Maybe.h"
#include "mozilla/widget/ThemeChangeKind.h"
#include "mozilla/ColorScheme.h"
struct gfxFontStyle;
@ -25,9 +26,6 @@ namespace mozilla {
struct StyleColorSchemeFlags;
// Whether we should use a light or dark appearance.
enum class ColorScheme : uint8_t { Light, Dark };
namespace dom {
class Document;
}

Просмотреть файл

@ -140,6 +140,7 @@ EXPORTS += [
EXPORTS.mozilla += [
"BasicEvents.h",
"ColorScheme.h",
"CommandList.h",
"ContentCache.h",
"ContentEvents.h",