mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2024-12-14 10:34:29 +01:00
e7ddc933c9
- Remove |accept_lang| parameter from CefJSDialogHandler::OnJSDialog and CefFormatUrlForSecurityDisplay (see https://crbug.com/336973#c36). - Remove remaining NPAPI-related code including functions from cef_web_plugin.h (see https://crbug.com/493212#c55). - Mac: 10.7+ deployment target is now required for client applications. - Mac: Remove CefBrowserHost::SetWindowVisibility (issue #1375). No replacement is required for windowed rendering. Use WasHidden for off-screen rendering. - Windows: Visual Studio 2015 Update 2 is now required when building CEF/Chromium.
59 lines
2.0 KiB
C++
59 lines
2.0 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_VIEW_ADAPTER_H_
|
|
#define CEF_LIBCEF_BROWSER_VIEWS_VIEW_ADAPTER_H_
|
|
#pragma once
|
|
|
|
#include "include/views/cef_view.h"
|
|
|
|
namespace base {
|
|
class DictionaryValue;
|
|
}
|
|
|
|
namespace views {
|
|
class View;
|
|
}
|
|
|
|
// Exposes a common interface from all CefView implementation objects to
|
|
// simplify the view_util implementation. See comments in view_impl.h for a
|
|
// usage overview.
|
|
class CefViewAdapter {
|
|
public:
|
|
CefViewAdapter() {}
|
|
|
|
// Returns the CefViewAdapter for the specified |view|.
|
|
static CefViewAdapter* GetFor(CefRefPtr<CefView> view);
|
|
static CefViewAdapter* GetFor(views::View* view);
|
|
|
|
// Returns the underlying views::View object. Does not transfer ownership.
|
|
virtual views::View* Get() const = 0;
|
|
|
|
// Pass ownership of the underlying views::View object to the caller. This
|
|
// object keeps an unowned reference to the views::View object. This is called
|
|
// when the views::View is parented to another views::View.
|
|
virtual std::unique_ptr<views::View> PassOwnership() = 0;
|
|
|
|
// Resume ownership of the underlying views::View object. This is called when
|
|
// the views::View is no longer parented to another views::View.
|
|
virtual void ResumeOwnership() = 0;
|
|
|
|
// Release all references to the views::View object. This is called when the
|
|
// views::View is deleted after being parented to another views::View.
|
|
virtual void Detach() = 0;
|
|
|
|
// Override this method to provide a string representation of the View type.
|
|
// Only implement this method in concrete classes.
|
|
virtual std::string GetDebugType() = 0;
|
|
|
|
// Override this method to provide debug info specific to the View type.
|
|
virtual void GetDebugInfo(base::DictionaryValue* info,
|
|
bool include_children) = 0;
|
|
|
|
protected:
|
|
virtual ~CefViewAdapter() {}
|
|
};
|
|
|
|
#endif // CEF_LIBCEF_BROWSER_VIEWS_VIEW_ADAPTER_H_
|