mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Create 1180 release branch for CEF3.
git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1180@718 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
55
cef3/libcef_dll/cpptoc/scheme_registrar_cpptoc.cc
Normal file
55
cef3/libcef_dll/cpptoc/scheme_registrar_cpptoc.cc
Normal file
@ -0,0 +1,55 @@
|
||||
// Copyright (c) 2012 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.
|
||||
//
|
||||
// ---------------------------------------------------------------------------
|
||||
//
|
||||
// This file was generated by the CEF translator tool. If making changes by
|
||||
// hand only do so within the body of existing method and function
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/scheme_registrar_cpptoc.h"
|
||||
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
int CEF_CALLBACK scheme_registrar_add_custom_scheme(
|
||||
struct _cef_scheme_registrar_t* self, const cef_string_t* scheme_name,
|
||||
int is_standard, int is_local, int is_display_isolated) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self)
|
||||
return 0;
|
||||
// Verify param: scheme_name; type: string_byref_const
|
||||
DCHECK(scheme_name);
|
||||
if (!scheme_name)
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefSchemeRegistrarCppToC::Get(self)->AddCustomScheme(
|
||||
CefString(scheme_name),
|
||||
is_standard?true:false,
|
||||
is_local?true:false,
|
||||
is_display_isolated?true:false);
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefSchemeRegistrarCppToC::CefSchemeRegistrarCppToC(CefSchemeRegistrar* cls)
|
||||
: CefCppToC<CefSchemeRegistrarCppToC, CefSchemeRegistrar,
|
||||
cef_scheme_registrar_t>(cls) {
|
||||
struct_.struct_.add_custom_scheme = scheme_registrar_add_custom_scheme;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
template<> long CefCppToC<CefSchemeRegistrarCppToC, CefSchemeRegistrar,
|
||||
cef_scheme_registrar_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user