-// Copyright 2021 nclude "ui/display/types/native_display_delegate.h" Samsung
-// Electronics. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
+// Copyright 2021 Samsung Electronics. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
#include "ui/ozone/platform/efl/ozone_platform_efl.h"
#include <utility>
#include <vector>
+#include "base/base_switches.h"
+#include "base/command_line.h"
#include "base/memory/ptr_util.h"
#include "base/message_loop/message_pump_type.h"
#include "base/no_destructor.h"
return *properties;
}
-#if defined(TIZEN_TV_UPSTREAM_MULTIMEDIA)
const PlatformRuntimeProperties& GetPlatformRuntimeProperties() override {
static OzonePlatform::PlatformRuntimeProperties properties;
+#if defined(TIZEN_TV_UPSTREAM_MULTIMEDIA)
properties.supports_native_pixmaps = true;
properties.supports_overlays = true;
+#endif
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableChrome)) {
+ properties.supports_server_side_window_decorations = false;
+ }
return properties;
}
-#endif // defined(TIZEN_TV_UPSTREAM_MULTIMEDIA)
bool IsWindowCompositingSupported() const override {
// TODO: Check if this method is required to return true for EFL.
// found in the LICENSE file.
#include "ui/views/window/window_button_order_provider.h"
+#include "build/build_config.h"
namespace views {
// WindowButtonOrderProvider, protected:
WindowButtonOrderProvider::WindowButtonOrderProvider() {
+#if !BUILDFLAG(IS_TIZEN)
trailing_buttons_.push_back(views::FrameButton::kMinimize);
trailing_buttons_.push_back(views::FrameButton::kMaximize);
+#endif // BUILDFLAG(IS_TIZEN)
trailing_buttons_.push_back(views::FrameButton::kClose);
}