Commit a8c97b63 authored by Kevin Marshall's avatar Kevin Marshall Committed by Commit Bot

Add LayoutThemeFuchsia theme stub to Blink.

Add LayoutThemeFuchsia theme stub to Blink.
The theme is necessary because no LayoutTheme* files are currently
built when is_fuchsia=true.

Bug: 750946
Change-Id: Iab9cdf66856164309882239e643c2006f200d669
Reviewed-on: https://chromium-review.googlesource.com/599248Reviewed-by: default avatarNico Weber <thakis@chromium.org>
Reviewed-by: default avatarScott Graham <scottmg@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#491626}
parent 4e6d7ece
......@@ -491,6 +491,10 @@ blink_core_sources("layout") {
]
}
if (is_fuchsia) {
sources += [ "LayoutThemeFuchsia.cpp" ]
}
configs += [
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
"//build/config/compiler:no_size_t_to_int_warning",
......
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "core/layout/LayoutThemeDefault.h"
namespace blink {
namespace {
// Fuchsia is headless-only for now, so no native themes are applied.
// TODO(fuchsia): Implement this when we enable the UI. (crbug.com/750946)
class LayoutThemeFuchsia : public LayoutThemeDefault {
public:
static RefPtr<LayoutTheme> Create() {
return AdoptRef(new LayoutThemeFuchsia());
}
};
} // namespace
LayoutTheme& LayoutTheme::NativeTheme() {
DEFINE_STATIC_REF(LayoutTheme, layout_theme, (LayoutThemeFuchsia::Create()));
return *layout_theme;
}
} // namespace blink
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment