2019-01-10 15:22:19 +01:00
|
|
|
// Copyright (c) 2019 The Chromium Embedded Framework Authors. All rights
|
2017-05-12 20:28:25 +02:00
|
|
|
// 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.
|
|
|
|
//
|
2019-01-23 17:10:23 +01:00
|
|
|
// $hash=236a2f5e705cde035d9d87a8a6045dccd258a2d0$
|
2017-05-17 11:29:28 +02:00
|
|
|
//
|
2017-05-12 20:28:25 +02:00
|
|
|
|
|
|
|
#include "libcef_dll/cpptoc/accessibility_handler_cpptoc.h"
|
|
|
|
#include "libcef_dll/ctocpp/value_ctocpp.h"
|
2019-01-23 16:42:12 +01:00
|
|
|
#include "libcef_dll/shutdown_checker.h"
|
2017-05-12 20:28:25 +02:00
|
|
|
|
|
|
|
namespace {
|
|
|
|
|
|
|
|
// MEMBER FUNCTIONS - Body may be edited by hand.
|
|
|
|
|
|
|
|
void CEF_CALLBACK accessibility_handler_on_accessibility_tree_change(
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_accessibility_handler_t* self,
|
|
|
|
struct _cef_value_t* value) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-05-12 20:28:25 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return;
|
|
|
|
// Verify param: value; type: refptr_diff
|
|
|
|
DCHECK(value);
|
|
|
|
if (!value)
|
|
|
|
return;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefAccessibilityHandlerCppToC::Get(self)->OnAccessibilityTreeChange(
|
|
|
|
CefValueCToCpp::Wrap(value));
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK accessibility_handler_on_accessibility_location_change(
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_accessibility_handler_t* self,
|
|
|
|
struct _cef_value_t* value) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-05-12 20:28:25 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return;
|
|
|
|
// Verify param: value; type: refptr_diff
|
|
|
|
DCHECK(value);
|
|
|
|
if (!value)
|
|
|
|
return;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefAccessibilityHandlerCppToC::Get(self)->OnAccessibilityLocationChange(
|
|
|
|
CefValueCToCpp::Wrap(value));
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
|
|
|
|
// CONSTRUCTOR - Do not edit by hand.
|
|
|
|
|
|
|
|
CefAccessibilityHandlerCppToC::CefAccessibilityHandlerCppToC() {
|
|
|
|
GetStruct()->on_accessibility_tree_change =
|
|
|
|
accessibility_handler_on_accessibility_tree_change;
|
|
|
|
GetStruct()->on_accessibility_location_change =
|
|
|
|
accessibility_handler_on_accessibility_location_change;
|
|
|
|
}
|
|
|
|
|
2019-01-23 16:42:12 +01:00
|
|
|
// DESTRUCTOR - Do not edit by hand.
|
|
|
|
|
|
|
|
CefAccessibilityHandlerCppToC::~CefAccessibilityHandlerCppToC() {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefRefPtr<CefAccessibilityHandler> CefCppToCRefCounted<
|
|
|
|
CefAccessibilityHandlerCppToC,
|
|
|
|
CefAccessibilityHandler,
|
|
|
|
cef_accessibility_handler_t>::UnwrapDerived(CefWrapperType type,
|
|
|
|
cef_accessibility_handler_t*
|
|
|
|
s) {
|
2017-05-12 20:28:25 +02:00
|
|
|
NOTREACHED() << "Unexpected class type: " << type;
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefWrapperType CefCppToCRefCounted<CefAccessibilityHandlerCppToC,
|
|
|
|
CefAccessibilityHandler,
|
|
|
|
cef_accessibility_handler_t>::kWrapperType =
|
2017-05-12 20:28:25 +02:00
|
|
|
WT_ACCESSIBILITY_HANDLER;
|