зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
933c5ad884
Коммит
2fad84276c
|
@ -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",
|
||||
|
|
Загрузка…
Ссылка в новой задаче