2021-04-11 22:10:11 +02:00
|
|
|
// Copyright 2021 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_CHROME_VIEWS_TOOLBAR_VIEW_VIEW_H_
|
|
|
|
#define CEF_LIBCEF_BROWSER_CHROME_VIEWS_TOOLBAR_VIEW_VIEW_H_
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "libcef/browser/views/view_view.h"
|
|
|
|
|
|
|
|
#include "chrome/browser/ui/views/toolbar/toolbar_view.h"
|
|
|
|
|
|
|
|
class CefToolbarViewView : public CefViewView<ToolbarView, CefViewDelegate> {
|
|
|
|
public:
|
2021-12-06 21:40:25 +01:00
|
|
|
using ParentClass = CefViewView<ToolbarView, CefViewDelegate>;
|
2021-04-11 22:10:11 +02:00
|
|
|
|
|
|
|
// |cef_delegate| may be nullptr.
|
|
|
|
explicit CefToolbarViewView(CefViewDelegate* cef_delegate,
|
|
|
|
Browser* browser,
|
|
|
|
BrowserView* browser_view,
|
2021-06-04 03:34:56 +02:00
|
|
|
absl::optional<DisplayMode> display_mode);
|
2021-04-11 22:10:11 +02:00
|
|
|
|
2021-12-06 21:40:25 +01:00
|
|
|
CefToolbarViewView(const CefToolbarViewView&) = delete;
|
|
|
|
CefToolbarViewView& operator=(const CefToolbarViewView&) = delete;
|
2021-04-11 22:10:11 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CEF_LIBCEF_BROWSER_CHROME_VIEWS_TOOLBAR_VIEW_VIEW_H_
|