mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-18 13:10:42 +01:00
25 lines
835 B
C++
25 lines
835 B
C++
// Copyright (c) 2015 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.
|
|
|
|
#include "tests/cefclient/browser/client_handler_std.h"
|
|
|
|
namespace client {
|
|
|
|
ClientHandlerStd::ClientHandlerStd(Delegate* delegate,
|
|
bool with_controls,
|
|
const std::string& startup_url)
|
|
: ClientHandler(delegate, /*is_osr=*/false, with_controls, startup_url) {}
|
|
|
|
// static
|
|
CefRefPtr<ClientHandlerStd> ClientHandlerStd::GetForClient(
|
|
CefRefPtr<CefClient> client) {
|
|
auto base = BaseClientHandler::GetForClient(client);
|
|
if (base && base->GetTypeKey() == &kTypeKey) {
|
|
return static_cast<ClientHandlerStd*>(base.get());
|
|
}
|
|
return nullptr;
|
|
}
|
|
|
|
} // namespace client
|