2013-01-17 19:39:09 +01:00
|
|
|
// Copyright (c) 2013 The Chromium Embedded Framework Authors. All rights
|
2011-02-23 04:45:13 +01:00
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
//
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
//
|
2011-12-08 02:38:30 +01:00
|
|
|
// 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.
|
2011-02-23 04:45:13 +01:00
|
|
|
//
|
|
|
|
|
|
|
|
#include "libcef_dll/ctocpp/domdocument_ctocpp.h"
|
|
|
|
#include "libcef_dll/ctocpp/domevent_ctocpp.h"
|
|
|
|
#include "libcef_dll/ctocpp/domnode_ctocpp.h"
|
|
|
|
|
|
|
|
|
|
|
|
// VIRTUAL METHODS - Body may be edited by hand.
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefString CefDOMEventCToCpp::GetType() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_type))
|
|
|
|
return CefString();
|
2011-02-23 04:45:13 +01:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_string_userfree_t _retval = struct_->get_type(struct_);
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
2011-02-23 04:45:13 +01:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefDOMEvent::Category CefDOMEventCToCpp::GetCategory() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_category))
|
2011-02-23 04:45:13 +01:00
|
|
|
return DOM_EVENT_CATEGORY_UNKNOWN;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_dom_event_category_t _retval = struct_->get_category(struct_);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
2011-02-23 04:45:13 +01:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefDOMEvent::Phase CefDOMEventCToCpp::GetPhase() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_phase))
|
2011-02-23 04:45:13 +01:00
|
|
|
return DOM_EVENT_PHASE_UNKNOWN;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_dom_event_phase_t _retval = struct_->get_phase(struct_);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
2011-02-23 04:45:13 +01:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
bool CefDOMEventCToCpp::CanBubble() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, can_bubble))
|
2011-02-23 04:45:13 +01:00
|
|
|
return false;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->can_bubble(struct_);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2011-02-23 04:45:13 +01:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
bool CefDOMEventCToCpp::CanCancel() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, can_cancel))
|
2011-02-23 04:45:13 +01:00
|
|
|
return false;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->can_cancel(struct_);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2011-02-23 04:45:13 +01:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefRefPtr<CefDOMDocument> CefDOMEventCToCpp::GetDocument() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_document))
|
2011-02-23 04:45:13 +01:00
|
|
|
return NULL;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_domdocument_t* _retval = struct_->get_document(struct_);
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefDOMDocumentCToCpp::Wrap(_retval);
|
2011-02-23 04:45:13 +01:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefRefPtr<CefDOMNode> CefDOMEventCToCpp::GetTarget() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_target))
|
2011-02-23 04:45:13 +01:00
|
|
|
return NULL;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_domnode_t* _retval = struct_->get_target(struct_);
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefDOMNodeCToCpp::Wrap(_retval);
|
2011-02-23 04:45:13 +01:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefRefPtr<CefDOMNode> CefDOMEventCToCpp::GetCurrentTarget() {
|
2011-12-08 02:38:30 +01:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_current_target))
|
2011-02-23 04:45:13 +01:00
|
|
|
return NULL;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_domnode_t* _retval = struct_->get_current_target(struct_);
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefDOMNodeCToCpp::Wrap(_retval);
|
2011-02-23 04:45:13 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-05-20 16:42:25 +02:00
|
|
|
#ifndef NDEBUG
|
2011-02-23 04:45:13 +01:00
|
|
|
template<> long CefCToCpp<CefDOMEventCToCpp, CefDOMEvent,
|
|
|
|
cef_domevent_t>::DebugObjCt = 0;
|
|
|
|
#endif
|
|
|
|
|