cef/libcef/browser/views/fill_layout_impl.h
Marshall Greenblatt 9484d6528c Remove DISALLOW_ macro from libcef/ (see issue #3234)
Also perform related C++ cleanup:
- Use =default instead of {} for default implementations of
  constructors/destructors.
- Replace typedef with using.
2021-12-07 15:02:28 -05:00

35 lines
1.1 KiB
C++

// 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
#include "include/views/cef_fill_layout.h"
#include "libcef/browser/views/layout_impl.h"
#include "ui/views/layout/fill_layout.h"
class CefFillLayoutImpl
: public CefLayoutImpl<views::FillLayout, CefFillLayout> {
public:
CefFillLayoutImpl(const CefFillLayoutImpl&) = delete;
CefFillLayoutImpl& operator=(const CefFillLayoutImpl&) = delete;
// 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_