blob: 897c5fb89a50e4f07dc5d7d5c5a795c19a442625 [file] [log] [blame]
// Copyright 2025 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_VIEWS_FRAME_CONTENTS_SEPARATOR_H_
#define CHROME_BROWSER_UI_VIEWS_FRAME_CONTENTS_SEPARATOR_H_
#include <memory>
#include "ui/views/view.h"
// BrowserView uses a solid background instead of a views::Separator. The latter
// is not guaranteed to fill its bounds and assumes being painted on an opaque
// background (which is why it'd be OK to only partially fill its bounds). This
// needs to fill its bounds to have the entire BrowserView painted.
class ContentsSeparator : public views::View {
METADATA_HEADER(ContentsSeparator, views::View)
public:
static std::unique_ptr<ContentsSeparator> CreateLayerBasedContentsSeparator();
static std::unique_ptr<ContentsSeparator> CreateContentsSeparator();
private:
explicit ContentsSeparator(bool create_layer);
};
#endif // CHROME_BROWSER_UI_VIEWS_FRAME_CONTENTS_SEPARATOR_H_