2016-01-19 21:09:01 +01:00
|
|
|
// Copyright 2016 The Chromium Embedded Framework Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be found
|
|
|
|
// in the LICENSE file.
|
|
|
|
|
|
|
|
#ifndef CEF_LIBCEF_BROWSER_VIEWS_FILL_LAYOUT_IMPL_H_
|
|
|
|
#define CEF_LIBCEF_BROWSER_VIEWS_FILL_LAYOUT_IMPL_H_
|
|
|
|
#pragma once
|
|
|
|
|
2024-04-30 17:45:07 +02:00
|
|
|
#include "cef/include/views/cef_fill_layout.h"
|
|
|
|
#include "cef/libcef/browser/views/layout_impl.h"
|
2016-01-19 21:09:01 +01:00
|
|
|
#include "ui/views/layout/fill_layout.h"
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
class CefFillLayoutImpl
|
|
|
|
: public CefLayoutImpl<views::FillLayout, CefFillLayout> {
|
2016-01-19 21:09:01 +01:00
|
|
|
public:
|
2021-12-06 21:40:25 +01:00
|
|
|
CefFillLayoutImpl(const CefFillLayoutImpl&) = delete;
|
|
|
|
CefFillLayoutImpl& operator=(const CefFillLayoutImpl&) = delete;
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
// Create a new CefFillLayout insance. |owner_view| must be non-nullptr.
|
|
|
|
static CefRefPtr<CefFillLayout> Create(views::View* owner_view);
|
|
|
|
|
|
|
|
// CefLayout methods:
|
|
|
|
CefRefPtr<CefFillLayout> AsFillLayout() override { return this; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
CefFillLayoutImpl();
|
|
|
|
|
|
|
|
views::FillLayout* CreateLayout() override;
|
|
|
|
|
|
|
|
IMPLEMENT_REFCOUNTING_DELETE_ON_UIT(CefFillLayoutImpl);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CEF_LIBCEF_BROWSER_VIEWS_FILL_LAYOUT_IMPL_H_
|